zod vs yup vs joi
Compare zod vs yup vs joi — features, weekly downloads, TypeScript support, licensing, and which is best for your JavaScript project.
validation179 views
Most popular
zod
v1.0.0zod is a JavaScript package in the validation category.
Hugely popularStaleNative TypeScriptMIT
Weekly DLs
18.0M
Last publish
1 years ago
yup
v1.0.0yup is a JavaScript package in the validation category.
Very popularStaleNative TypeScriptMIT
Weekly DLs
8.5M
Last publish
1 years ago
Most recent
joi
v1.0.0joi is a JavaScript package in the validation category.
Very popularMaintainedNative TypeScriptMIT
Weekly DLs
8.7M
Last publish
10 months ago
Comparison Table
| Metric | zod | yup | joi |
|---|---|---|---|
| Latest Version | 1.0.0 | 1.0.0 | 1.0.0 |
| Weekly Downloads | 18.0M | 8.5M | 8.7M |
| Last Published | 1 years ago | 1 years ago | 10 months ago |
| TypeScript | Yes | Yes | Yes |
| Popularity | Hugely popular | Very popular | Very popular |
| Maintenance | Stale | Stale | Maintained |
| License | MIT | MIT | MIT |
| Description | zod is a JavaScript package in the validation category. | yup is a JavaScript package in the validation category. | joi is a JavaScript package in the validation category. |
Which should I use?
Most Popular
zod has the highest weekly downloads (18.0M/week).
Most Mature
joi combines a large user base with an active release cadence.
Most Recently Updated
joi was last published 10 months ago.
Install Commands
zod
$
npm install zod@1.0.0yup
$
npm install yup@1.0.0joi
$
npm install joi@1.0.0Which of these are in your project?
Upload your package.json to see if any of these packages are outdated, deprecated, or have better alternatives — plus get a full dependency health report.
Analyze My Project