Plugins

Explore Kubb Plugins

Plugins are how you target a stack. Choose the ones you need, or write your own.

14 plugins · updated

Sort by
TypeScript
Featured
@kubb/plugin-ts
Generates TypeScript types and interfaces from your OpenAPI spec, the typed foundation the other Kubb plugins build on.
1.1M8
Zod
Featured
@kubb/plugin-zod
Generates Zod v4 schemas from your OpenAPI spec so you validate API responses, form input, and query params at runtime.
850.4K8
Client
Official
@kubb/plugin-client
Generates typed operation functions from your OpenAPI spec that call a client module you own, so you decide the transport, auth, and error handling.
446.4K8
React Query
Featured
@kubb/plugin-react-query
Generates typed TanStack Query hooks for React from your OpenAPI spec, so reads and writes call your API through useQuery, useMutation, and useInfiniteQuery without hand-written boilerplate.
361.8K8
Faker
Official
@kubb/plugin-faker
Generates a Faker.js mock-data factory for every schema in your OpenAPI spec. Use the factories in tests, Storybook, and local development without a running backend.
269.3K8
MSW
Official
@kubb/plugin-msw
Generates MSW request handlers from your OpenAPI spec so you can mock the API in tests and during local development.
247.1K8
Barrel
Featured
@kubb/plugin-barrel
Generates an index.ts barrel for every plugin output and one root barrel, so you import all generated code from a single entry point. Ships with Kubb, but only generates barrels once output.barrel is configured.
133.8K1.8K
Fetch
Featured
@kubb/plugin-fetch
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.
59.8K8
SWR
Featured
@kubb/plugin-swr
Generates typed SWR hooks from your OpenAPI spec, so data fetching stays in sync with the API.
44.3K8
Redoc
Official
@kubb/plugin-redoc
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.
38.4K8
MCP
Official
@kubb/plugin-mcp
Generates a Model Context Protocol server from your OpenAPI spec, so AI assistants can call each operation as a typed tool.
36.7K8
Vue Query
Official
@kubb/plugin-vue-query
Generates TanStack Query composables for Vue from your OpenAPI spec, so every read and write is a typed useQuery, useInfiniteQuery, or useMutation.
32.6K8
Cypress
Official
@kubb/plugin-cypress
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.
29.1K8
Axios
Featured
@kubb/plugin-axios
Generates a type-safe axios client from your OpenAPI spec, one async function per operation, so each call stays in sync with the API.
22.2K8
Your plugin
@your/plugin
Bring your own plugin. Write it in TypeScript, publish to npm, it shows up here.
Author guide