// the find
ferdikoomen/openapi-typescript-codegen
NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
A Node.js CLI and library that generates TypeScript/JavaScript API clients from OpenAPI v2 and v3 specs, supporting fetch, axios, XHR, node-fetch, and Angular's HttpClient. It's abandoned — the README's first words are a migration notice pointing to the `@hey-api/openapi-ts` fork. Don't adopt this; migrate to that.
The template-based architecture (Handlebars) makes it easy to understand what code gets generated and why. E2E tests actually spin up a real server and exercise the generated clients across all five HTTP backends, which is a higher bar than most codegen projects bother with. The cancelable promise pattern is built in at the core layer rather than bolted on per-endpoint. Separating the parser, post-processor, and writer into distinct passes keeps the codebase navigable.
Officially deprecated and archived — all open issues and PRs were closed in May 2024, and the NPM package is deprecated. No OpenAPI 3.1 support, which matters because 3.1 fixes the JSON Schema alignment that 3.0 got wrong. The generated enum handling is a known pain point (numeric vs string enums produce awkward TypeScript), and since the project is dead, it will never be fixed here. The fork (`@hey-api/openapi-ts`) has diverged significantly, so migrating isn't just swapping a package name.