Skip to content
Extensions

All extensions

Plugins generate code, adapters read your API spec, and parsers print the files. Every listed version is reviewed.

17 extensions · updated

Plugin
TypeScript
plugins: [pluginTs()]

TypeScript

Official

@kubb/plugin-ts · v5.0.10Updated

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

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

Zod

Official

@kubb/plugin-zod · v5.4.8Updated

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

zodvalidationschema
Stijn Van Hulle 923.8K 8
Plugin
Client
plugins: [pluginClient()]

Client

Official

@kubb/plugin-client · v5.5.9Updated

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 469.3K 8
Plugin
React Query
plugins: [pluginReactQuery()]

React Query

Official

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

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 400.4K 8
Parser
TypeScript
parsers: [parserTs()]

TypeScript

Official

@kubb/parser-ts · v5.9.2Updated

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

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

Faker

Official

@kubb/plugin-faker · v5.1.5Updated

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

fakermock-datamocks
Stijn Van Hulle 309.2K 8
Plugin
MSW
plugins: [pluginMsw()]

MSW

Official

@kubb/plugin-msw · v5.0.12Updated

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 286.8K 8
Adapter
OpenAPI
adapter: adapterOas()

OpenAPI

Official

@kubb/adapter-oas · v5.9.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 284.1K 1.8K
Plugin
Barrel
plugins: [pluginBarrel()]

Barrel

Official

@kubb/plugin-barrel · v5.9.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 173.5K 1.8K
Parser
Markdown
parsers: [parserMd()]

Markdown

Official

@kubb/parser-md · v5.9.2Updated

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

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

Fetch

Official

@kubb/plugin-fetch · v5.5.11Updated

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 83.6K 8
Plugin
SWR
plugins: [pluginSwr()]

SWR

Official

@kubb/plugin-swr · v5.2.5Updated

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

swrreacthooks
Stijn Van Hulle 45.9K 8
Plugin
Redoc
plugins: [pluginRedoc()]

Redoc

Official

@kubb/plugin-redoc · v5.0.8Updated

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 41.7K 8
Plugin
MCP
plugins: [pluginMcp()]

MCP

Official

@kubb/plugin-mcp · v5.1.2Updated

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 40.1K 8
Plugin
Vue Query
plugins: [pluginVueQuery()]

Vue Query

Official

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

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 36.3K 8
Plugin
Cypress
plugins: [pluginCypress()]

Cypress

Official

@kubb/plugin-cypress · v5.0.10Updated

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 32.2K 8
Plugin
Axios
plugins: [pluginAxios()]

Axios

Official

@kubb/plugin-axios · v5.5.12Updated

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 26.8K 8
@your/extension

Bring your own

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