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-to-json-schema

Convert Zod validation schemas to JSON Schema format.

Forms, validation and schemas npm ISC

Used in agent projects
43
0.3% of 12,697 public repos built with AI coding agents
Rank in forms, validation and schemas
#13 of 22
by use in those projects
Downloads
69.9M
npm, last 7 days, zod-to-json-schema
GitHub stars
1,251
last push Mar 27, 2026

How zod-to-json-schema is used

zod-to-json-schema is a dependency in 43 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.3%), #13 of 22 in forms, validation and schemas. The most used alternative there is Zod. Projects that use it most often also use Zod (95.3%), Model Context Protocol SDK (JavaScript) (48.8%), tsx (46.5%).

Often used with zod-to-json-schema

Zod95.3% of zod-to-json-schema projects · 5.6× more than average
Model Context Protocol SDK (JavaScript)48.8% of zod-to-json-schema projects · 10.3× more than average
tsx46.5% of zod-to-json-schema projects · 4.7× more than average
OpenAI37.2% of zod-to-json-schema projects · 13.1× more than average
TypeScript90.7% of zod-to-json-schema projects · 1.6× more than average
Vitest41.9% of zod-to-json-schema projects · 3.4× more than average
Anthropic SDK34.9% of zod-to-json-schema projects · 21.0× more than average
dotenv44.2% of zod-to-json-schema projects · 2.8× more than average

By coding agent

Claude Code0.6% of projects set up for it
GitHub Copilot0.7% of projects set up for it
Cursor0.6% of projects set up for it

Share of public repos configured for each agent that list zod-to-json-schema as a dependency.

Install

Packagenpm install zod-to-json-schema
Main stacksTypeScript / JavaScript (32), Next.js (9), .NET (1), Rust (1)
Example projects5pyj29s7cm-tech/LumiCore, amelioro/ameliorate, adeze/raindrop-mcp, Adamlixi/codenano, tontoko/fast-playwright-mcp

Alternatives to zod-to-json-schema

All forms, validation and schemas

Tool Used in agent projectsDownloads / wk GitHub starsLicense
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 —
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
Is zod-to-json-schema right for your project? Ask AgentGid →