TypeBox
JSON Schema type builder with static type resolution for TypeScript validation.
Forms, validation and schemas npm MIT
How TypeBox is used
TypeBox is a dependency in 30 of the 6,208 public GitHub projects set up for AI coding agents that we scanned (0.6% of the 4,818 JavaScript/TypeScript ones), #13 of 61 in forms, validation and schemas. Counting the projects our scan samples by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983), it appears in 71; those are left out of every share on this page. The most used alternative in our scan is Zod (1,553 projects). Projects that use it most often also use Clack Prompts (80.0%), oxfmt (80.0%), oxlint (80.0%). It is more common in projects set up for OpenClaw (8.5%) than for GitHub Copilot (0.2%).
TypeBox popularity over time
Gid Score 55: downloads 100, use in agent projects 46, GitHub stars 0, downloads trend 56 (each 0-100). How it is calculated.
Often used with TypeBox
| Clack Prompts | 80.0% of TypeBox projects · 80.1× more than average |
|---|---|
| oxfmt | 80.0% of TypeBox projects · 32.2× more than average |
| oxlint | 80.0% of TypeBox projects · 26.6× more than average |
| oxlint-tsgolint | 80.0% of TypeBox projects · 59.1× more than average |
| Playwright Core | 80.0% of TypeBox projects · 66.2× more than average |
| tsx | 80.0% of TypeBox projects · 5.3× more than average |
| yaml | 80.0% of TypeBox projects · 25.7× more than average |
| Vitest | 80.0% of TypeBox projects · 3.9× more than average |
By coding agent
| Claude Code | 0.8% of projects set up for it |
|---|---|
| OpenClaw | 8.5% of projects set up for it |
| Gemini CLI | 3.0% of projects set up for it |
| GitHub Copilot | 0.2% of projects set up for it |
Share of public repos configured for each agent that list TypeBox as a dependency.
Install
| Package | npm install @sinclair/typebox |
|---|---|
| Main stacks | TypeScript / JavaScript (24), Python (6) |
| Example projects | Bitterbot-AI/bitterbot-desktop, ArgentAIOS/argentos-core, raucvr/Group-Goki, fatihguner/foreman, hashSTACS-Global/EnClaws |
Alternatives to TypeBox
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside TypeBox are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| Zod npm TypeScript-first schema validation library with static type inference. |
88 | 1,553 (32.2%) | 207M | 44.2K | MIT |
| Ajv npm Fast JSON Schema validator for runtime schema validation and serialization. |
75 | 151 (3.1%) | 233M | 14.9K | MIT |
| Valibot npm Modular and type-safe schema validation library for structural data with minimal bundle size. |
62 | 33 (0.7%) | 13.1M | 9,044 | MIT |
| Yup npm Simple schema validation library for JavaScript with chainable API and error handling. |
64 | 17 (0.4%) | 6.8M | 23.7K | MIT |
More in Forms, validation and schemas: React Hook Form Pydantic React Hook Form Resolvers jsonschema ajv-formats Protocol Buffers zod-to-json-schema email-validator