Validation libraries
Check that data has the expected shape, and give it a type. We rate 10; Zod leads with 9.0 out of 10.
The numbers
Read from GitHub, npm and the OSV advisory database on 21 November 2026. Downloads also count build servers and installs by other tools, and they grow for almost every package: for the median project we rate, they are ×4.1 of a year before.
| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
|---|---|---|---|---|---|---|
| Zod | 1.8B | ×8.4 | 44k | 576 | Oct 2026 | 1 |
| Valibot | 132M | ×15 | 9.1k | 437 | Sept 2026 | 2 |
| TypeBox | 657M | ×2.6 | 7k | 211 | Jul 2026 | 0 |
| ArkType | 13M | ×8.5 | 7.9k | 4.6k | Nov 2026 | 0 |
| Ajv | 2.1B | ×3.2 | 15k | 8 | Apr 2026 | 1 |
| Joi | 136M | ×2.4 | 21k | 79 | Nov 2026 | 6 |
| class-validator | 70M | ×3.2 | 12k | 16 | Feb 2026 | 0 |
| Yup | 65M | +92% | 24k | 0 | Sept 2025 | 0 |
| Superstruct | 38M | ×3.0 | 7.1k | 0 | Jul 2024 | 0 |
| io-ts | 15M | ×2.1 | 6.8k | 0 | Dec 2024 | 0 |