openapi-ts/openapi-typescript

Generate TypeScript types from OpenAPI 3 specs

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 30 minutes ago
Added to GitGenius on September 7th, 2026
Created on December 13th, 2018
Open Issues & Pull Requests: 295 (+0)
GitHub issues: Enabled
Number of forks: 664
Total Stargazers: 8,361 (+0)
Total Subscribers: 25 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.2 days
Mean response time: 32.6 days
90th percentile: 97.2 days
Tracked items: 303

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 78% of tracked open issues have had no activity in three months, so the open count overstates what is actively being worked. Only 1% of issues opened in the past year have been closed. Three people close 64% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 209
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 512 days
Stale 30+ days: 199
Stale 90+ days: 173

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 4
Events in 7 days: 16

Top labels

  • bug (211)
  • openapi-ts (158)
  • enhancement (131)
  • openapi-fetch (119)
  • PRs welcome (57)
  • openapi-react-query (56)
  • good first issue (28)
  • stale (20)

Detailed Description

openapi-typescript is a code generation tool that produces TypeScript types from OpenAPI 3 specifications.

The tool solves the problem of maintaining type safety when consuming APIs defined by OpenAPI schemas. Rather than manually writing TypeScript interfaces that mirror API contracts, openapi-typescript generates accurate types directly from static OpenAPI schemas, eliminating the friction between API documentation and client-side type definitions. The project provides two complementary packages: one for type generation from OpenAPI specs, and another called openapi-fetch that provides ultra-fast HTTP fetching with types automatically derived from your schema.

Teams building TypeScript applications that consume OpenAPI-documented APIs should consider this tool, particularly when type safety and reducing boilerplate are priorities. It works well for projects where the API contract is already defined in OpenAPI format and you want client types to stay synchronized with that contract. The tool supports OpenAPI 3.0 and 3.1 specifications.

The project maintains active engagement with its community through documented contribution guidelines for each of its packages and maintains a dedicated documentation site. Development is supported by multiple sponsors and backers, indicating sustained investment in the tool's direction and reliability.