TypeScript-first schema declaration and validation library with static type inference
| Metric | zod | yup |
|---|---|---|
Weekly downloads | 154.1M | 10.8M |
Monthly downloads | 608.7M | 45.2M |
Yearly downloads | 3118.4M |
zod leads with 608.7M monthly downloads — 13x more popular
| 426.4M |
GitHub stars | 42K | 24K |
Forks | 2K | 938 |
Open issues | 319 | 240 |
Bundle (gzip) | 57.1kb | 13.1kb |
License | MIT | MIT |
Latest release | Jan 22, 2026 | Sep 21, 2025 |
zod has a larger community with 42K GitHub stars (1.8x more stars)
yup is lighter at 13.1kb gzipped — 4.3x lighter
yup has fewer open issues (240 vs 319)
zod has a slight edge over yup, but both are solid choices. Consider your priorities before deciding.