Plugins are how you target a stack. Choose the ones you need, or write your own.
Generates TypeScript types and interfaces from your OpenAPI spec, the typed foundation the other Kubb plugins build on.
Generates Zod v4 schemas from your OpenAPI spec so you validate API responses, form input, and query params at runtime.
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.
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.
Generates MSW request handlers from your OpenAPI spec so you can mock the API in tests and during local development.
Generates a Model Context Protocol server from your OpenAPI spec, so AI assistants can call each operation as a typed tool.
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.
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.
Generates TanStack Query composables for Vue from your OpenAPI spec, so every read and write is a typed useQuery, useInfiniteQuery, or useMutation.
Generates typed SWR hooks from your OpenAPI spec, so data fetching stays in sync with the API.
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 and runs by default.
Generates a type-safe axios client from your OpenAPI spec, one async function per operation, so each call stays in sync with the API.
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.
Bring your own plugin. Write it in TypeScript, publish to npm, it shows up here.