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

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

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

hey-api/openapi-ts

0
View on GitHub↗
4,128 星标·315 分支·TypeScript·mit·4 次浏览heyapi.dev↗

Openapi Ts

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 network layer abstraction and traffic interception through middleware. It also includes support for request cancellation to manage network lifecycles and maps JSON schema definitions to static TypeScript types.

Features

  • Type-Safe Client Generators - Automatically generates type-safe TypeScript SDKs and interfaces from OpenAPI specifications.
  • OpenAPI Client SDK Generators - Produces compatible client code and schema enums based on local or remote OpenAPI specifications.
  • API Specification Importers - Supports loading OpenAPI definitions from local files, remote URLs, or registries to drive client generation.
  • Schema-Driven Code Generators - Transforms OpenAPI specifications into TypeScript type definitions and client interfaces via an automated build process.
  • Pluggable Transport Layers - Decouples high-level API calls from network libraries using a swappable transport layer implementation.
  • HTTP Abstraction Layers - Encapsulates low-level network objects to provide a consistent high-level API across different runtimes.
  • API Client Generators - Converts API definitions into typed interfaces and request functions to ensure server-client consistency.
  • TypeScript Type Synthesis - Automatically synthesizes static TypeScript interfaces from JSON schema definitions.
  • HTTP Request Clients - Automates the creation of SDKs from API schemas to replace manual writing of request functions.
  • Type-Safe API Integrations - Synchronizes data schemas between client and server using OpenAPI specifications to ensure full TypeScript support.
  • Transport Abstractions - Provides a transport-agnostic client interface that decouples API calls from the underlying network library.
  • Runtime Compatibility Layers - Produces client code compatible with various networking libraries and web frameworks for cross-environment execution.
  • Middleware-Based Request Pipelines - Implements a modular chain of pluggable components to intercept and process network requests and responses.
  • HTTP Transport Configurations - Allows customizing the network layer by selecting specific libraries or native browser interfaces for different environments.
  • Request Cancellations - Implements a cancellable promise pattern to abort active network requests and save bandwidth.
  • Plugin Extenders - Enables extending functionality through custom plugins that interact with internal system interfaces.
  • Request Middleware - Sets up interceptors to handle cross-cutting concerns like authentication headers and activity logging.
  • Generation Pipeline Customization - Provides control over generated output by composing plugins to include specific types and validation schemas.
  • Plugin-Based Architectures - Uses a plugin-based architecture to allow customization of output types and validation schemas during generation.
  • Request Interception Middleware - Provides middleware pipeline handlers to intercept and modify outgoing requests and incoming responses.

Star 历史

hey-api/openapi-ts 的 Star 历史图表hey-api/openapi-ts 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Openapi Ts 的开源替代方案

相似的开源项目,按与 Openapi Ts 的功能重合度排序。
  • orval-labs/orvalorval-labs 的头像

    orval-labs/orval

    6,145在 GitHub 上查看↗

    Orval is an OpenAPI-to-TypeScript code generator that produces fully typed API clients, data-fetching hooks, mock data, validation schemas, and server handlers from OpenAPI or Swagger specifications. It reads any YAML or JSON API specification and generates TypeScript interfaces, HTTP request functions, and framework-specific integration code that ensures compile-time correctness for all API calls. The project distinguishes itself by generating production-ready data-fetching hooks for React Query, Vue Query, Svelte Query, Solid Query, Angular, and SWR, complete with automatic cache invalidati

    TypeScript
    在 GitHub 上查看↗6,145
  • acacode/swagger-typescript-apiacacode 的头像

    acacode/swagger-typescript-api

    4,093在 GitHub 上查看↗

    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 Open

    TypeScript
    在 GitHub 上查看↗4,093
  • 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

    Swiftios-swiftopenapiplugin
    在 GitHub 上查看↗1,935
  • elbywan/wretchelbywan 的头像

    elbywan/wretch

    5,174在 GitHub 上查看↗

    Wretch is a chainable HTTP client library and Fetch API wrapper designed to simplify network request configuration, response parsing, and error handling. It functions as a network request manager and middleware framework for managing the end-to-end lifecycle of HTTP calls. The project is distinguished by a fluent interface for request configuration and a modular extension system. It utilizes a programmable response resolver to automate parsing and a plugin-based architecture to add new capabilities to request and response objects. The library covers a broad range of operational capabilities,

    TypeScript
    在 GitHub 上查看↗5,174
查看 Openapi Ts 的所有 30 个替代方案→

常见问题解答

hey-api/openapi-ts 是做什么的?

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.

hey-api/openapi-ts 的主要功能有哪些?

hey-api/openapi-ts 的主要功能包括:Type-Safe Client Generators, OpenAPI Client SDK Generators, API Specification Importers, Schema-Driven Code Generators, Pluggable Transport Layers, HTTP Abstraction Layers, API Client Generators, TypeScript Type Synthesis。

hey-api/openapi-ts 有哪些开源替代品?

hey-api/openapi-ts 的开源替代品包括: orval-labs/orval — Orval is an OpenAPI-to-TypeScript code generator that produces fully typed API clients, data-fetching hooks, mock… acacode/swagger-typescript-api — swagger-typescript-api is a utility that parses OpenAPI definitions to generate strongly typed data models and service… apple/swift-openapi-generator — The Swift OpenAPI Generator is a build-time tool that produces type-safe Swift client and server code directly from… elbywan/wretch — Wretch is a chainable HTTP client library and Fetch API wrapper designed to simplify network request configuration,… dotansimha/graphql-code-generator — This project is a type-safe GraphQL client generator and TypeScript schema compiler. It transforms GraphQL schema… ricosuter/nswag — NSwag is an OpenAPI toolchain for .NET that provides a suite of generators for converting OpenAPI specifications and…