# openapi-ts/openapi-typescript

Generate TypeScript types from OpenAPI 3 specs

Repository: https://github.com/openapi-ts/openapi-typescript
Canonical: https://ross.abutalabs.com/products/openapi-typescript
Homepage: https://openapi-ts.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: openapi3, openapi3-1, openapi, swagger, typescript
Last push: 2026-08-26T14:16:19+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 58, longevity 100
- inputs: {"age_days": 2820, "days_push": 7, "days_rel": 203, "gap_med": 0, "n_releases_24m": 86}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8333, forks 661 (observed 2026-08-28T04:10:20.341678+00:00)

## What it is
A monorepo of tools for consuming OpenAPI schemas in TypeScript, centered on openapi-typescript which converts OpenAPI 3.0/3.1 specs into static TypeScript types, plus openapi-fetch for type-safe fetching. It generates zero-runtime-cost type definitions that work with any framework or stack.

## Use cases
- generate TypeScript types from an OpenAPI 3 spec
- convert swagger yaml to .d.ts type definitions
- type-safe API client generated from OpenAPI schema
- keep frontend types in sync with backend API spec
- typecheck API responses against OpenAPI schema
- generate types for OpenAPI 3.1 schemas

## When to choose
- you have an OpenAPI/Swagger spec and want static TypeScript types with zero runtime overhead
- you want type-safe fetch calls derived directly from your API schema
- you need a framework-agnostic codegen that works with any TypeScript stack

## When to avoid
- you want a full runtime SDK with validation and retries rather than just types
- your API has no OpenAPI specification to generate from
- you need runtime request/response validation, which this tool does not provide

## Facets
- artifact type: library
- maturity: stable
- function: sdk, developer-tools, http-client
- domain: developer-tools, apis, web-development, frontend, backend
- platform: cross-platform
- tags: openapi, swagger, type-generation, codegen, type-safety, api-client, code-generation, nodejs, typescript

## Member repositories
- openapi-ts/openapi-typescript (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:20.341678+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:27:43.994070+00:00, confidence not recorded.
  - readme: https://github.com/openapi-ts/openapi-typescript (fetched 2026-08-28T04:10:20.341678+00:00, sha c566c5171285)
  - homepage: https://openapi-ts.dev (fetched 2026-08-29T08:27:54.430169+00:00, sha edc200d55224)
  - registry_npm: https://registry.npmjs.org/openapi-typescript (fetched 2026-08-29T08:27:54.439890+00:00, sha e461d23412eb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
