awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

OpenAPI Client Code Generators

Ranking updated Jun 30, 2026

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.

OpenAPI Client Code Generators

Find the best repos with AI.We'll search the best matching repositories with AI.
  • swagger-api/swagger-codegenswagger-api avatar

    swagger-api/swagger-codegen

    17,760View on GitHub↗

    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.

    MustacheMulti-Language Client GenerationBuild Tool Integrations
    View on GitHub↗17,760
  • openapitools/openapi-generatorOpenAPITools avatar

    OpenAPITools/openapi-generator

    26,412View on GitHub↗

    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.

    JavaAPI Client SDK GeneratorsCode GeneratorsTemplate Engines
    View on GitHub↗26,412
  • ricosuter/nswagRicoSuter avatar

    RicoSuter/NSwag

    7,342View on GitHub↗

    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.

    C#API Client GeneratorsOpenAPI ToolchainsAPI Code Generators
    View on GitHub↗7,342
  • go-swagger/go-swaggergo-swagger avatar

    go-swagger/go-swagger

    9,989View on GitHub↗

    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.

    GoTemplate-Based Code CustomizersTemplate-Based Code Customizers
    View on GitHub↗9,989
  • hey-api/openapi-tshey-api avatar

    hey-api/openapi-ts

    4,128View on GitHub↗

    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.

    TypeScriptType-Safe Client GeneratorsAPI Client GeneratorsAPI Specification Importers
    View on GitHub↗4,128
  • deepmap/oapi-codegendeepmap avatar

    deepmap/oapi-codegen

    8,398View on GitHub↗

    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.

    GoAPI Client GeneratorsAPI Model GeneratorsAutomated Data Contracts
    View on GitHub↗8,398
  • apple/swift-openapi-generatorapple avatar

    apple/swift-openapi-generator

    1,935View on GitHub↗

    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.

    SwiftSwift Code GeneratorsType-Safe Client GeneratorsCode from Specification Generators
    View on GitHub↗1,935
  • openapitools/openapi-generator-cliOpenAPITools avatar

    OpenAPITools/openapi-generator-cli

    1,956View on GitHub↗

    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.

    TypeScriptAPI Development ToolsAPI Client SDK GeneratorsClient Library Generation
    View on GitHub↗1,956
  • astahmer/openapi-zod-clientastahmer avatar

    astahmer/openapi-zod-client

    1,172View on GitHub↗

    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.

    TypeScriptOpenAPI Client SDK GeneratorsEnd-to-EndType-Safe Client Generators
    View on GitHub↗1,172
  • kaggle/kaggle-cliKaggle avatar

    Kaggle/kaggle-cli

    7,417View on GitHub↗

    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.

    PythonCommand Line Interfaces
    View on GitHub↗7,417
  • zeromicro/go-zerozeromicro avatar

    zeromicro/go-zero

    33,102View on GitHub↗

    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.

    GoCommand Line Interfaces
    View on GitHub↗33,102
  • usebruno/brunousebruno avatar

    usebruno/bruno

    44,931View on GitHub↗

    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.

    JavaScriptOAuth Providers
    View on GitHub↗44,931
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
swagger-api/swagger-codegen17.8KMustacheApache-2.0May 19, 2026
openapitools/openapi-generator26.4KJavaApache-2.0Jun 15, 2026
ricosuter/nswag7.3KC#MITMay 30, 2026
go-swagger/go-swagger10KGoApache-2.0Jun 23, 2026
hey-api/openapi-ts4.1KTypeScriptmitFeb 20, 2026
deepmap/oapi-codegen8.4KGoApache-2.0Jun 17, 2026
apple/swift-openapi-generator1.9KSwiftApache-2.0Jun 22, 2026
openapitools/openapi-generator-cli2KTypeScriptApache-2.0Jun 15, 2026
astahmer/openapi-zod-client1.2KTypeScript—Feb 10, 2025
kaggle/kaggle-cli7.4KPythonApache-2.0Jun 22, 2026

Related searches

  • an API docs generator
  • a mock server for prototyping APIs from a spec
  • a lightweight HTTP client for TypeScript
  • an automated tool for generating database APIs
  • an open source model for code generation
  • an end-to-end type-safe API layer for TypeScript
  • a platform for building generative AI applications
  • a web framework for building APIs in Kotlin