Skip to content
JS
Alternatives

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.

Data as of 25 Sept 2026
PackageWeekly downloads12-month changeGzipDependenciesLast releaseModuleTypesRuntimes
jsonschema
This package
4.2m+16%-01 year agoCommonJSBundled-
@apidevtools/json-schema-ref-parser12.7m+102%-24 days agoESM onlyBundled-
@bcherny/json-schema-ref-parser247k--43 years agoESM + CommonJSBundled-
ajv287.9m+107%-45 months agoCommonJSBundled-
ts-json-schema-generator687.5k+116%-86 months agoCommonJSBundled-
@apidevtools/swagger-parser4.1m+55%-74 days agoCommonJSBundled-
swagger-parser985.9k-3%-15 years agoCommonJSBundled-
swagger-cli100.8k-13%-16 years agoCommonJSNone-
@redocly/ajv6.8m+225%-45 months agoCommonJSBundled-

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)
Sources: npm registry, npm downloads API, GitHub API, Bundlephobia. Data fetched 25 Sept 2026.

Indexability: Indexed.