# acacode/swagger-typescript-api

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/acacode-swagger-typescript-api).**

4,093 stars · 433 forks · TypeScript · MIT

## Links

- GitHub: https://github.com/acacode/swagger-typescript-api
- Homepage: https://acacode.github.io/swagger-typescript-api/
- awesome-repositories: https://awesome-repositories.com/repository/acacode-swagger-typescript-api.md

## Description

swagger-typescript-api is a utility that parses OpenAPI definitions to generate strongly typed data models and service wrappers for web applications. It transforms OpenAPI specifications into type-safe TypeScript API clients, removing the need for manual request and response boilerplate.

The generator produces interchangeable client logic via pluggable transport adapters, allowing users to switch between Fetch and Axios for network requests. It uses template-based source emission to inject generated types and methods into a consistent client structure.

The project handles the mapping of OpenAPI data types and JSON schemas into TypeScript interfaces and type aliases. It provides static type inference to ensure compile-time safety for request and response payloads across the network layer.

## Tags

### Development Tools & Productivity

- [OpenAPI Client SDK Generators](https://awesome-repositories.com/f/development-tools-productivity/openapi-client-sdk-generators.md) — Generates type-safe TypeScript client SDKs and data models directly from OpenAPI specifications. ([source](https://acacode.github.io/swagger-typescript-api/))
- [OpenAPI Specification Parsers](https://awesome-repositories.com/f/development-tools-productivity/openapi-specification-parsers.md) — Parses OpenAPI JSON and YAML definitions into internal representations to drive code generation.

### Software Engineering & Architecture

- [Schema-Driven Code Generators](https://awesome-repositories.com/f/software-engineering-architecture/openapi-specification-parsers/go-code-generators/specification-from-code-generators/code-from-specification-generators/schema-driven-code-generators.md) — Produces TypeScript source code by parsing OpenAPI specification files and mapping schemas to language constructs.
- [Request](https://awesome-repositories.com/f/software-engineering-architecture/response-type-inference/request.md) — Creates hard-coded type definitions from API specs to ensure compile-time safety for request and response payloads.

### Web Development

- [Type-Safe Client Generators](https://awesome-repositories.com/f/web-development/api-client-generators/type-safe-client-generators.md) — Generates type-safe network request wrappers from API schemas to eliminate manual boilerplate.
- [OpenAPI to TypeScript Converters](https://awesome-repositories.com/f/web-development/restful-apis/documentation-schemas/openapi-to-typescript-converters.md) — Transforms OpenAPI data types and JSON schemas into corresponding TypeScript interfaces and type aliases.
- [Type-Safe API Integrations](https://awesome-repositories.com/f/web-development/type-safe-api-integrations.md) — Develops type-safe interfaces for external APIs in TypeScript to ensure data consistency between the server and client.
- [Typed Data Fetching](https://awesome-repositories.com/f/web-development/type-safe-schema-validations/typed-data-fetching.md) — Adds strong TypeScript typing to native Fetch requests based on shared OpenAPI documents.

### Networking & Communication

- [API Client Generators](https://awesome-repositories.com/f/networking-communication/api-integration-frameworks/http-client-libraries/http-client-configurations/api-client-generators.md) — Automates the generation of ready-to-use Axios network layers derived from API schemas.
- [Pluggable Transport Layers](https://awesome-repositories.com/f/networking-communication/communication-protocols-architectures/communication-protocols-standards/network-transport-layers/pluggable-transport-layers.md) — Provides pluggable transport interfaces allowing users to switch between Fetch and Axios for network requests.
