openapi-typescript is a free, open source api development & testing project written in TypeScript and released under MIT. It has 8,369 GitHub stars, 665 forks and 300 open issues, and was last pushed yesterday. On this registry it ranks #27 of 103 tracked projects in API Development & Testing, with 5 head-to-head comparisons available. It gained 3 stars over the last 3 tracked days.

What is openapi-typescript?

What it is

openapi-typescript is a monorepo of tools for consuming OpenAPI schemas in TypeScript. It lives in the TypeScript developer-tools ecosystem, sits under the Developer Tools / API Development & Testing category, ships under MIT license, and is eight years old. Repo holds 8,366 stars, 665 forks, and 300 open issues, with last push 2026-09-11T00:36:06Z. Topics tagged: openapi, openapi3, openapi3-1, swagger, typescript. Homepage at https://openapi-ts.dev.

Problem it solves: OpenAPI 3 specs — including OpenAPI 3.1 and Swagger-era schemas — describe API shapes in JSON or YAML, not in TypeScript. Handwritten types drift from spec; generated clients need types that match schema. openapi-typescript turns static OpenAPI schemas into TypeScript types, so spec stays source of truth. Second package, openapi-fetch, pairs those generated types with fetching, so calls get types derived automatically from the schema. Work happens in repo rather than per-project boilerplate.

Key capabilities

  • Generate TypeScript types from static OpenAPI schemas.
  • Handle OpenAPI 3 and OpenAPI 3.1 specs, plus swagger-tagged schemas.
  • Ship openapi-fetch for ultra-fast fetching with types generated automatically from the OpenAPI schema.
  • Split into separate packages, each with own contributing guide: openapi-typescript, openapi-fetch, docs.
  • Docs site built with Vitepress, hosted on Cloudflare Pages, with Algolia-powered search.
  • Funding path via OpenCollective, with gold, silver, and backer sponsor tiers.
  • Public contribution flow for each package plus docs.

Who uses it and how

  • Teams with OpenAPI 3 or Swagger specs generate TypeScript types instead of writing them by hand.
  • Frontend and backend TypeScript projects pull generated types so request and response shapes track the schema.
  • Users of openapi-fetch wire generated types into fetch calls for typed API access.
  • OpenAPI 3.1 adopters rely on 3.1 support noted in repo topics.
  • Docs readers use openapi-ts.dev, Vitepress-built and Cloudflare Pages-hosted, with Algolia search.

Getting started

README excerpt lists no install commands, no package manager steps, no Docker image names, and no hosted option. It points to https://openapi-ts.dev for docs, and to per-package CONTRIBUTING files in packages/openapi-typescript and packages/openapi-fetch.

When to use it — and when not to

No paid product comparison appears in the facts. README excerpt names no database, storage, or SMTP dependency, so self-hosting burden is unstated here — this is a code library and docs site, not server infrastructure. Weakness evident: 300 open issues and README excerpt carries no install or usage instructions, only docs-site link, package list,

project readme (upstream, from github) — read inline

openapi-typescript

Tools for consuming OpenAPI schemas in TypeScript.

📦 Packages


Generate TypeScript types from static OpenAPI schemas


Ultra-fast fetching for TypeScript generated automatically from your OpenAPI schema.

⭐ Sponsors

🥇 Gold Sponsors

🥈 Silver Sponsors

nanabit

Backers

@customerio on GitHub @shaunpersad on GitHub @yoshi2no on GitHub @siketyan on GitHub

Become a sponsor by supporting this project on OpenCollective!

🤝 Contributing

Contributions are appreciated and welcome! See the appropriate guide for each package:

♥️ Thanks

Frequently asked questions

Is openapi-typescript free to use?

openapi-typescript is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does openapi-typescript do?

Generate TypeScript types from OpenAPI 3 specs

What is openapi-typescript written in?

openapi-typescript is primarily written in TypeScript. Its source is publicly available at https://github.com/openapi-ts/openapi-typescript, and it has 8,369 GitHub stars.