Skip to content
JS
Comparison

json-schema-to-typescript vs ts-json-schema-generator

Schema validationPackage data 25 Sept 2026
json-schema-to-typescriptv16.0.0, 28 Aug 2026

compile json schema to typescript typings

$ npm install json-schema-to-typescript
ts-json-schema-generatorv2.9.0, 4 Mar 2026

Generate JSON schema from your Typescript sources

$ npm install ts-json-schema-generator
Metricjson-schema-to-typescriptts-json-schema-generatorDifference
Weekly downloads2,622,807687,512json-schema-to-typescript 3.8x higher
12-month download growth+127%+116%json-schema-to-typescript +11 pts
Gzip size---
Minified size---
Dependencies88Same
Unpacked size287 kB920 kBjson-schema-to-typescript 3.2x smaller
Latest release16.0.0, 28 Aug 20262.9.0, 4 Mar 2026json-schema-to-typescript 6 months more recent
Releases, last 12 months14ts-json-schema-generator 3 more
First published31 Mar 20165 Sept 2017json-schema-to-typescript 17 months earlier
GitHub stars3,3471,716json-schema-to-typescript 2.0x higher
Open issues76105ts-json-schema-generator 29 more
Open pull requests6425json-schema-to-typescript 39 more
Contributors---
Commits, last 52 weeks138144ts-json-schema-generator +4%
TypeScript typesBundledBundledSame
Module formatCommonJSCommonJSSame
Runtimes---
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

json-schema-to-typescript2.7m latest weekts-json-schema-generator687.5k latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

json-schema-to-typescript

Major versions
  1. 0.1.031 Mar 2016
  2. 1.0.022 Jul 2016
  3. 2.0.08 Sept 2016
  4. 3.0.013 Oct 2016
  5. 4.0.022 Apr 2017
  6. 5.0.010 Nov 2017
  7. 6.0.019 Sept 2018
  8. 7.0.027 Jul 2019
  9. 8.0.030 Nov 2019
  10. 9.0.02 May 2020
  11. 10.0.029 Nov 2020
  12. 11.0.029 Jun 2022
  13. 12.0.023 Feb 2023
  14. 13.0.04 May 2023
  15. 14.0.020 Apr 2024
  16. 15.0.022 Jul 2024
  17. 16.0.028 Aug 2026
Last 5 releases
  1. 16.0.028 Aug 2026
  2. 15.0.414 Jan 2025
  3. 15.0.37 Nov 2024
  4. 15.0.230 Aug 2024
  5. 15.0.121 Aug 2024
117 releases in total, 1 in the last 12 months

ts-json-schema-generator

Major versions
  1. 0.9.05 Sept 2017
  2. 1.0.021 Mar 2022
  3. 2.0.013 Apr 2024
Last 5 releases
  1. 2.9.04 Mar 2026
  2. 2.7.04 Mar 2026
  3. 2.5.24 Mar 2026
  4. 2.5.04 Feb 2026
  5. 2.4.06 Apr 2025
148 releases in total, 4 in the last 12 months
json-schema-to-typescript

-

ts-json-schema-generator

-

json-schema-to-typescript

-

ts-json-schema-generator

-

  • Module formatBoth CommonJS
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementjson-schema-to-typescript: >=16.0.0; ts-json-schema-generator: >=22.0.0 (engines field in package.json)
  • Need the more recent releasejson-schema-to-typescript (16.0.0 on 28 Aug 2026 vs 2.9.0 on 4 Mar 2026)
  • Higher weekly npm downloadsjson-schema-to-typescript (2.6m vs 687.5k)

Each line is generated from the data above.