compare
class-validator vs Zod
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | class-validator | Zod |
|---|---|---|
| Language | TypeScript | TypeScript |
| Licence | MIT | MIT |
| Stars | 12k | 44k |
| Latest | v0.15.1 | v4.6.5 |
| Last push | 2026-03-25 | 2026-10-02 |
| Release cadence | about 47 days between releases | about 1 day between releases |
| Active contributors | 0 commit authors on the default branch in the last 90 days | 57 commit authors on the default branch in the last 90 days |
| Flags | none | none |
How they relate
Both replace Joi. Alternatives to Joi →
Partialclass-validatorValidation rules declared as decorators on TypeScript classes instead of a schema object.
Full replacementZodSchema validation with static type inference, for Node.js and browsers.
class-validator
- v0.15.12026-02-26chore: publish 0.15.0 for real
- v0.15.02026-02-26feat: add IsISO31661Numeric decorator for country codes
- v0.14.42026-02-25build(deps-dev): bump js-yaml from 3.14.1 to 3.14.2 by @dependabot[bot] in
- v0.14.32025-11-24build: update validator to 13.15.20
- v0.14.22025-05-02fix: forbidUnknownValues should default true when validatorOptions undefined
class-validator
✓ signed The latest release, v0.15.1, carries a signature GitHub verified.
Loading the security report
Zod
unsigned The latest release, v4.6.5, carries no signature GitHub could verify.
Loading the security report