Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

Zod

TypeScript-first schema validation library with static type inference.

Forms, validation and schemas npm MIT

Used in agent projects
2,153
17.0% of 12,697 public repos built with AI coding agents
Rank in forms, validation and schemas
#1 of 22
by use in those projects
Downloads
326M
npm, last 7 days, zod
GitHub stars
44.1K
last push Oct 10, 2026

How Zod is used

Zod is a dependency in 2,153 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (17.0%), #1 of 22 in forms, validation and schemas. The most used alternative there is React Hook Form. Projects that use it most often also use Class Variance Authority (50.8%), Tailwind Merge (54.6%), clsx (55.7%).

Often used with Zod

Class Variance Authority50.8% of Zod projects · 3.6× more than average
Tailwind Merge54.6% of Zod projects · 3.2× more than average
clsx55.7% of Zod projects · 3.1× more than average
React Hook Form41.7% of Zod projects · 5.2× more than average
Radix UI44.6% of Zod projects · 3.7× more than average
TypeScript94.2% of Zod projects · 1.7× more than average
React Hook Form Resolvers39.9% of Zod projects · 5.7× more than average
Lucide React56.0% of Zod projects · 2.8× more than average

By coding agent

Claude Code24.8% of projects set up for it
Cursor29.3% of projects set up for it
GitHub Copilot22.7% of projects set up for it
OpenAI Codex28.3% of projects set up for it
Gemini CLI25.3% of projects set up for it
OpenCode28.7% of projects set up for it
Devin Desktop25.2% of projects set up for it
Kiro29.5% of projects set up for it

Share of public repos configured for each agent that list Zod as a dependency.

Install

Packagenpm install zod
Main stacksTypeScript / JavaScript (1,107), Next.js (975), Python (30), React Native / Expo (18)
Example projectsapify/apify-mcp-server, getsentry/MobileBuildMCP, LeagueAkari/LeagueAkari, ding113/claude-code-hub, crbnos/carbon
Tool Used in agent projectsDownloads / wk GitHub starsLicense
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 —
Ajv npm
Fast JSON Schema validator for runtime schema validation and serialization.
131 (1.0%) 391M 14.9K MIT
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
Is Zod right for your project? Ask AgentGid →