acacode/swagger-typescript-api

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 56 minutes ago
Type:Library / SDKCategory(s):API Development ToolsDeveloper Tools
Added to GitGenius on September 16th, 2026
Created on January 12th, 2020
Open Issues & Pull Requests: 210 (+0)
GitHub issues: Enabled
Number of forks: 436
Total Stargazers: 4,120 (+0)
Total Subscribers: 6 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 21.9 days
Mean response time: 154.9 days
90th percentile: 579.5 days
Tracked items: 223

Most active contributors

Sign in to see contributor activity.

How this project is maintained

99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "enhancement" is answered fastest, typically in about 9 days, while "bug" waits about 7 weeks. Three people close 88% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 77
New in 7 days: 0
Closed in 7 days: 2
Avg open age: 1,184 days
Stale 30+ days: 75
Stale 90+ days: 69

Recent activity

Opened in 7 days: 0
Closed in 7 days: 2
Comments in 7 days: 0
Events in 7 days: 3

Top labels

  • bug (88)
  • enhancement (48)
  • duplicate (30)
  • good first issue (6)
  • question (4)
  • help wanted (3)
  • documentation (2)

Detailed Description

swagger-typescript-api is a code generator that produces TypeScript API clients from OpenAPI specifications.

The tool solves the problem of manually writing and maintaining API client code by automatically generating type-safe clients directly from OpenAPI schema definitions. It parses the specification and outputs ready-to-use TypeScript code that handles HTTP requests, response typing, and parameter validation. Developers can choose between Fetch API or Axios as the underlying HTTP library, allowing flexibility based on project requirements and environment constraints.

Teams should adopt this tool when they have OpenAPI specifications for their APIs and want to eliminate the friction of keeping client code synchronized with backend changes. It suits projects where type safety matters and where the API contract is already defined in OpenAPI format. The generated clients include proper TypeScript types for all request and response objects, reducing runtime errors and improving IDE autocomplete support. Projects that frequently update their APIs benefit most, as regenerating clients becomes a simple, automated step rather than manual refactoring work.

The project shows consistent maintenance with regular updates addressing bug fixes and feature requests. Pull requests receive timely review and feedback from maintainers. The codebase demonstrates active engagement with user-reported issues, with maintainers providing detailed explanations and solutions. Documentation is kept current alongside code changes, reflecting an organized approach to managing the project's evolution.