Default Plugins
If you don’t specifyplugins, these defaults are used:
- TypeScript interfaces and types (
@hey-api/typescript) - SDK functions for API calls (
@hey-api/sdk)
Available Plugins
Core Plugins
@hey-api/typescript
@hey-api/typescript
Generates TypeScript types and interfaces from OpenAPI schemas.See the @hey-api/typescript plugin documentation for all options.
@hey-api/sdk
@hey-api/sdk
Generates type-safe SDK functions for making API calls.See the @hey-api/sdk plugin documentation for all options.
@hey-api/schemas
@hey-api/schemas
Generates runtime JSON schemas for validation and transformation.
@hey-api/transformers
@hey-api/transformers
Generates transformer functions for converting data types (e.g., ISO strings to Date objects).
HTTP Clients
@hey-api/client-fetch
@hey-api/client-fetch
Fetch API client (browser and Node.js 18+).
@hey-api/client-axios
@hey-api/client-axios
Axios client for HTTP requests.
@hey-api/client-ky
@hey-api/client-ky
Ky client (Fetch wrapper with extra features).
@hey-api/client-next
@hey-api/client-next
Next.js optimized client.
@hey-api/client-nuxt
@hey-api/client-nuxt
Nuxt.js optimized client.
@hey-api/client-ofetch
@hey-api/client-ofetch
ofetch client (universal fetch wrapper).
@hey-api/client-angular
@hey-api/client-angular
Angular HttpClient wrapper.
Framework Integrations
@tanstack/react-query
@tanstack/react-query
TanStack Query (React Query) hooks.
@tanstack/vue-query
@tanstack/vue-query
TanStack Query for Vue.js.
@tanstack/svelte-query
@tanstack/svelte-query
TanStack Query for Svelte.
@tanstack/solid-query
@tanstack/solid-query
TanStack Query for Solid.js.
@tanstack/angular-query-experimental
@tanstack/angular-query-experimental
TanStack Query for Angular (experimental).
@pinia/colada
@pinia/colada
Pinia Colada for Vue.js state management.
swr
swr
SWR hooks for React.
@angular/common
@angular/common
Angular common utilities.
Validators
zod
zod
Generates Zod schemas for runtime validation.
valibot
valibot
Generates Valibot schemas for runtime validation.
arktype
arktype
Generates ArkType schemas for runtime validation.
Other Plugins
fastify
fastify
Generates Fastify route handlers.
@faker-js/faker
@faker-js/faker
Generates fake data generators using Faker.js.
Plugin Configuration
String Format
Use the plugin name as a string to enable it with default settings:openapi-ts.config.ts
Object Format
Use an object to customize plugin configuration:openapi-ts.config.ts
Common Plugin Options
Most plugins support these common options:The plugin name.
Whether exports from this plugin should be included in the entry file.Or use a function for fine-grained control:
Include comments in generated code.
Plugin Dependencies
Some plugins automatically enable other plugins as dependencies:@hey-api/sdkautomatically includes@hey-api/typescript- TanStack Query plugins automatically include
@hey-api/sdkand a client - Validator plugins (Zod, Valibot) include
@hey-api/schemas
Single Client Rule
When you specify only one HTTP client plugin, the default plugins are automatically included:Examples
React Query with Fetch Client
openapi-ts.config.ts
Axios Client with Zod Validation
openapi-ts.config.ts
Fastify Backend
openapi-ts.config.ts
Multiple Frameworks
openapi-ts.config.ts