jsonschema
Python implementation of JSON Schema validation for structured data.
Used in agent projects
129
1.0% of 12,697 public repos built with AI coding agents
Rank in forms, validation and schemas
#6 of 22
by use in those projects
Downloads
125M
PyPI, last 7 days, jsonschema
GitHub stars
4,989
last push Oct 7, 2026
How jsonschema is used
jsonschema is a dependency in 129 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.0%), #6 of 22 in forms, validation and schemas. The most used alternative there is Zod. Projects that use it most often also use Pydantic (67.4%), PyYAML (65.1%), Requests (64.3%).
Often used with jsonschema
| Pydantic | 67.4% of jsonschema projects · 13.2× more than average |
|---|---|
| PyYAML | 65.1% of jsonschema projects · 21.5× more than average |
| Requests | 64.3% of jsonschema projects · 12.1× more than average |
| urllib3 | 51.2% of jsonschema projects · 33.7× more than average |
| Click | 50.4% of jsonschema projects · 28.7× more than average |
| NumPy | 50.4% of jsonschema projects · 13.1× more than average |
| python-dotenv | 50.4% of jsonschema projects · 7.7× more than average |
| attrs | 49.6% of jsonschema projects · 49.2× more than average |
By coding agent
| Claude Code | 1.8% of projects set up for it |
|---|---|
| GitHub Copilot | 1.6% of projects set up for it |
| Cursor | 1.4% of projects set up for it |
| OpenAI Codex | 2.4% of projects set up for it |
| Gemini CLI | 2.1% of projects set up for it |
| OpenCode | 1.6% of projects set up for it |
Share of public repos configured for each agent that list jsonschema as a dependency.
Install
| Package | pip install jsonschema |
|---|---|
| Main stacks | Python (123), Next.js (5), Other (1) |
| Example projects | dramaclaw/dramaclaw, Kaggle/kaggle-environments, twjackysu/TWSEMCPServer, microsoft/edge-ai, president-xd/revula |
Alternatives to jsonschema
| 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 | — |
| Ajv npm Fast JSON Schema validator for runtime schema validation and serialization. |
131 (1.0%) | 391M | 14.9K | MIT |
| 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 |