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| Metric | openapi-fetch | @hey-api/openapi-ts | Difference |
|---|---|---|---|
| Weekly downloads | 6,577,083 | 3,373,199 | openapi-fetch 1.9x higher |
| 12-month download growth | +383% | +473% | @hey-api/openapi-ts +90 pts |
| Gzip size | - | - | - |
| Minified size | - | - | - |
| Dependencies | 1 | 10 | @hey-api/openapi-ts 9 more |
| Unpacked size | 223 kB | 2.8 MB | openapi-fetch 12.8x smaller |
| Latest release | 0.17.0, 11 Feb 2026 | 0.99.0, 22 Jun 2026 | @hey-api/openapi-ts 4 months more recent |
| Releases, last 12 months | 5 | 67 | @hey-api/openapi-ts 62 more |
| First published | 14 Mar 2023 | 22 Mar 2024 | openapi-fetch 12 months earlier |
| GitHub stars | 8,382 | 5,438 | openapi-fetch 1.5x higher |
| Open issues | 210 | 518 | @hey-api/openapi-ts 308 more |
| Open pull requests | 80 | 121 | @hey-api/openapi-ts 41 more |
| Contributors | - | - | - |
| Commits, last 52 weeks | 212 | 2,998 | @hey-api/openapi-ts 14.1x higher |
| TypeScript types | Bundled | Bundled | Same |
| Module format | ESM + CommonJS | ESM only | Differs |
| Runtimes | - | - | - |
| License | MIT | MIT | Same |
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
openapi-fetch
Major versions
- 0.0.014 Mar 2023
Last 5 releases
- 0.17.011 Feb 2026
- 0.16.08 Feb 2026
- 0.15.28 Feb 2026
- 0.15.014 Oct 2025
- 0.14.12 Oct 2025
77 releases in total, 5 in the last 12 months
@hey-api/openapi-ts
Major versions
- 0.27.3722 Mar 2024
Last 5 releases
- 0.99.022 Jun 2026
- 0.98.28 Jun 2026
- 0.98.11 Jun 2026
- 0.98.01 Jun 2026
- 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.
- openapi-fetch vs openapi-typescript-codegenNo search data
- openapi-fetch vs openapi-client-axiosNo search data
- openapi-fetch vs zod-openapiNo search data
- openapi-fetch vs @kubb/oasNo search data
- openapi-fetch vs oazapftsNo search data
- openapi-types vs openapi-fetchNo search data
- @hey-api/openapi-ts vs openapi-typescript-codegenNo search data
- @hey-api/openapi-ts vs zod-openapiNo search data
- @hey-api/openapi-ts vs @asteasolutions/zod-to-openapiNo search data
openapi-fetch: openapi-fetch npm registry, openapi-fetch npm downloads, openapi-fetch GitHub. Data fetched 25 Sept 2026.
@hey-api/openapi-ts: @hey-api/openapi-ts npm registry, @hey-api/openapi-ts npm downloads, @hey-api/openapi-ts GitHub. Data fetched 25 Sept 2026.
Indexability: Indexed.