openapi-typescript-codegen alternatives
8 packages that do the same job as openapi-typescript-codegen: @hey-api/openapi-ts, @kubb/plugin-client, @scalar/asyncapi-validator, openapi-client-axios, openapi-fetch, openapi-react-query, openapi-typescript, zod-openapi. Figures below are from npm, GitHub and Bundlephobia.
| Package | Weekly downloads | 12-month change | Gzip | Dependencies | Last release | Module | Types | Runtimes |
|---|---|---|---|---|---|---|---|---|
| openapi-typescript-codegen This package | 346k | +54% | - | 5 | 3 months ago | CommonJS | Bundled | - |
| @hey-api/openapi-ts | 3.4m | +473% | - | 10 | 3 months ago | ESM only | Bundled | - |
| @kubb/plugin-client | 72.5k | - | - | 7 | 1 month ago | ESM + CommonJS | Bundled | - |
| @scalar/asyncapi-validator | 5.8k | - | - | 5 | today | ESM only | Bundled | - |
| openapi-client-axios | 184.2k | +159% | - | 3 | 7 months ago | CommonJS | Bundled | - |
| openapi-fetch | 6.6m | +383% | - | 1 | 7 months ago | ESM + CommonJS | Bundled | - |
| openapi-react-query | 327.5k | +347% | - | 1 | 7 months ago | ESM + CommonJS | Bundled | - |
| openapi-typescript | 5.3m | +257% | - | 6 | 7 months ago | ESM + CommonJS | Bundled | - |
| zod-openapi | 994k | +287% | - | 0 | 24 days ago | ESM + CommonJS | Bundled | - |
12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package (Bundlephobia). Runtimes are taken from each package's own documentation; "-" means not recorded.
🌀 OpenAPI to TypeScript code generator. Production-grade SDKs, Zod schemas, TanStack Query hooks, and 20+ plugins. Used by Vercel, OpenCode, and PayPal.
Compared with openapi-typescript-codegen
- 9.7x more weekly downloads (3.4m vs 346k)
- 10 dependencies vs 5
- ESM only vs CommonJS
- Declares Node.js >=22.18.0 vs none declared
- Last release 22 Jun 2026 vs 20 Jun 2026
- 1.6x more GitHub stars (5.4k vs 3.4k)
API client generator plugin for Kubb, creating type-safe HTTP clients (Axios, Fetch) from OpenAPI specifications for making API requests.
Compared with openapi-typescript-codegen
- 4.8x fewer weekly downloads (72.5k vs 346k)
- 7 dependencies vs 5
- ESM + CommonJS vs CommonJS
- Declares Node.js >=20 vs none declared
- Last release 4 Aug 2026 vs 20 Jun 2026
- 1.9x fewer GitHub stars (1.8k vs 3.4k)
Validate AsyncAPI documents against the AsyncAPI Specification
Compared with openapi-typescript-codegen
- 60x fewer weekly downloads (5.8k vs 346k)
- ESM only vs CommonJS
- Declares Node.js >=22 vs none declared
- Last release 24 Sept 2026 vs 20 Jun 2026
- 4.8x more GitHub stars (16.2k vs 3.4k)
JavaScript client library for consuming OpenAPI-enabled APIs with axios. Types included.
Compared with openapi-typescript-codegen
- 1.9x fewer weekly downloads (184.2k vs 346k)
- 3 dependencies vs 5
- Last release 22 Feb 2026 vs 20 Jun 2026
- 5.5x fewer GitHub stars (616 vs 3.4k)
Fast, type-safe fetch client for your OpenAPI schema. Only 6 kb (min). Works with React, Vue, Svelte, or vanilla JS.
Compared with openapi-typescript-codegen
- 19x more weekly downloads (6.6m vs 346k)
- 1 dependency vs 5
- ESM + CommonJS vs CommonJS
- Last release 11 Feb 2026 vs 20 Jun 2026
- 2.5x more GitHub stars (8.4k vs 3.4k)
Fast, type-safe @tanstack/react-query client to work with your OpenAPI schema.
Compared with openapi-typescript-codegen
- 1.1x fewer weekly downloads (327.5k vs 346k)
- 1 dependency vs 5
- ESM + CommonJS vs CommonJS
- Last release 11 Feb 2026 vs 20 Jun 2026
- 2.5x more GitHub stars (8.4k vs 3.4k)
Convert OpenAPI 3.0 & 3.1 schemas to TypeScript
Compared with openapi-typescript-codegen
- 15x more weekly downloads (5.3m vs 346k)
- 6 dependencies vs 5
- ESM + CommonJS vs CommonJS
- Last release 11 Feb 2026 vs 20 Jun 2026
- 2.5x more GitHub stars (8.4k vs 3.4k)
Convert Zod Schemas to OpenAPI v3.x documentation
Compared with openapi-typescript-codegen
- 2.9x more weekly downloads (994k vs 346k)
- 0 dependencies vs 5
- ESM + CommonJS vs CommonJS
- Declares Node.js >=22.14.0 vs none declared
- Last release 31 Aug 2026 vs 20 Jun 2026
- 5.2x fewer GitHub stars (646 vs 3.4k)
Indexability: Indexed.