typebox alternatives
8 packages that do the same job as typebox: ts-json-schema-generator, json-schema-typed, zod, valibot, superstruct, typanion, json-schema-to-typescript, @zodios/core. Figures below are from npm, GitHub and Bundlephobia.
| Package | Weekly downloads | 12-month change | Gzip | Dependencies | Last release | Module | Types | Runtimes |
|---|---|---|---|---|---|---|---|---|
| typebox This package | 8.2m | +56221% | - | 0 | 6 days ago | ESM only | Bundled | - |
| ts-json-schema-generator | 687.5k | +116% | - | 8 | 6 months ago | CommonJS | Bundled | - |
| json-schema-typed | 38.2m | +3031% | - | 0 | 10 months ago | ESM only | Bundled | - |
| zod | 211.9m | +403% | - | 0 | 11 days ago | ESM + CommonJS | Bundled | - |
| valibot | 13.4m | +704% | - | 0 | 15 days ago | ESM + CommonJS | Bundled | - |
| superstruct | 4.7m | +93% | - | 0 | 2 years ago | ESM + CommonJS | Bundled | - |
| typanion | 3.5m | +71% | - | 0 | 3 years ago | CommonJS | None | - |
| json-schema-to-typescript | 2.6m | +127% | - | 8 | 28 days ago | CommonJS | Bundled | - |
| @zodios/core | 270.5k | - | - | 0 | 3 years ago | ESM + CommonJS | Bundled | - |
12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package (Bundlephobia). Runtimes are taken from each package's own documentation; "-" means not recorded.
Generate JSON schema from your Typescript sources
Compared with typebox
- 12x fewer weekly downloads (687.5k vs 8.2m)
- 8 dependencies vs 0
- CommonJS vs ESM only
- Declares Node.js >=22.0.0 vs none declared
- Last release 4 Mar 2026 vs 18 Sept 2026
- 4.1x fewer GitHub stars (1.7k vs 7k)
JSON Schema TypeScript definitions with complete inline documentation.
Compared with typebox
- 4.7x more weekly downloads (38.2m vs 8.2m)
- Last release 17 Nov 2025 vs 18 Sept 2026
- 60x fewer GitHub stars (117 vs 7k)
TypeScript-first schema declaration and validation library with static type inference
Compared with typebox
- 26x more weekly downloads (211.9m vs 8.2m)
- ESM + CommonJS vs ESM only
- Last release 13 Sept 2026 vs 18 Sept 2026
- 6.3x more GitHub stars (44k vs 7k)
The modular and type safe schema library for validating structural data
Compared with typebox
- 1.6x more weekly downloads (13.4m vs 8.2m)
- ESM + CommonJS vs ESM only
- Last release 9 Sept 2026 vs 18 Sept 2026
- 1.3x more GitHub stars (9k vs 7k)
A simple and composable way to validate data in JavaScript (and TypeScript).
Compared with typebox
- 1.7x fewer weekly downloads (4.7m vs 8.2m)
- ESM + CommonJS vs ESM only
- Declares Node.js >=14.0.0 vs none declared
- Last release 6 Jul 2024 vs 18 Sept 2026
- About the same number of GitHub stars (7.1k vs 7k)
Simple runtime TypeScript validator library
Compared with typebox
- 2.3x fewer weekly downloads (3.5m vs 8.2m)
- CommonJS vs ESM only
- No types vs bundled types
- Last release 6 Aug 2023 vs 18 Sept 2026
- 25x fewer GitHub stars (274 vs 7k)
compile json schema to typescript typings
Compared with typebox
- 3.1x fewer weekly downloads (2.6m vs 8.2m)
- 8 dependencies vs 0
- CommonJS vs ESM only
- Declares Node.js >=16.0.0 vs none declared
- Last release 28 Aug 2026 vs 18 Sept 2026
- 2.1x fewer GitHub stars (3.3k vs 7k)
Typescript API client with autocompletion and zod validations
Compared with typebox
- 30x fewer weekly downloads (270.5k vs 8.2m)
- ESM + CommonJS vs ESM only
- Last release 22 Aug 2023 vs 18 Sept 2026
- 3.6x fewer GitHub stars (1.9k vs 7k)
Indexability: Indexed.