Ajv
Fast JSON Schema validator for runtime schema validation and serialization.
Forms, validation and schemas npm MIT
Used in agent projects
131
1.0% of 12,697 public repos built with AI coding agents
Rank in forms, validation and schemas
#5 of 22
by use in those projects
Downloads
391M
npm, last 7 days, ajv
GitHub stars
14.9K
last push Sep 6, 2026
How Ajv is used
Ajv is a dependency in 131 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.0%), #5 of 22 in forms, validation and schemas. The most used alternative there is Zod. Projects that use it most often also use ajv-formats (42.7%), jsdom (28.2%), Prettier (42.7%). It is more common in projects set up for Kiro (10.3%) than for Cursor (1.7%).
Often used with Ajv
| ajv-formats | 42.7% of Ajv projects · 96.9× more than average |
|---|---|
| jsdom | 28.2% of Ajv projects · 5.3× more than average |
| Prettier | 42.7% of Ajv projects · 2.4× more than average |
| Jest | 22.9% of Ajv projects · 4.1× more than average |
| Vitest | 32.8% of Ajv projects · 2.7× more than average |
| Model Context Protocol SDK (JavaScript) | 20.6% of Ajv projects · 4.3× more than average |
| Zod | 35.9% of Ajv projects · 2.1× more than average |
| TypeScript | 64.1% of Ajv projects |
By coding agent
| Claude Code | 2.1% of projects set up for it |
|---|---|
| GitHub Copilot | 1.9% of projects set up for it |
| Cursor | 1.7% of projects set up for it |
| OpenAI Codex | 4.2% of projects set up for it |
| Gemini CLI | 3.9% of projects set up for it |
| Kiro | 10.3% of projects set up for it |
| OpenCode | 3.1% of projects set up for it |
Share of public repos configured for each agent that list Ajv as a dependency.
Install
| Package | npm install ajv |
|---|---|
| Main stacks | TypeScript / JavaScript (93), Python (24), Next.js (9), React Native / Expo (3) |
| Example projects | apify/apify-mcp-server, getsentry/MobileBuildMCP, nirholas/three.ws, noemuch/bridge, pancakeswap/token-list |
Alternatives to Ajv
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Zod npm TypeScript-first schema validation library with static type inference. |
2,153 (17.0%) | 326M | 44.1K | MIT |
| React Hook Form npm Performant form state library using React Hooks with minimal rerenders. |
1,021 (8.0%) | 54.7M | 44.9K | MIT |
| React Hook Form Resolvers npm Validation resolvers for React Hook Form supporting Zod, Yup, and others. |
885 (7.0%) | 45.1M | 2,264 | MIT |
| Pydantic pypi Data validation and parsing library using Python type hints. |
649 (5.1%) | 222M | 29K | — |
| jsonschema pypi Python implementation of JSON Schema validation for structured data. |
129 (1.0%) | 125M | 4,989 | — |
| Protocol Buffers pypi Serialization format and code generator for structured data. |
75 (0.6%) | 154M | — | 3-Clause BSD License |
| drizzle-zod npm Generate Zod validation schemas automatically from Drizzle ORM database schemas. |
68 (0.5%) | 3.2M | 36K | Apache-2.0 |
| ajv-formats npm Format validation plugin for Ajv JSON schema validator (email, UUID, date, etc). |
56 (0.4%) | 141M | 228 | MIT |