compare
Ajv vs Zod
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | Ajv | Zod |
|---|---|---|
| Language | TypeScript | TypeScript |
| Licence | MIT | MIT |
| Stars | 15k | 44k |
| Latest | v8.20.0 | v4.6.7 |
| Last push | 2026-09-06 | 2026-11-22 |
| Release cadence | about 35 days between releases | about 1 day between releases |
| Active contributors | 0 commit authors on the default branch in the last 90 days | 8 commit authors on the default branch in the last 90 days |
| Flags | none | none |
How they relate
Ajv replaces Zod. Alternatives to Zod →
PartialValidates against JSON Schema documents, with no built-in TypeScript type inference from the schema.
Both replace Joi. Alternatives to Joi →
PartialAjvValidates against JSON Schema documents instead of a builder API.
Full replacementZodSchema validation with static type inference, for Node.js and browsers.
Ajv
- v8.20.02026-04-24fix: add support for node 22/24, drop node 16/21
- v8.19.02026-04-24fix prototype pollution via format keyword using $data ref
- v8.18.02026-02-14feat: allow tree-shaking by adding "sideEffects": false to package.json
- v8.17.12024-07-12bump version to 8.17.1
- v8.17.02024-07-10The only functional change is to switch from uri-js (which is no longer supported), to fast-uri. This is the second att…
Zod
- v4.6.72026-10-12b500a2ee95134f81d74da7911d7378dd2853d042 4.6.7
- v4.6.62026-10-11> Six malicious commits pushed to main on September 21 with a compromised git credential were reverted the same day in…
- v4.6.52026-09-13d2b135cfb7a3582b9eb515756b9166bcb9521f4a docs: add the 4.6.x patch highlights to the 4.6 post
- v4.6.42026-09-13A patch on top of 4.6.3.
- v4.6.32026-09-12A patch on top of 4.6.2.
Ajv
✓ signed The latest release, v8.20.0, carries a signature GitHub verified.
Loading the security report
Zod
✓ signed The latest release, v4.6.7, carries a signature GitHub verified.
Loading the security report