Skip to content
Extensions

All extensions

Browse Kubb plugins that generate TypeScript types, API clients, TanStack Query hooks, Zod schemas and mocks from your API spec, plus adapters and parsers.

18 extensions · updated

Plugin
TypeScript logo
plugins: [pluginTs()]

TypeScript

Official

@kubb/plugin-ts · v5.4.0Updated

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

typescripttypesinterfaces
Stijn Van Hulle 1.3M 10
Plugin
Zod logo
plugins: [pluginZod()]

Zod

Official

@kubb/plugin-zod · v5.8.0Updated

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

zodvalidationschema
Stijn Van Hulle 905.7K 10
Plugin
Client logo
plugins: [pluginClient()]

Client

Official

@kubb/plugin-client · v5.9.0Updated

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 458.5K 10
Plugin
React Query logo
plugins: [pluginReactQuery()]

React Query

Official

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

Generates typed TanStack Query helpers for React from your OpenAPI spec: queryOptions and mutationOptions factories with their cache keys. Set hooks to also get useQuery and useMutation hooks, plus useInfiniteQuery when infinite is set.

react-querytanstack-queryreact
Stijn Van Hulle 440.0K 10
Adapter
OpenAPI logo
adapter: adapterOas()

OpenAPI

Official

@kubb/adapter-oas · v5.15.2Updated

Reads an OpenAPI 2.0, 3.0, or 3.1 spec and converts every schema and operation into the AST that Kubb plugins generate from.

openapiswaggerapi-spec
Stijn Van Hulle 431.0K 1.8K
Parser
TypeScript logo
parsers: [parserTs()]

TypeScript

Official

@kubb/parser-ts · v5.15.2Updated

Prints the Kubb AST as TypeScript source and rewrites the extensions of relative imports and exports.

typescripttsxparser
Stijn Van Hulle 424.3K 1.8K
Plugin
Faker logo
plugins: [pluginFaker()]

Faker

Official

@kubb/plugin-faker · v5.3.0Updated

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

fakermock-datamocks
Stijn Van Hulle 387.7K 10
Plugin
MSW logo
plugins: [pluginMsw()]

MSW

Official

@kubb/plugin-msw · v6.1.0Updated

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 369.0K 10
Plugin
Barrel logo
plugins: [pluginBarrel()]

Barrel

Official

@kubb/plugin-barrel · v5.15.2Updated

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

barrelindexexports
Stijn Van Hulle 242.0K 1.8K
Parser
Markdown logo
parsers: [parserMd()]

Markdown

Official

@kubb/parser-md · v5.15.2Updated

Writes .md and .markdown files from the Kubb AST, with YAML frontmatter from a file's meta.

markdownfrontmatterparser
Stijn Van Hulle 240.9K 1.8K
Plugin
Fetch logo
plugins: [pluginFetch()]

Fetch

Official

@kubb/plugin-fetch · v5.11.0Updated

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 122.7K 10
Plugin
SWR logo
plugins: [pluginSwr()]

SWR

Official

@kubb/plugin-swr · v5.7.0Updated

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

swrreacthooks
Stijn Van Hulle 52.7K 10
Plugin
MCP logo
plugins: [pluginMcp()]

MCP

Official

@kubb/plugin-mcp · v5.4.0Updated

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 51.3K 10
Plugin
Redoc logo
plugins: [pluginRedoc()]

Redoc

Official

@kubb/plugin-redoc · v5.2.0Updated

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 50.1K 10
Plugin
Vue Query logo
plugins: [pluginVueQuery()]

Vue Query

Official

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

Generates typed TanStack Query helpers for Vue from your OpenAPI spec: queryOptions factories with their query and mutation keys. Set hooks to also get useQuery and useMutation composables, plus useInfiniteQuery when infinite is set.

vue-querytanstack-queryvue
Stijn Van Hulle 46.4K 10
Plugin
Cypress logo
plugins: [pluginCypress()]

Cypress

Official

@kubb/plugin-cypress · v5.2.0Updated

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

cypresse2e-testingapi-testing
Stijn Van Hulle 42.9K 10
Plugin
Axios logo
plugins: [pluginAxios()]

Axios

Official

@kubb/plugin-axios · v5.11.0Updated

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 40.6K 10
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 — 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.