Zod vs Yup
npmZod: TypeScript-first schema declaration and validation library with static type inference
Yup: Dead simple Object schema validation
Updated
Side-by-side comparison
| Metric | Zod | Yup |
|---|---|---|
| Version | 4.3.6 | 1.7.1 |
| License | MIT | MIT |
| Weekly Downloads | 153.6M ▲ | 10.6M |
| Dependencies | 0 ▲ | 4 |
| Required Runtime | N/A | N/A |
| Deprecated | false | false |
Weekly downloads over time
Zod
Yup
Release activity
Zod
1 release tracked
Last release: 41 days ago
Yup
1 release tracked
Last release: 41 days ago
Frequently asked questions
Which has more downloads, Zod or Yup?
Zod has 153.6M weekly downloads compared to Yup's 10.6M. Zod currently has more weekly downloads.
What license does Zod use vs Yup?
Zod uses the MIT license and Yup uses MIT. They use the same license.
Which has fewer dependencies, Zod or Yup?
Zod has 0 dependencies and Yup has 4. Zod is lighter in terms of dependency count.