jsonschema alternatives
8 packages that do the same job as jsonschema: @apidevtools/json-schema-ref-parser, @bcherny/json-schema-ref-parser, ajv, ts-json-schema-generator, @apidevtools/swagger-parser, swagger-parser, swagger-cli, @redocly/ajv. Figures below are from npm, GitHub and Bundlephobia.
| Package | Weekly downloads | 12-month change | Gzip | Dependencies | Last release | Module | Types | Runtimes |
|---|---|---|---|---|---|---|---|---|
| jsonschema This package | 4.2m | +16% | - | 0 | 1 year ago | CommonJS | Bundled | - |
| @apidevtools/json-schema-ref-parser | 12.7m | +102% | - | 2 | 4 days ago | ESM only | Bundled | - |
| @bcherny/json-schema-ref-parser | 247k | - | - | 4 | 3 years ago | ESM + CommonJS | Bundled | - |
| ajv | 287.9m | +107% | - | 4 | 5 months ago | CommonJS | Bundled | - |
| ts-json-schema-generator | 687.5k | +116% | - | 8 | 6 months ago | CommonJS | Bundled | - |
| @apidevtools/swagger-parser | 4.1m | +55% | - | 7 | 4 days ago | CommonJS | Bundled | - |
| swagger-parser | 985.9k | -3% | - | 1 | 5 years ago | CommonJS | Bundled | - |
| swagger-cli | 100.8k | -13% | - | 1 | 6 years ago | CommonJS | None | - |
| @redocly/ajv | 6.8m | +225% | - | 4 | 5 months ago | 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.
Parse, Resolve, and Dereference JSON Schema $ref pointers
Compared with jsonschema
- 3.1x more weekly downloads (12.7m vs 4.2m)
- 2 dependencies vs 0
- ESM only vs CommonJS
- Declares Node.js >=22.19.0 vs Node.js *
- Last release 20 Sept 2026 vs 7 Jan 2025
- 1.7x fewer GitHub stars (1.1k vs 1.9k)
Parse, Resolve, and Dereference JSON Schema $ref pointers
Compared with jsonschema
- 17x fewer weekly downloads (247k vs 4.2m)
- 4 dependencies vs 0
- ESM + CommonJS vs CommonJS
- Declares Node.js >= 16 vs Node.js *
- Last release 23 Feb 2023 vs 7 Jan 2025
- 1.7x fewer GitHub stars (1.1k vs 1.9k)
Another JSON Schema Validator
Compared with jsonschema
- 69x more weekly downloads (287.9m vs 4.2m)
- 4 dependencies vs 0
- Declares no Node.js engine range vs Node.js *
- Last release 24 Apr 2026 vs 7 Jan 2025
- 7.9x more GitHub stars (14.8k vs 1.9k)
Generate JSON schema from your Typescript sources
Compared with jsonschema
- 6.0x fewer weekly downloads (687.5k vs 4.2m)
- 8 dependencies vs 0
- Declares Node.js >=22.0.0 vs Node.js *
- Last release 4 Mar 2026 vs 7 Jan 2025
- 1.1x fewer GitHub stars (1.7k vs 1.9k)
Swagger 2.0 and OpenAPI 3.0 parser and validator for Node and browsers
Compared with jsonschema
- About the same weekly downloads (4.1m vs 4.2m)
- 7 dependencies vs 0
- Declares Node.js >=22.19.0 vs Node.js *
- Last release 20 Sept 2026 vs 7 Jan 2025
- 1.6x fewer GitHub stars (1.2k vs 1.9k)
Swagger 2.0 and OpenAPI 3.0 parser and validator for Node and browsers
Compared with jsonschema
- 4.2x fewer weekly downloads (985.9k vs 4.2m)
- 1 dependency vs 0
- Declares Node.js >=10 vs Node.js *
- Last release 15 Aug 2021 vs 7 Jan 2025
- 1.6x fewer GitHub stars (1.2k vs 1.9k)
Swagger 2.0 and OpenAPI 3.0 command-line tool
Compared with jsonschema
- 41x fewer weekly downloads (100.8k vs 4.2m)
- 1 dependency vs 0
- No types vs bundled types
- Declares Node.js >=10 vs Node.js *
- Last release 19 Jul 2020 vs 7 Jan 2025
- 3.6x fewer GitHub stars (514 vs 1.9k)
Another JSON Schema Validator
Compared with jsonschema
- 1.6x more weekly downloads (6.8m vs 4.2m)
- 4 dependencies vs 0
- Declares no Node.js engine range vs Node.js *
- Last release 6 Apr 2026 vs 7 Jan 2025
- 938x fewer GitHub stars (2 vs 1.9k)
Indexability: Indexed.