Skip to content
JS
Comparison

openapi-types vs openapi-typescript-codegen

Documentation toolingPackage data 25 Sept 2026
openapi-typesv12.1.3, 24 May 2023

Types for OpenAPI documents.

$ npm install openapi-types
openapi-typescript-codegenv0.31.0, 20 Jun 2026

Library that generates Typescript clients based on the OpenAPI specification.

$ npm install openapi-typescript-codegen
Metricopenapi-typesopenapi-typescript-codegenDifference
Weekly downloads10,037,873346,049openapi-types 29.0x higher
12-month download growth+102%+54%openapi-types +48 pts
Gzip size---
Minified size---
Dependencies05openapi-typescript-codegen 5 more
Unpacked size32 kB225 kBopenapi-types 7.1x smaller
Latest release12.1.3, 24 May 20230.31.0, 20 Jun 2026openapi-typescript-codegen 3.1 years more recent
Releases, last 12 months02openapi-typescript-codegen 2 more
First published29 Jun 201824 Nov 2019openapi-types 17 months earlier
GitHub stars9213,369openapi-typescript-codegen 3.7x higher
Open issues118169openapi-typescript-codegen 51 more
Open pull requests2744openapi-typescript-codegen 17 more
Contributors---
Commits, last 52 weeks0423openapi-typescript-codegen higher
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.

openapi-types9.9m latest weekopenapi-typescript-codegen346k 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.

openapi-types

Major versions
  1. 1.0.129 Jun 2018
  2. 7.0.020 Jul 2020
  3. 8.0.08 Apr 2021
  4. 9.0.014 May 2021
  5. 10.0.02 Dec 2021
  6. 11.0.013 Apr 2022
  7. 12.0.03 Jun 2022
Last 5 releases
  1. 12.1.324 May 2023
  2. 12.1.224 May 2023
  3. 12.1.120 May 2023
  4. 12.1.09 Dec 2022
  5. 12.0.231 Aug 2022
36 releases in total, 0 in the last 12 months

openapi-typescript-codegen

Major versions
  1. 0.0.124 Nov 2019
Last 5 releases
  1. 0.31.020 Jun 2026
  2. 0.30.022 Dec 2025
  3. 0.29.07 Apr 2024
  4. 0.28.019 Mar 2024
  5. 0.27.015 Jan 2024
99 releases in total, 2 in the last 12 months
openapi-types

-

openapi-typescript-codegen

-

openapi-types

-

openapi-typescript-codegen

-

  • Need no runtime dependenciesopenapi-types (openapi-types has 0, openapi-typescript-codegen has 5)
  • Module formatBoth CommonJS
  • Need TypeScript types in the package itselfBoth
  • Need the more recent releaseopenapi-typescript-codegen (0.31.0 on 20 Jun 2026 vs 12.1.3 on 24 May 2023)
  • Higher weekly npm downloadsopenapi-types (10m vs 346k)

Each line is generated from the data above.

Indexability: Indexed.