Skip to content
JS
Comparison

openapi-typescript-codegen vs @kubb/oas

Documentation toolingPackage data 25 Sept 2026
openapi-typescript-codegenv0.31.0, 20 Jun 2026

Library that generates Typescript clients based on the OpenAPI specification.

$ npm install openapi-typescript-codegen
@kubb/oasv4.39.3, 4 Aug 2026

OpenAPI Specification (OAS) utilities and helpers for Kubb, providing parsing, normalization, and manipulation of OpenAPI/Swagger schemas.

$ npm install @kubb/oas
Metricopenapi-typescript-codegen@kubb/oasDifference
Weekly downloads346,049166,505openapi-typescript-codegen 2.1x higher
12-month download growth+54%--
Gzip size---
Minified size---
Dependencies511@kubb/oas 6 more
Unpacked size225 kB276 kBopenapi-typescript-codegen 22% smaller
Latest release0.31.0, 20 Jun 20264.39.3, 4 Aug 2026@kubb/oas 44 days more recent
Releases, last 12 months2--
First published24 Nov 2019--
GitHub stars3,3691,804openapi-typescript-codegen 1.9x higher
Open issues1695openapi-typescript-codegen 164 more
Open pull requests441openapi-typescript-codegen 43 more
Contributors---
Commits, last 52 weeks4234,820@kubb/oas 11.4x higher
TypeScript typesBundledBundledSame
Module formatCommonJSESM + CommonJSDiffers
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-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-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

@kubb/oas

Major versions
  1. -
Last 5 releases
  1. -
Release count not fetched
openapi-typescript-codegen

-

@kubb/oas

-

openapi-typescript-codegen

-

@kubb/oas

-

  • Need both ESM and CommonJS entry points@kubb/oas (openapi-typescript-codegen: CommonJS; @kubb/oas: ESM + CommonJS)
  • Need to load it with require()Both
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementopenapi-typescript-codegen: none declared; @kubb/oas: >=20 (engines field in package.json)
  • Need the more recent release@kubb/oas (4.39.3 on 4 Aug 2026 vs 0.31.0 on 20 Jun 2026)
  • Higher weekly npm downloadsopenapi-typescript-codegen (346k vs 166.5k)

Each line is generated from the data above.

@kubb/oas: @kubb/oas npm registry, @kubb/oas GitHub. Data fetched 25 Sept 2026.

Indexability: Indexed.