Typed Openapi screenshot

Typed Openapi

Author Avatar Theme by Astahmer
Updated: 28 Oct 2025
332 Stars

Generate a headless Typescript API client from an OpenAPI spec - optionally with a @tanstack/react-query client using queryOptions

Categories

Overview

Typed OpenAPI presents an innovative solution for developers looking to streamline their API interactions. By generating a headless TypeScript API client from an OpenAPI specification, it simplifies the process of managing communication between your front-end applications and back-end services. The integration with @tanstack/react-query enhances its functionality, making it a powerful tool for those leveraging React in their projects.

The flexibility offered by Typed OpenAPI allows for customization through various query options, catering to specific project needs. Whether you’re building a large-scale application or a smaller project, this tool provides the foundation to ensure efficient and type-safe API integration.

Features

  • Headless TypeScript Client: Automatically generates a TypeScript API client from your OpenAPI specification, reducing manual coding efforts.

  • React Query Integration: Optionally incorporates @tanstack/react-query, allowing for efficient data fetching and caching in your React applications.

  • Customizable Query Options: Offers flexibility in choosing query options, making it easier to tailor the API requests to match your app’s requirements.

  • Type Safety: Ensures type safety across your API interactions, helping to catch errors during development rather than at runtime.

  • Easy Setup: The setup process is straightforward, allowing developers to get started quickly without a steep learning curve.

  • Support for Multiple Endpoints: Capable of handling various endpoints seamlessly, accommodating complex API structures.

  • Improved Development Efficiency: Streamlines the development process by automating repetitive tasks associated with API consumption.