For strongly typed client interfaces, the strongest matches are azure/autorest (AutoRest generates type-safe multi-language HTTP client libraries from OpenAPI), acacode/swagger-typescript-api (This project parses OpenAPI definitions to generate strongly typed) and astahmer/openapi-zod-client (This command-line tool generates end-to-end type-safe TypeScript clients directly). hey-api/openapi-ts and orval-labs/orval round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Hand-picked strongly typed API client libraries for GitHub, ranked by stars and activity. Compare the top alternatives and pick the right one.
AutoRest is a multi-language SDK generator and OpenAPI code generator designed to produce consistent software development kits from a single API definition. It functions as a REST API client generator that transforms Swagger and OpenAPI specification files into functional, typed HTTP client libraries. The tool automates the SDK development workflow by converting design documents into source code, ensuring that the resulting implementations match the defined API contract across different programming languages. The system employs specification-driven development using an intermediate represent
AutoRest generates type-safe multi-language HTTP client libraries from OpenAPI and Swagger specifications, directly fitting the core need for contract-driven code generation.
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
This project parses OpenAPI definitions to generate strongly typed TypeScript API clients, fitting the required core capability despite lacking RPC support and built-in runtime validation.
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 command-line tool generates end-to-end type-safe TypeScript clients directly from OpenAPI specifications with built-in Zod runtime validation, though it lacks RPC support and framework-agnostic reactive queries.
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
This repository generates type-safe TypeScript SDKs and HTTP client implementations directly from OpenAPI specifications using a plugin-based architecture, perfectly matching your search for an API client generator.
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
Orval is an OpenAPI-to-TypeScript code generator that produces fully typed API clients and data-fetching hooks with runtime validation support, making it a strong fit for your API client generation needs even though it focuses specifically on OpenAPI inputs rather than generic RPC definitions.
ts-rest is a TypeScript toolkit for building type-safe APIs by defining a shared contract that connects client and server code. The core idea is to specify endpoints, methods, request and response shapes in a single contract, then use that contract to generate fully typed clients and enforce server implementations that match the contract at compile time. The project provides a way to consume remote APIs through a client that infers request and response shapes from the shared contract, offering autocompletion and compile-time checks. On the server side, it enforces that handlers return correct
It provides contract-first API development with shared definitions for end-to-end type safety and supports both client generation and OpenAPI integration, matching the visitor's core need despite lacking built-in RPC support.
orpc is a contract-first API development framework for TypeScript that starts with a shared contract definition and generates type-safe clients and servers from that single source of truth. It guarantees end-to-end type safety, meaning inputs, outputs, errors, and streaming data are all checked at compile time across the client–server boundary. What distinguishes orpc from typical RPC frameworks is its ability to export contracts as OpenAPI specifications, to optimize server-side rendering by calling API handlers directly inside the server process, and to support real‑time bidirectional commu
orpc is a contract-first framework that generates end-to-end type-safe API clients and servers from shared TypeScript definitions while also supporting OpenAPI exports and RPC patterns.
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
OpenAPI Generator CLI automatically produces type-safe client libraries and server stubs from OpenAPI specifications, making it a solid command-line choice for bridging backend definitions and frontend consumers.
Kiota is a multi-language SDK generator and REST API client orchestrator that transforms OpenAPI descriptions into strongly typed client libraries. It provides a framework for managing API specifications and generating typed interfaces to eliminate manual boilerplate development. The project utilizes a template-driven source emission system to map API specifications to native language types. It ensures consistency across environments using lock-file version syncing and organizes API endpoints into a nested object structure based on the hierarchical mapping of URI paths. The toolset includes
Kiota is an OpenAPI-driven multi-language SDK and client generator that provides strong typing and framework-agnostic client code across multiple languages, though it focuses more on REST and SDK generation than TypeScript-specific RPC or built-in reactive queries.
Fern is a toolset for managing API specifications, generating type-safe client libraries, and producing hosted developer documentation. It provides a utility for validating, transforming, and exporting API definitions into standardized OpenAPI formats, serving as a system to maintain a consistent source of truth for API designs. The project differentiates itself through an automated SDK distribution pipeline that publishes generated libraries to package managers such as npm, PyPI, Maven, and NuGet. It also includes an AI-powered search assistant trained on API and SDK specifications to answer
Fern is a specification-driven API toolset that generates type-safe client libraries and documentation from backend definitions, fitting the core need for cross-network compile-time safety despite lacking built-in reactive queries.
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
This Go toolkit generates both client and server code from OpenAPI specifications to enforce schema consistency, though its primary focus is Go rather than the multi-language TypeScript generation typically desired for full-stack type safety.
This project is an end-to-end type-safe API framework designed to synchronize data structures between frontend and backend codebases without the need for manual code generation. By leveraging TypeScript’s type inference, it allows developers to invoke server-side functions directly from the client as if they were local methods. This remote procedure call approach abstracts away the complexities of HTTP verbs and URL structures, streamlining the full-stack development workflow into a unified experience. The framework distinguishes itself through a modular router architecture that organizes bac
This project provides end-to-end type safety between frontend and backend codebases using TypeScript inference rather than explicit schema generation, making it a closely related alternative for type-safe API communication.
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
This repository generates type-safe client libraries from OpenAPI and Swagger specifications, directly fulfilling the core requirement for API client generation even though it operates as a CLI code-scaffolding engine rather than an embedded reactive query library.
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 generates multi-language API client SDKs directly from OpenAPI specifications to ensure contract-based consistency, though it focuses on general SDK generation rather than modern TypeScript-first end-to-end type safety.
TypeScript generator is a build tool that parses backend class structures and REST endpoints in Java to generate corresponding TypeScript types and client services. It functions as both a static type definition generator and a Java REST client generator, translating compiled class properties, collections, and server-side endpoint definitions into equivalent frontend type definitions and client-side service classes. The tool builds an abstract syntax representation from scanned bytecode using reflection and compiles output through configurable module scoping, formatting declarations into globa
This tool generates TypeScript client code from Java and JAX-RS definitions to provide compile-time safety across the network boundary, making it a relevant option despite lacking OpenAPI, RPC, and runtime validation features.
Openapi-typescript-codegen is a code generation tool that parses OpenAPI specification files, URLs, or strings to build type-safe TypeScript or JavaScript network clients. It transforms raw API definitions into structured internal abstract syntax trees before mapping them onto custom text templates. The tool provides a pluggable network layer that supports interchangeable transport libraries such as Fetch or Axios. It normalizes diverse endpoint structures into a unified internal schema to generate strongly typed client source code. Execution occurs synchronously through command line argumen
This repository is a targeted generator for creating TypeScript and JavaScript clients directly from OpenAPI specifications, giving you strong network-boundary type safety despite lacking RPC support or runtime validation.
| المستودع | النجوم | اللغة | الترخيص | آخر تحديث |
|---|---|---|---|---|
| azure/autorest | 4.8K | TypeSpec | MIT | |
| acacode/swagger-typescript-api | 4.1K | TypeScript | MIT | |
| astahmer/openapi-zod-client | 1.2K | TypeScript | — | |
| hey-api/openapi-ts | 4.1K | TypeScript | mit | |
| orval-labs/orval | 6.1K | TypeScript | MIT | |
| ts-rest/ts-rest | 3.3K | TypeScript | mit | |
| middleapi/orpc | 4.9K | TypeScript | mit | |
| openapitools/openapi-generator-cli | 2K | TypeScript | Apache-2.0 | |
| microsoft/kiota | 3.8K | C# | MIT | |
| fern-api/fern | 3.7K | TypeScript | Apache-2.0 |