openapi-typescript
Keep, but not for new work. 9th of 9 OpenAPI tools.
openapi-typescript turns OpenAPI 3 specs into one fast, accurate TypeScript types file with no runtime cost. It was long the minimal default for that job. On 19 September 2026 its maintainer put it in maintenance mode, with no more updates and no security patches. It also fails on TypeScript 7, so new projects should pick Hey API or Orval instead.
Best for: Existing codebases on TypeScript 5 or 6 that already use it and need time to plan a migration.
Scores
Overall3.2
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 3.0, likely 2.0 to 4.0
It was an excellent minimal types generator, but it is now unmaintained by its author's own statement and it breaks on TypeScript 7. Keep it where it already runs on TypeScript 5 or 6, and plan to migrate. For new work, pick Hey API (which may gain a plugin with the same 1:1 type output) or Orval.
- github.com/openapi-ts/openapi-typescript/issues/2874: Maintenance mode; commenters suggest Hey API, Orval and openapi-typesafe
- peers: Hey API and Orval are actively developed, with thousands of commits last year
- github.com/hyperscaleav/omniglass/issues/1619: TS7 incompatibility drives migrations
GPT-6.2 Sol: 3.4, likely 2.4 to 4.4
Existing projects can keep using the generator where the compiler and schema are already compatible. The end of updates and reported TypeScript 7 failures make it a poor choice for a new project. Hey API offers types and SDK generation, and Orval is a stronger fit when a team wants query hooks or mocks. The range reflects how much an existing workflow depends on newer compiler or OpenAPI features.
- github.com/openapi-ts/openapi-typescript/issues/2874: Upstream has ended development and security maintenance.
- github.com/openapi-ts/openapi-typescript/issues/2841: TypeScript 7 compatibility already affects downstream builds.
- heyapi.dev/docs/openapi/typescript/get-started: Hey API offers types and SDKs through its core plugins.
- orval.dev: Orval generates framework-specific query hooks and MSW mocks.
Needed by many5.6
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Many web and backend developers consume HTTP APIs described in OpenAPI and want types for them. This project covers only the types part of the category's job, not docs or full clients. That makes it a large but not universal group.
- dependents: 8,379 repos and 374 packages depend on it
- pkgpulse.com/guides/orval-vs-openapi-typescript-vs-kubb-openapi-client-2026: Positioned as the minimal, types-only choice
GPT-6.2 Sol: 5.1, likely 3.9 to 6.3
TypeScript teams working from an OpenAPI contract can use the generated types with any web framework. The audience narrows to teams with an existing spec that want types and can supply their own client and API docs. The developer survey measures TypeScript use, so it gives only an indirect estimate of demand for this workflow.
- 2025.stateofjs.com/en-US/usage: TypeScript is widely used among survey respondents.
- openapi-ts.dev/introduction: The generator turns existing OpenAPI 3.0 and 3.1 specs into framework-independent types.
Helps a lot5.8
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
On TypeScript 5 and 6, the generated types are accurate and fast, and the zero-runtime approach is well liked. It does not support TypeScript 7 because it relies on the compiler API at runtime, and no fix will come. Peers also do more: they generate SDKs, hooks and validators.
- pagopa.github.io/dx/docs/articles/benchmark-openapi-gen: Benchmark shows it fastest, with single-file output
- github.com/hyperscaleav/omniglass/issues/1619: Blocks TypeScript 7 because it calls the TS compiler API at runtime
- github.com/openapi-ts/openapi-typescript/issues/2874: Users frustrated by slow TS7 support
GPT-6.2 Sol: 6.5, likely 5.3 to 7.6
Version 7.13.0 generates path and operation types that developers and coding agents can check with the compiler, and its CLI documents how to detect stale output in CI. It was fast in one independent test, where it generated fewer artifacts than the other tools. Users report TypeScript 7 generator failures, and OpenAPI 3.2 coverage is incomplete. The exact cost depends on the compiler version and the schema features a team uses.
- npm latestVersion: The stable package evaluated is 7.13.0.
- github.com/openapi-ts/openapi-typescript/blob/main/docs/cli.md: Documents schema validation and the generated-output check.
- dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p: Independent test measured about 1.5 seconds for one types file.
- github.com/openapi-ts/openapi-typescript/issues/2841: Users report generator failures with TypeScript 7 and describe isolating the compiler used for generation.
- github.com/openapi-ts/openapi-typescript/discussions/2559: The roadmap acknowledges gaps in OpenAPI 3.2 support.
Holds up over time1.2
Will it still be a good choice in two years?
Claude Opus 5.5: 1.0, likely 0.0 to 2.0
The lead maintainer announced maintenance mode on 19 September 2026, with no updates and no security patches. The other maintainers cannot take it over, and funding on OpenCollective has been stopped. There is no official successor, and users are already migrating to Orval and Hey API.
- github.com/openapi-ts/openapi-typescript/issues/2874: Maintenance-mode announcement: no updates or security patches
- github pushedAt: Last push was 2026-09-25; last npm release was 2026-02-11
- github.com/johannschopplich/nuxt-api-party/issues/145: Downstream projects are reacting to the move to maintenance mode
GPT-6.2 Sol: 1.4, likely 0.6 to 2.3
The September 2026 announcement ended updates and security fixes, with no handoff planned. The generator last shipped in February, and the repository activity includes related packages. Existing generated types can stay in use, but the published generator will need workarounds as toolchains move on.
- github.com/openapi-ts/openapi-typescript/issues/2874: The maintainer confirms that updates have ended and asks users to migrate.
- github.com/openapi-ts/openapi-typescript/releases/tag/openapi-typescript@7.13.0: The generator's latest release shipped on February 11, 2026.
- npm versionsLastYear and github releasesLastYear: Two package versions versus nine releases across the repository.
- github.com/bitfocus/companion/commit/d18d2fd6a4c10ed1e4a47765dced468f2d036b06: Bitfocus Companion switched to Hey API after the announcement.
Used widely6.8
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It has about 65M downloads in 4 weeks, up from 7.3M a year ago. That ratio of about 9 is well above the 4.1 median. Its 8,379 dependent repos are the most among the type-generator peers. Some downloads come from other tools that install it, and the shutdown has started migrations, so the trend is likely to turn.
- npm downloadsLast4Weeks: 64.9M, versus 7.25M a year ago
- dependents: 8,379 repos, far above Orval (305)
- github.com/hyperscaleav/omniglass/issues/1619: Example of a team migrating away to Orval
GPT-6.2 Sol: 6.6, likely 5.1 to 7.9
The collector found 8,379 dependent repositories and 374 packages, a substantial footprint among the code generators with available counts. Four-week downloads rose from 7.3 million to 64.9 million, about 9 times year over year against a catalog baseline of 4.1 times. Automated and indirect installs make it hard to estimate how many new projects chose it, and the shared repository's stars also reflect sibling packages. A documented migration after the shutdown makes future reach less certain.
- dependents repos and packages: ecosyste.ms found 8,379 repositories and 374 npm packages.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: Recorded installs grew about 9 times against the catalog median of 4.1 times.
- peers dependentRepos: Orval has 305 indexed repositories, Kubb has one, and Hey API has no count.
- github stars and bluesky posts: 8,441 stars and seven Bluesky posts cover the shared repository.
- github.com/bitfocus/companion/commit/d18d2fd6a4c10ed1e4a47765dced468f2d036b06: An established downstream project migrated off the package.
Vouched for5.9
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 4.0 to 7.0
It is widely used in production and features in many independent comparisons and benchmarks. Well-known developers such as TkDodo have engaged with its output format. These endorsements now matter less, because users are leaving it and comparisons published after the shutdown recommend other tools.
- pkgpulse.com/guides/orval-vs-openapi-typescript-vs-kubb-openapi-client-2026: Independent 2026 comparison
- bluesky top: Recent posts are mostly about maintenance mode
- github.com/kubb-labs/kubb/pull/4652: A peer's docs now flag the maintenance status
GPT-6.2 Sol: 6.8, likely 5.6 to 8.0
Supabase documents using it to generate Management API types for its CLI, and Octokit uses an older version to generate GitHub REST API definitions. An independent comparison also measured fast generation and compact output. These sources establish practical value, with less evidence about adoption or satisfaction since updates ended.
- github.com/supabase/cli/blob/develop/docs/adr/0005-openapi-driven-code-generation.md: Supabase documents generation and CI checks for its Management API types.
- github.com/octokit/openapi-types.ts/blob/main/package.json: Octokit's API type package uses openapi-typescript 6 for generation.
- dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p: Independent comparison measured generation time and output size on one large schema.
Safe5.3
How safe is it to depend on?
Claude Opus 5.5: 5.0, likely 3.0 to 6.0
There are no advisories, it has 6 dependencies, the code is mostly handwritten and the licence is MIT. However, any future vulnerability will not be patched. Because it is a build-time code generator, the risk is moderate rather than severe. No OpenSSF Scorecard is available.
- advisories: 0 advisories ever
- npm dependencies: 6 runtime dependencies
- github.com/openapi-ts/openapi-typescript/issues/2874: Explicitly no future security patches
GPT-6.2 Sol: 5.6, likely 4.1 to 7.0
The MIT-licensed generator has six direct dependencies, an automated publishing workflow, and zero direct advisories in the bundle. Its Redocly dependency pulled vulnerable YAML parser versions in older lockfiles, and later Redocly 1.x releases provide fixes. The generator runs at build time and upstream has ended security updates. Exposure depends on the resolved dependencies, and there is no Scorecard to corroborate repository controls.
- npm license, npm dependencies, advisories total, scorecard: MIT, six direct dependencies, zero recorded direct advisories, and no Scorecard result.
- raw.githubusercontent.com/openapi-ts/openapi-typescript/openapi-typescript@7.13.0/.github/workflows/release.yml: GitHub Actions publishes through Changesets with OIDC permissions.
- github.com/openapi-ts/openapi-typescript/issues/2846: A user reported a vulnerable YAML parser through an older Redocly dependency.
- redocly.com/docs/cli/v1/changelog: Later Redocly 1.x releases updated the YAML parser to address vulnerabilities.
- github.com/openapi-ts/openapi-typescript/issues/2874: The upstream announcement explicitly ends security patches.
Good
- It produces a single, readable types file that maps 1:1 to the schema and adds no runtime code.
- Independent benchmarks show it generating far faster than Hey API or Orval on large specs.
- It has a small dependency footprint (6 dependencies), an MIT licence and no known advisories.
- It is very widely adopted, with about 8,400 dependent repositories, so examples and AI-agent knowledge are plentiful.
Bad
- Since September 2026 it is in maintenance mode, with no further updates or security patches.
- It calls the TypeScript compiler API at runtime, so it does not work with TypeScript 7.
- It only generates types, so clients, query hooks, validators and mocks need other tools.
- The companion package openapi-fetch is also unmaintained, and users are already migrating to Orval and Hey API.
The numbers
- npm downloads, 4 weeks
- 65M ×9.0 in a year
- GitHub stars
- 8.4k
- Commits, 12 months
- 183
- npm version
- 7.13.0 Feb 2026
- Versions, 12 months
- 2
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (openapi-ts/openapi-typescript), npm (openapi-typescript), OSV and the OpenSSF Scorecard.
OpenAPI tools
- 8.1Scalar
- 7.7Orval
- 7.3Swagger UI
- 7.1Hey API
- 6.9Kubb
- 6.9zod-to-openapi
- 6.7Spectral
- 6.7Redoc
- 3.2openapi-typescript