For a code generator that builds clients from OpenAPI specs, the strongest matches are swagger-api/swagger-codegen (Swagger Codegen is a mature template-driven engine that generates), openapitools/openapi-generator (OpenAPI Generator is a mature, CLI-based tool that automatically) and ricosuter/nswag (NSwag is a mature OpenAPI toolchain for). go-swagger/go-swagger and hey-api/openapi-ts round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Automated tools that generate type-safe API client libraries and SDKs directly from OpenAPI specification files.
Swagger Codegen is a template-driven engine and multi-language toolkit used to generate API client SDKs, server stubs, and human-readable documentation from OpenAPI specifications. It translates these specifications into functional libraries and boilerplate routing code across various target programming languages. The tool utilizes a pluggable generator module system and an integrated template engine, allowing for the customization of generated source code and the creation of new language-specific generators. It supports flexible specification sourcing via local files, remote HTTP endpoints,
Swagger Codegen is a mature template-driven engine that generates multi-language API client SDKs from OpenAPI specs, fully supporting OpenAPI 3.0 and Swagger 2.0 with customizable templates and a CLI, making it a standout fit for this search.
This project is a command-line tool and template-based scaffolding engine that transforms API interface specifications into functional client libraries and server stubs. By automating the creation of type-safe SDKs and boilerplate code, it bridges the gap between service definitions and implementation, allowing developers to maintain synchronized codebases across many programming languages. The tool distinguishes itself through a portable execution model that utilizes containerized build isolation to ensure identical output regardless of the host environment. It features a modular, plugin-bas
OpenAPI Generator is a mature, CLI-based tool that automatically produces type-safe client libraries from OpenAPI specs, supporting many languages, both OpenAPI 3.0 and Swagger 2.0, customizable templates, security schemes, and idiomatic code—exactly what you need.
NSwag is an OpenAPI toolchain for .NET that provides a suite of generators for converting OpenAPI specifications and JSON schemas into clients, server stubs, and structured documentation. It enables the creation of type-safe client libraries and data transfer objects, as well as the generation of OpenAPI specifications by analyzing .NET controllers. The project supports contract-first API development by generating server controller stubs from specifications and offers dedicated TypeScript API integration to ensure type safety in frontend applications. It also provides tools for hosting intera
NSwag is a mature OpenAPI toolchain for .NET that automatically generates type-safe client libraries (including C# and TypeScript) from OpenAPI specs, supports both OpenAPI 3.0 and Swagger 2.0, offers customizable templates via hooks and partial classes, integrates security schemes, and provides CLI tools — making it a comprehensive fit for the visitor's need.
go-swagger is a toolkit for working with Swagger/OpenAPI 2.0 specifications in Go. It generates server, client, and CLI code from a specification document, and can also produce a specification by scanning annotated Go source code. The project includes a static validation engine that checks documents against the schema and project-specific rules, and a specification transformation pipeline that resolves, flattens, and merges documents. The toolkit generates both client and server code from the same specification, ensuring consistency in request and response handling. It also produces a command
go-swagger generates Go API client code from OpenAPI 2.0 (Swagger) specifications, fitting the core purpose of automatic client generation, though it lacks multi-language output and OpenAPI 3.0 support.
openapi-ts is a tool and orchestrator used to convert OpenAPI specifications into type-safe TypeScript SDKs and HTTP client implementations. It automatically generates typed interfaces and request functions from API definitions to ensure consistency between the server and the client. The project employs a transport-agnostic client interface, decoupling high-level API calls from the underlying network library. It uses a plugin-based generation pipeline and a custom plugin architecture to allow for the customization of output types and validation schemas. The system provides capabilities for n
openapi-ts generates type-safe TypeScript client SDKs from OpenAPI specs with a plugin-based pipeline for customization, fitting the core purpose but scoped to a single language rather than multi-language output.
oapi-codegen is a suite of generators that converts OpenAPI 3 specifications into type-safe Go client libraries, server boilerplate, and data models. It provides tools for producing production-ready HTTP clients and server-side interfaces to ensure that Go implementations remain compliant with defined API contracts. The tool supports server generation across various web frameworks and allows for extensive customization via template overrides, specification overlays, and custom type definition mappings. It handles complex API requirements through external reference resolution to organize code
oapi-codegen generates type-safe Go client libraries from OpenAPI specs with customizable templates and a CLI, directly matching your core need, but its Go-only focus limits multi-language client generation.
The Swift OpenAPI Generator is a build-time tool that produces type-safe Swift client and server code directly from OpenAPI specification documents. By integrating with build systems through native plugins, it automates the creation of strongly-typed interfaces and protocol stubs that map network operations to native methods, ensuring that application code remains strictly consistent with defined data schemas. The project distinguishes itself through a protocol-oriented architecture that decouples business logic from specific transport implementations. It utilizes a pluggable transport layer
apple/swift-openapi-generator generates Swift client (and server) code from OpenAPI documents, making it a solid fit for generating API clients, though limited to Swift rather than multiple languages.
OpenAPI Generator CLI is a command-line utility designed to automate the creation of API artifacts from specification files. It functions as a tool for generating client libraries, server stubs, and documentation, enabling developers to produce consistent boilerplate code and reference materials across various programming languages. The project provides a wrapper that manages the lifecycle of a Java-based execution engine, which performs the actual code synthesis using logic-less templates. To ensure reproducible results and avoid dependency conflicts on the host system, the tool supports ver
This is an npm wrapper for the OpenAPI Generator tool, which automatically produces API client libraries from OpenAPI specs, directly matching the intent.
This project is a command-line tool that automates the creation of type-safe TypeScript HTTP clients directly from OpenAPI specifications. By transforming service definitions into structured source code, it ensures end-to-end type synchronization and enforces runtime data integrity across network boundaries. The generator distinguishes itself by mapping OpenAPI data structures into Zod validation schemas, allowing for consistent schema-driven type mapping and response validation. It supports deduplicated source synthesis to minimize redundancy in the generated output and provides template cus
This tool generates TypeScript client libraries with Zod validation from OpenAPI specs, so it matches your search for an API client generator, though it is limited to a single language.
The Kaggle API command line interface is a suite of utilities for managing datasets, machine learning models, and competition entries from a terminal. It functions as a command line wrapper that translates user input into API calls to control remote cloud resources. The project differentiates itself by providing specialized tools for automating the execution of notebook kernels and managing the lifecycle of machine learning models, including version iteration and performance tracking. It also includes a utility for executing evaluation tasks against large language models and downloading the r
This is a command-line client for using the Kaggle API, not a generator that produces API client libraries from OpenAPI specs — it targets a single service rather than generating multi-language clients for any API.
This project is a comprehensive microservices development framework designed to build scalable, resilient backend systems. It provides a production-ready runtime that integrates stability patterns directly into the service architecture, ensuring consistent performance and reliability for both web and remote procedure call services even under heavy traffic conditions. The framework centers on an interface-first development model, utilizing a domain-specific language to define service contracts that serve as the single source of truth. This approach powers an extensive code generation ecosystem
This microservices framework generates code from its own DSL for service definitions, not from OpenAPI specifications, so it does not directly produce API client libraries from OpenAPI as requested.
Bruno is a local-first API client designed for building, testing, and managing network requests across a wide range of protocols. By storing all collections and configurations as plain-text files directly on the local filesystem, it enables native version control and offline access, ensuring that project data remains under user control without requiring cloud synchronization. The platform distinguishes itself through a declarative approach to API management, utilizing a domain-specific language to define request parameters and metadata. This architecture supports a robust testing environment
Bruno is an API client for testing and managing requests, not a code generator that produces client libraries from OpenAPI specs — it lacks the core code generation capability this search requires.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| swagger-api/swagger-codegen | 17.8K | Mustache | Apache-2.0 | |
| openapitools/openapi-generator | 26.4K | Java | Apache-2.0 | |
| ricosuter/nswag | 7.3K | C# | MIT | |
| go-swagger/go-swagger | 10K | Go | Apache-2.0 | |
| hey-api/openapi-ts | 4.1K | TypeScript | mit | |
| deepmap/oapi-codegen | 8.4K | Go | Apache-2.0 | |
| apple/swift-openapi-generator | 1.9K | Swift | Apache-2.0 | |
| openapitools/openapi-generator-cli | 2K | TypeScript | Apache-2.0 | |
| astahmer/openapi-zod-client | 1.2K | TypeScript | — | |
| kaggle/kaggle-cli | 7.4K | Python | Apache-2.0 |