Skip to content
Extensions

Plugins

Plugins generate TypeScript types, fetch and axios clients, TanStack Query and SWR hooks, Zod schemas and MSW mocks from your API spec. Pick what you need.

17 extensions · updated

Filtered by
Plugin
TypeScript logo
plugins: [pluginTs()]

TypeScript

Official

@kubb/plugin-ts · v6.0.2Updated

Generates TypeScript types and interfaces from your OpenAPI spec, the typed foundation the other Kubb plugins build on.

typescripttypesinterfaces

Stijn Van Hulle

2.1M 15
Plugin
Zod logo
plugins: [pluginZod()]

Zod

Official

@kubb/plugin-zod · v5.13.3Updated

Generates Zod v4 schemas from your OpenAPI spec so you validate API responses, form input, and query params at runtime.

zodvalidationschema

Stijn Van Hulle

1.4M 15
Plugin
Faker logo
plugins: [pluginFaker()]

Faker

Official

@kubb/plugin-faker · v5.6.5Updated

Generates a Faker.js mock-data factory for every schema in your OpenAPI spec.

fakermock-datamocks

Stijn Van Hulle

658.6K 15
Plugin
Client logo
plugins: [pluginClient()]

Client

Official

@kubb/plugin-client · v6.7.2Updated

Generates typed operation functions from your OpenAPI spec that call a client module you own, so you decide the transport, auth, and error handling.

api-clienthttp-clientcodegen

Stijn Van Hulle

650.4K 15
Plugin
MSW logo
plugins: [pluginMsw()]

MSW

Official

@kubb/plugin-msw · v6.3.7Updated

Generates MSW request handlers from your OpenAPI spec so you can mock the API in tests and during local development.

mswmock-service-workerapi-mocking

Stijn Van Hulle

632.9K 15
Plugin
React Query logo
plugins: [pluginReactQuery()]

React Query

Official

@kubb/plugin-react-query · v5.14.2Updated

Generates typed TanStack Query helpers for React from your OpenAPI spec: queryOptions and mutationOptions factories with cache keys, plus optional hooks.

react-querytanstack-queryreact

Stijn Van Hulle

594.3K 15
Plugin
Barrel logo
plugins: [pluginBarrel()]

Barrel

Official

@kubb/plugin-barrel · v5.28.0Updated

Generates index.ts barrel files for every plugin output, plus a root barrel when output.barrel is set on defineConfig.

barrelindexexports

Stijn Van Hulle

465.5K 1.9K
Plugin
Fetch logo
plugins: [pluginFetch()]

Fetch

Official

@kubb/plugin-fetch · v6.7.2Updated

Generates a type-safe Fetch API client from your OpenAPI spec, one async function per operation, so each call stays in sync with the API.

api-clientfetchhttp-client

Stijn Van Hulle

203.7K 15
Plugin
Redoc logo
plugins: [pluginRedoc()]

Redoc

Official

@kubb/plugin-redoc · v5.2.11Updated

Generates a single-file HTML page from your OpenAPI spec with Redoc, rebuilt on every Kubb run so the docs match the spec your code comes from.

redocapi-docsdocumentation

Stijn Van Hulle

96.8K 15
Plugin
MCP logo
plugins: [pluginMcp()]

MCP

Official

@kubb/plugin-mcp · v5.9.3Updated

Generates a Model Context Protocol server from your OpenAPI spec, so AI assistants can call each operation as a typed tool.

mcpmodel-context-protocolai

Stijn Van Hulle

91.1K 15
Plugin
SWR logo
plugins: [pluginSwr()]

SWR

Official

@kubb/plugin-swr · v5.12.2Updated

Generates typed SWR hooks from your OpenAPI spec, so data fetching stays in sync with the API.

swrreacthooks

Stijn Van Hulle

85.2K 15
Plugin
Vue Query logo
plugins: [pluginVueQuery()]

Vue Query

Official

@kubb/plugin-vue-query · v5.14.2Updated

Generates typed TanStack Query helpers for Vue from your OpenAPI spec: queryOptions factories with query and mutation keys, plus optional composables.

vue-querytanstack-queryvue

Stijn Van Hulle

78.2K 15
Plugin
Cypress logo
plugins: [pluginCypress()]

Cypress

Official

@kubb/plugin-cypress · v5.5.4Updated

Generates a typed cy.request() wrapper per OpenAPI operation, so your Cypress tests call the API through helpers and catch broken calls at compile time.

cypresse2e-testingapi-testing

Stijn Van Hulle

73.2K 15
Plugin
Axios logo
plugins: [pluginAxios()]

Axios

Official

@kubb/plugin-axios · v6.7.2Updated

Generates a type-safe axios client from your OpenAPI spec, one async function per operation, so each call stays in sync with the API.

api-clientaxioshttp-client

Stijn Van Hulle

72.7K 15
Plugin
Valibot logo
plugins: [pluginValibot()]

Valibot

BetaOfficial

@kubb/plugin-valibot · v0.4.3Updated

Generates Valibot v1 schemas from your OpenAPI spec so you validate API responses, form input, and query params at runtime.

valibotvalidationschema

Stijn Van Hulle

11.2K 15
Plugin
Ky logo
plugins: [pluginKy()]

Ky

BetaOfficial

@kubb/plugin-ky · v0.6.2Updated

Generates a type-safe Ky client from your OpenAPI spec, one async function per operation, so each call stays in sync with the API.

api-clientkyhttp-client

Stijn Van Hulle

10.5K 15
Plugin
Playwright logo
plugins: [pluginPlaywright()]

Playwright

Community

kubb-plugin-playwright · v0.1.0Updated

Generates a typed Playwright request helper per OpenAPI operation that returns the native APIResponse with a typed json().

playwrightapi-testinge2e-testing

Éric Le Maître

3.6K 1
@your/extension

Bring your own

Write a plugin, adapter or parser in TypeScript, ship a kubb-extension.json, and submit it to the registry.