Skip to content
JS
Comparison

@hey-api/openapi-ts vs openapi-typescript-codegen

Documentation toolingPackage data 25 Sept 2026
@hey-api/openapi-tsv0.99.0, 22 Jun 2026

🌀 OpenAPI to TypeScript code generator. Production-grade SDKs, Zod schemas, TanStack Query hooks, and 20+ plugins. Used by Vercel, OpenCode, and PayPal.

$ npm install @hey-api/openapi-ts
openapi-typescript-codegenv0.31.0, 20 Jun 2026

Library that generates Typescript clients based on the OpenAPI specification.

$ npm install openapi-typescript-codegen
Metric@hey-api/openapi-tsopenapi-typescript-codegenDifference
Weekly downloads3,373,199346,049@hey-api/openapi-ts 9.7x higher
12-month download growth+473%+54%@hey-api/openapi-ts +419 pts
Gzip size---
Minified size---
Dependencies105@hey-api/openapi-ts 5 more
Unpacked size2.8 MB225 kBopenapi-typescript-codegen 12.7x smaller
Latest release0.99.0, 22 Jun 20260.31.0, 20 Jun 2026@hey-api/openapi-ts 1 day more recent
Releases, last 12 months672@hey-api/openapi-ts 65 more
First published22 Mar 202424 Nov 2019openapi-typescript-codegen 4.3 years earlier
GitHub stars5,4383,369@hey-api/openapi-ts 1.6x higher
Open issues518169@hey-api/openapi-ts 349 more
Open pull requests12144@hey-api/openapi-ts 77 more
Contributors---
Commits, last 52 weeks2,998423@hey-api/openapi-ts 7.1x 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.

@hey-api/openapi-ts3.4m 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.

@hey-api/openapi-ts

Major versions
  1. 0.27.3722 Mar 2024
Last 5 releases
  1. 0.99.022 Jun 2026
  2. 0.98.28 Jun 2026
  3. 0.98.11 Jun 2026
  4. 0.98.01 Jun 2026
  5. 0.97.325 May 2026
271 releases in total, 67 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
@hey-api/openapi-ts

-

openapi-typescript-codegen

-

@hey-api/openapi-ts

-

openapi-typescript-codegen

-

  • Need both ESM and CommonJS entry pointsNeither (@hey-api/openapi-ts: ESM only; openapi-typescript-codegen: CommonJS)
  • Need to load it with require()openapi-typescript-codegen
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirement@hey-api/openapi-ts: >=22.18.0; openapi-typescript-codegen: none declared (engines field in package.json)
  • Need the more recent release@hey-api/openapi-ts (0.99.0 on 22 Jun 2026 vs 0.31.0 on 20 Jun 2026)
  • Higher weekly npm downloads@hey-api/openapi-ts (3.4m vs 346k)

Each line is generated from the data above.