Skip to content
JS
Comparison

json-schema-to-ts vs runtypes

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
runtypesv7.0.5, 14 Aug 2026

Runtime validation for static types

$ npm install runtypes
Metricjson-schema-to-tsruntypesDifference
Weekly downloads24,914,807186,342json-schema-to-ts 133.7x higher
12-month download growth+962%-1%json-schema-to-ts +963 pts
Gzip size---
Minified size---
Dependencies20json-schema-to-ts 2 more
Unpacked size119 kB362 kBjson-schema-to-ts 3.1x smaller
Latest release3.1.1, 29 Aug 20247.0.5, 14 Aug 2026runtypes 23 months more recent
Releases, last 12 months0--
First published14 Jul 2020--
GitHub stars1,7832,701runtypes 1.5x higher
Open issues2324runtypes 1 more
Open pull requests91json-schema-to-ts 8 more
Contributors---
Commits, last 52 weeks23runtypes 1.5x higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSESM + CommonJSSame
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 weekruntypes186.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

runtypes

Major versions
  1. -
Last 5 releases
  1. -
Release count not fetched
json-schema-to-ts

-

runtypes

-

json-schema-to-ts

-

runtypes

-

  • Need no runtime dependenciesruntypes (json-schema-to-ts has 2, runtypes has 0)
  • Module formatBoth ESM + CommonJS
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementjson-schema-to-ts: >=16; runtypes: none declared (engines field in package.json)
  • Need the more recent releaseruntypes (7.0.5 on 14 Aug 2026 vs 3.1.1 on 29 Aug 2024)
  • Higher weekly npm downloadsjson-schema-to-ts (24.9m vs 186.3k)

Each line is generated from the data above.

runtypes: runtypes npm registry, runtypes npm downloads, runtypes GitHub. Data fetched 25 Sept 2026.

Indexability: Indexed.