Skip to content
JS
Comparison

json-schema-to-ts vs prisma-json-types-generator

TypeScript toolingPackage data 25 Sept 2026
json-schema-to-tsv3.1.1, 29 Aug 2024

Infer typescript types from your JSON schemas!

$ npm install json-schema-to-ts
prisma-json-types-generatorv5.1.1, 9 Jul 2026

Changes JsonValues to your custom typescript type

$ npm install prisma-json-types-generator
Metricjson-schema-to-tsprisma-json-types-generatorDifference
Weekly downloads24,914,807338,305json-schema-to-ts 73.6x higher
12-month download growth+962%+151%json-schema-to-ts +811 pts
Gzip size---
Minified size---
Dependencies25prisma-json-types-generator 3 more
Unpacked size119 kB92 kBprisma-json-types-generator 30% smaller
Latest release3.1.1, 29 Aug 20245.1.1, 9 Jul 2026prisma-json-types-generator 22 months more recent
Releases, last 12 months08prisma-json-types-generator 8 more
First published14 Jul 20206 Jan 2023json-schema-to-ts 2.5 years earlier
GitHub stars1,783568json-schema-to-ts 3.1x higher
Open issues232json-schema-to-ts 21 more
Open pull requests99Same
Contributors---
Commits, last 52 weeks2111prisma-json-types-generator 55.5x higher
TypeScript typesBundledNoneDiffers
Module formatESM + CommonJSCommonJSDiffers
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-ts24.9m latest weekprisma-json-types-generator338.3k 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-ts

Major versions
  1. 0.1.014 Jul 2020
  2. 1.0.06 Sept 2020
  3. 2.0.09 Apr 2022
  4. 3.0.020 Dec 2023
Last 5 releases
  1. 3.1.129 Aug 2024
  2. 3.1.04 May 2024
  3. 3.0.110 Mar 2024
  4. 3.0.020 Dec 2023
  5. 2.12.018 Dec 2023
58 releases in total, 0 in the last 12 months

prisma-json-types-generator

Major versions
  1. 1.0.06 Jan 2023
  2. 2.0.021 Jan 2023
  3. 3.0.02 Sept 2023
  4. 4.0.05 Dec 2025
  5. 5.0.029 Apr 2026
Last 5 releases
  1. 5.1.19 Jul 2026
  2. 5.1.025 May 2026
  3. 5.0.029 Apr 2026
  4. 4.1.126 Jan 2026
  5. 4.1.08 Jan 2026
48 releases in total, 8 in the last 12 months
json-schema-to-ts

-

prisma-json-types-generator

-

json-schema-to-ts

-

prisma-json-types-generator

-

  • Need both ESM and CommonJS entry pointsjson-schema-to-ts (json-schema-to-ts: ESM + CommonJS; prisma-json-types-generator: CommonJS)
  • Need to load it with require()Both
  • Need TypeScript types in the package itselfjson-schema-to-ts (json-schema-to-ts: Bundled; prisma-json-types-generator: None)
  • Node.js version requirementjson-schema-to-ts: >=16; prisma-json-types-generator: >=14.0 (engines field in package.json)
  • Need the more recent releaseprisma-json-types-generator (5.1.1 on 9 Jul 2026 vs 3.1.1 on 29 Aug 2024)
  • Higher weekly npm downloadsjson-schema-to-ts (24.9m vs 338.3k)

Each line is generated from the data above.

Indexability: Indexed.