Plugins
Explore Kubb Plugins
Plugins are how you target a stack. Choose the ones you need, or write your own.
14 plugins · updated Sep 30, 2026
Sort by
@kubb/plugin-ts
Generates TypeScript types and interfaces from your OpenAPI spec, the typed foundation the other Kubb plugins build on.
1.1M8
@kubb/plugin-zod
Generates Zod v4 schemas from your OpenAPI spec so you validate API responses, form input, and query params at runtime.
813.0K8
@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.
440.6K8
@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.
348.3K8
@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.
257.7K8
@kubb/plugin-msw
Generates MSW request handlers from your OpenAPI spec so you can mock the API in tests and during local development.
234.8K8
@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.
107.4K1.8K
@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.
43.0K8
@kubb/plugin-swr
Generates typed SWR hooks from your OpenAPI spec, so data fetching stays in sync with the API.
40.3K8
@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.
34.1K8
@kubb/plugin-mcp
Generates a Model Context Protocol server from your OpenAPI spec, so AI assistants can call each operation as a typed tool.
32.2K8
@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.
28.0K8
@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.
25.2K8