Skip to content
Agents tracked: 502 Releases (7d): 613 Agent status: 4 with issuesSince last limit reset: Claude 7d · Codex 5d For AI agents: Markdown Updated Nov 18, 2026

Zod vs Ajv

In 4,864 JavaScript/TypeScript projects set up for AI coding agents, Zod is a dependency in 1,579 (32.5%) and Ajv in 153 (3.1%): Zod is 10.3× as common. Among repos created in the last 90 days that use a forms, validation and schemas tool, Zod is in 87.2% and Ajv in 11.7%, against 87.0% and 8.2% of older ones. 79 projects list both, often a sign of a migration or of a monorepo with several apps.

Forms, validation and schemas npm Updated Nov 17, 2026

Zod32.5%
Ajv3.1%

Share of 4,864 JavaScript/TypeScript projects set up for AI coding agents that list each one as a dependency.

Side by side

ZodAjv
Agent projects that use it1,579153
Rank in forms, validation and schemas#1#5
In new repos with a forms, validation and schemas tool (last 90 days)87.2%11.7%
In older repos with one87.0%8.2%
Downloads, last 7 days462M528M
GitHub stars44.3K14.9K
Last push to its repoNov 16, 2026Sep 6, 2026
LicenseMITMIT
Funding—Yes
Projects that list both79

Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.

By coding agent

Projects set up forJavaScript/TypeScript reposZodAjv
Claude Code2,61732.9%4.2%
GitHub Copilot2,35030.3%3.3%
Cursor1,99036.2%2.3%
Gemini CLI42232.2%10.2%
OpenAI Codex40931.5%5.4%
OpenCode30431.9%4.9%
OpenClaw24130.7%14.5%
Devin Desktop23132.5%0%
Kiro12532.0%16.0%
Roo-Code9036.7%0%

Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.

Zod

TypeScript-first schema validation library with static type inference.

Most often used with it:

TypeScript93.5% of its projects
React Hook Form Resolvers31.2% of its projects
clsx48.1% of its projects
Tailwind Merge47.4% of its projects
React Hook Form32.6% of its projects

npm install zod

Ajv

Fast JSON Schema validator for runtime schema validation and serialization.

Most often used with it:

ajv-formats37.3% of its projects
yaml31.4% of its projects
Commander30.7% of its projects
ws29.4% of its projects
chalk28.8% of its projects

npm install ajv

More matchups

Pydantic vs jsonschema

How we count

Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.