# acacode/swagger-typescript-api

Generate the API Client for Fetch or Axios from an OpenAPI Specification

Repository: https://github.com/acacode/swagger-typescript-api
Canonical: https://ross.abutalabs.com/products/swagger-typescript-api
Homepage: https://acacode.github.io/swagger-typescript-api/
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-22T21:12:37+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 81, longevity 100
- inputs: {"age_days": 2425, "days_push": 11, "days_rel": 47, "gap_med": 2, "n_releases_24m": 64}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4116, forks 436 (observed 2026-08-28T04:08:35.858622+00:00)

## What it is
A TypeScript tool that generates typed API clients for Fetch or Axios from OpenAPI 3.0/2.0 specifications in JSON or YAML. It can be used as a CLI via npx or as a programmable library.

## Use cases
- generate a typescript client from an openapi spec
- create axios api client from swagger
- generate fetch client from openapi 3 yaml
- auto-generate typed api code for frontend
- convert swagger schema to typescript types
- keep api client in sync with openapi spec

## When to choose
- you have an OpenAPI/Swagger spec and want a fully typed TypeScript client
- you use Fetch or Axios and want generated request functions and types
- you want to regenerate clients automatically in CI whenever the spec changes

## When to avoid
- your API has no OpenAPI specification available
- you need a client for GraphQL or gRPC rather than REST
- you need runtime request handling rather than code generation

## Facets
- artifact type: cli-tool
- maturity: active
- function: http-client, developer-tools, api-framework
- domain: web-development, frontend, apis, developer-tools
- platform: cli, cross-platform
- tags: openapi, swagger, typescript, api-client-generator, axios, fetch, codegen, code-generation, nodejs

## Member repositories
- acacode/swagger-typescript-api (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:35.858622+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-29T18:23:09.147033+00:00, confidence not recorded.
  - readme: https://github.com/acacode/swagger-typescript-api (fetched 2026-08-28T04:08:35.858622+00:00, sha 1d9f473a3cc7)
  - homepage: https://acacode.github.io/swagger-typescript-api/ (fetched 2026-08-29T09:14:43.463911+00:00, sha cdbc9c8abab8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
