acacode/swagger-typescript-api
acacode/swagger-typescript-api has 4,128 GitHub stars and 434 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 16:29 UTC. Last push 2026-09-18.
Generate the API Client for Fetch or Axios from an OpenAPI Specification
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalSwagger TypeScript API
- Support for OpenAPI 3.0, 2.0, JSON and YAML
- Generate the API Client for Fetch or Axios from an OpenAPI Specification
Any questions you can ask here: https://github.com/acacode/swagger-typescript-api/discussions
Examples
All examples you can find here: https://github.com/acacode/swagger-typescript-api/tree/main/tests
Usage
You can use this package in two ways:
CLI
npx swagger-typescript-api generate --path ./swagger.json
Or install locally in your project:
npm install --save-dev swagger-typescript-api
npx swagger-typescript-api generate --path ./swagger.json
Library
npm install --save-dev swagger-typescript-api
import * as path from "node:path";
import * as process from "node:process";
import { generateApi } from "swagger-typescript-api";
await generateApi({ input: path.resolve(process.cwd(), "./swagger.json") });
For more detailed configuration options, please consult the documentation.
Mass media
- 5 Lessons learned about swagger-typescript-api
- Why Swagger schemes are needed in frontend development ?
- Migration en douceur vers TypeScript (French)
- swagger-typescript-api usage (Japanese)
- Working with REST APIs using swagger-typescript-api (Russian)
- Using custom templates and configs for swagger-typescript-api (Russian)
License
Licensed under the MIT License.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,763 starspublic-apis/public-apis
A collective list of free APIs
496,987 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
440,677 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,136 stars