compare
Ajv vs Yup
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | Ajv | Yup |
|---|---|---|
| Language | TypeScript | TypeScript |
| Licence | MIT | MIT |
| Stars | 15k | 24k |
| Latest | v8.20.0 | v1.0.0 |
| Last push | 2026-09-06 | 2026-11-22 |
| Release cadence | about 35 days between releases | too few releases |
| Active contributors | 0 commit authors on the default branch in the last 90 days | 0 commit authors on the default branch in the last 90 days |
| Flags | none | none |
How they relate
Both replace Joi. Alternatives to Joi →
PartialAjvValidates against JSON Schema documents instead of a builder API.
Full replacementYupChained schema builders with validation and casting, for browsers and Node.js.
Both replace Zod. Alternatives to Zod →
PartialAjvValidates against JSON Schema documents, with no built-in TypeScript type inference from the schema.
Full replacementYupSchema builders with TypeScript type inference.
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…
Yup
- v1.0.02023-02-08v1 Because I finally got around to it
- v1.0.0-beta.72022-08-22Fixes published artifacts for the main fieldpre-release
- v1.0.0-beta.52022-08-22v1.0.0-beta.5 - partial fixes and cast migration pathpre-release
- v1.0.0-beta.42022-08-22chore(deps): update all non-major dependenciespre-release
- v1.0.0-beta.32022-03-09Fix object.partial(), `required` changespre-release
Ajv
✓ signed The latest release, v8.20.0, carries a signature GitHub verified.
Loading the security report
Yup
unsigned The latest release, v1.0.0, carries no signature GitHub could verify.
Loading the security report