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-fetchopenapi-typescript-codegenv0.31.0, 20 Jun 2026
Library that generates Typescript clients based on the OpenAPI specification.
$ npm install openapi-typescript-codegen| Metric | openapi-fetch | openapi-typescript-codegen | Difference |
|---|---|---|---|
| Weekly downloads | 6,577,083 | 346,049 | openapi-fetch 19.0x higher |
| 12-month download growth | +383% | +54% | openapi-fetch +329 pts |
| Gzip size | - | - | - |
| Minified size | - | - | - |
| Dependencies | 1 | 5 | openapi-typescript-codegen 4 more |
| Unpacked size | 223 kB | 225 kB | openapi-fetch 1% smaller |
| Latest release | 0.17.0, 11 Feb 2026 | 0.31.0, 20 Jun 2026 | openapi-typescript-codegen 4 months more recent |
| Releases, last 12 months | 5 | 2 | openapi-fetch 3 more |
| First published | 14 Mar 2023 | 24 Nov 2019 | openapi-typescript-codegen 3.3 years earlier |
| GitHub stars | 8,382 | 3,369 | openapi-fetch 2.5x higher |
| Open issues | 210 | 169 | openapi-fetch 41 more |
| Open pull requests | 80 | 44 | openapi-fetch 36 more |
| Contributors | - | - | - |
| Commits, last 52 weeks | 212 | 423 | openapi-typescript-codegen 2.0x higher |
| TypeScript types | Bundled | Bundled | Same |
| Module format | ESM + CommonJS | CommonJS | 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 weekopenapi-typescript-codegen346k 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
openapi-typescript-codegen
Major versions
- 0.0.124 Nov 2019
Last 5 releases
- 0.31.020 Jun 2026
- 0.30.022 Dec 2025
- 0.29.07 Apr 2024
- 0.28.019 Mar 2024
- 0.27.015 Jan 2024
99 releases in total, 2 in the last 12 months
openapi-fetch
-
openapi-typescript-codegen
-
openapi-fetch
-
openapi-typescript-codegen
-
- Need both ESM and CommonJS entry pointsopenapi-fetch (openapi-fetch: ESM + CommonJS; openapi-typescript-codegen: CommonJS)
- Need to load it with require()Both
- Need TypeScript types in the package itselfBoth
- Need the more recent releaseopenapi-typescript-codegen (0.31.0 on 20 Jun 2026 vs 0.17.0 on 11 Feb 2026)
- Higher weekly npm downloadsopenapi-fetch (6.6m vs 346k)
Each line is generated from the data above.
- openapi-fetch vs openapi-client-axiosNo search data
- openapi-fetch vs zod-openapiNo search data
- openapi-fetch vs @hey-api/openapi-tsNo 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
- openapi-typescript-codegen vs openapi-client-axiosNo search data
- zod-openapi vs openapi-typescript-codegenNo search data
- openapi-typescript-codegen vs @kubb/oasNo search data
- typedoc vs openapi-typescript-codegenNo search data
- openapi-types vs openapi-typescript-codegenNo search data
openapi-fetch: openapi-fetch npm registry, openapi-fetch npm downloads, openapi-fetch GitHub. Data fetched 25 Sept 2026.
openapi-typescript-codegen: openapi-typescript-codegen npm registry, openapi-typescript-codegen npm downloads, openapi-typescript-codegen GitHub. Data fetched 25 Sept 2026.
Indexability: Indexed.