awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

OpenAPI 客户端代码生成器

排名更新于 2026年6月30日

For 根据 OpenAPI 规范生成客户端代码的代码生成器, 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.

直接从 OpenAPI 规范文件生成类型安全 API 客户端库和 SDK 的自动化工具。

OpenAPI 客户端代码生成器

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • swagger-api/swagger-codegenswagger-api 的头像

    swagger-api/swagger-codegen

    17,760在 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
    在 GitHub 上查看↗17,760
  • openapitools/openapi-generatorOpenAPITools 的头像

    OpenAPITools/openapi-generator

    26,412在 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
    在 GitHub 上查看↗26,412
  • ricosuter/nswagRicoSuter 的头像

    RicoSuter/NSwag

    7,342在 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
    在 GitHub 上查看↗7,342
  • go-swagger/go-swaggergo-swagger 的头像

    go-swagger/go-swagger

    9,989在 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
    在 GitHub 上查看↗9,989
  • hey-api/openapi-tshey-api 的头像

    hey-api/openapi-ts

    4,128在 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
    在 GitHub 上查看↗4,128
  • deepmap/oapi-codegendeepmap 的头像

    deepmap/oapi-codegen

    8,398在 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
    在 GitHub 上查看↗8,398
  • apple/swift-openapi-generatorapple 的头像

    apple/swift-openapi-generator

    1,935在 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
    在 GitHub 上查看↗1,935
  • openapitools/openapi-generator-cliOpenAPITools 的头像

    OpenAPITools/openapi-generator-cli

    1,956在 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
    在 GitHub 上查看↗1,956
  • astahmer/openapi-zod-clientastahmer 的头像

    astahmer/openapi-zod-client

    1,172在 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
    在 GitHub 上查看↗1,172

Related searches

  • API 文档生成器
  • 用于根据规范进行 API 原型设计的 Mock 服务器
  • a lightweight HTTP client for TypeScript
  • 自动化数据库 API 生成工具
  • an open source model for code generation
  • 端到端类型安全的 TypeScript API 层
  • a platform for building generative AI applications
  • 用于构建 Kotlin API 的 Web 框架