Skip to content
JS
Comparison

typebox vs ts-json-schema-generator

Schema validationPackage data 25 Sept 2026
typeboxv1.3.34, 18 Sept 2026

Json Schema Type Builder with Static Type Resolution for TypeScript

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

Generate JSON schema from your Typescript sources

$ npm install ts-json-schema-generator
Metrictypeboxts-json-schema-generatorDifference
Weekly downloads8,186,082687,512typebox 11.9x higher
12-month download growth+56221%+116%typebox +56105 pts
Gzip size---
Minified size---
Dependencies08ts-json-schema-generator 8 more
Unpacked size1.5 MB920 kBts-json-schema-generator 1.7x smaller
Latest release1.3.34, 18 Sept 20262.9.0, 4 Mar 2026typebox 7 months more recent
Releases, last 12 months1614typebox 157 more
First published10 Mar 20235 Sept 2017ts-json-schema-generator 5.5 years earlier
GitHub stars6,9691,716typebox 4.1x higher
Open issues0105ts-json-schema-generator 105 more
Open pull requests025ts-json-schema-generator 25 more
Contributors---
Commits, last 52 weeks241144typebox 1.7x higher
TypeScript typesBundledBundledSame
Module formatESM onlyCommonJSDiffers
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.

typebox8.2m 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.

typebox

Major versions
  1. 0.0.110 Mar 2023
  2. 1.0.09 Sept 2025
Last 5 releases
  1. 1.3.3418 Sept 2026
  2. 1.3.3317 Sept 2026
  3. 1.3.3216 Sept 2026
  4. 1.3.3115 Sept 2026
  5. 1.3.309 Sept 2026
178 releases in total, 161 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
typebox

-

ts-json-schema-generator

-

typebox

-

ts-json-schema-generator

-

  • Need no runtime dependenciestypebox (typebox has 0, ts-json-schema-generator has 8)
  • Need both ESM and CommonJS entry pointsNeither (typebox: ESM only; ts-json-schema-generator: CommonJS)
  • Need to load it with require()ts-json-schema-generator
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementtypebox: none declared; ts-json-schema-generator: >=22.0.0 (engines field in package.json)
  • Need the more recent releasetypebox (1.3.34 on 18 Sept 2026 vs 2.9.0 on 4 Mar 2026)
  • Higher weekly npm downloadstypebox (8.2m vs 687.5k)

Each line is generated from the data above.

Indexability: Indexed.