Skip to content
JS
Comparison

openapi-fetch vs @hey-api/openapi-ts

Documentation toolingPackage data 25 Sept 2026
openapi-fetchv0.17.0, 11 Feb 2026

Fast, type-safe fetch client for your OpenAPI schema. Only 6 kb (min). Works with React, Vue, Svelte, or vanilla JS.

$ npm install openapi-fetch
@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
Metricopenapi-fetch@hey-api/openapi-tsDifference
Weekly downloads6,577,0833,373,199openapi-fetch 1.9x higher
12-month download growth+383%+473%@hey-api/openapi-ts +90 pts
Gzip size---
Minified size---
Dependencies110@hey-api/openapi-ts 9 more
Unpacked size223 kB2.8 MBopenapi-fetch 12.8x smaller
Latest release0.17.0, 11 Feb 20260.99.0, 22 Jun 2026@hey-api/openapi-ts 4 months more recent
Releases, last 12 months567@hey-api/openapi-ts 62 more
First published14 Mar 202322 Mar 2024openapi-fetch 12 months earlier
GitHub stars8,3825,438openapi-fetch 1.5x higher
Open issues210518@hey-api/openapi-ts 308 more
Open pull requests80121@hey-api/openapi-ts 41 more
Contributors---
Commits, last 52 weeks2122,998@hey-api/openapi-ts 14.1x higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSESM onlyDiffers
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-fetch6.5m latest week@hey-api/openapi-ts3.4m 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-fetch

Major versions
  1. 0.0.014 Mar 2023
Last 5 releases
  1. 0.17.011 Feb 2026
  2. 0.16.08 Feb 2026
  3. 0.15.28 Feb 2026
  4. 0.15.014 Oct 2025
  5. 0.14.12 Oct 2025
77 releases in total, 5 in the last 12 months

@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-fetch

-

@hey-api/openapi-ts

-

openapi-fetch

-

@hey-api/openapi-ts

-

  • Need both ESM and CommonJS entry pointsopenapi-fetch (openapi-fetch: ESM + CommonJS; @hey-api/openapi-ts: ESM only)
  • Need to load it with require()openapi-fetch
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementopenapi-fetch: none declared; @hey-api/openapi-ts: >=22.18.0 (engines field in package.json)
  • Need the more recent release@hey-api/openapi-ts (0.99.0 on 22 Jun 2026 vs 0.17.0 on 11 Feb 2026)
  • Higher weekly npm downloadsopenapi-fetch (6.6m vs 3.4m)

Each line is generated from the data above.

Indexability: Indexed.