🧡 Turn your API spec into type-safe code. Generate TypeScript types, API clients, hooks, validators and mocks from a spec such as OpenAPI.
See the codeKubb turns an API spec, such as OpenAPI, into TypeScript types, API clients, hooks, validators and mocks, and keeps them in sync with your API. It reads OpenAPI 2.0, 3.0 and 3.1.
bun add kubb
# or
pnpm add kubb
# or
npm install kubb
Run the setup wizard to create a kubb.config.ts:
npx kubb init
The wizard creates a package.json if needed, guides you through plugin selection, installs packages, and writes kubb.config.ts. Then generate your code:
npx kubb generate
See the documentation for detailed usage and advanced features.
Kubb Studio is the visual companion for Kubb. Configure, run, and inspect generations in the browser while Kubb runs in your project or on an agent you control.
Try Studio's shared sandbox, connect a local project, or publish reviewable snapshots from CI. Kubb remains MIT-licensed and works without Studio.
@kubb/adapter-oas, with output for Node.js and Bun.plugin-ts, plugin-axios, plugin-fetch, plugin-react-query, plugin-vue-query, plugin-swr, plugin-zod, plugin-faker, plugin-msw, plugin-cypress, plugin-redoc, plugin-mcp.kubb/kit authoring toolkit, plus a JSX renderer for component-based output.unplugin-kubb for Vite, Nuxt, Astro, webpack, and more.Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:
We welcome contributions that help improve Kubb. A few ways to get involved:
See CONTRIBUTING.md for the project structure, local setup, and commands.
This repository is licensed under the MIT License, Copyright © 2025 Stijn Van Hulle.
See LICENSE for details.
825 followers · starred Jun 2025
2,581 followers · starred Nov 2025
624 followers · starred Nov 2025
283 followers · starred Jan 2024
🧡 Turn your API spec into type-safe code. Generate TypeScript types, API clients, hooks, validators and mocks from a spec such as OpenAPI.
See the codeKubb turns an API spec, such as OpenAPI, into TypeScript types, API clients, hooks, validators and mocks, and keeps them in sync with your API. It reads OpenAPI 2.0, 3.0 and 3.1.
bun add kubb
# or
pnpm add kubb
# or
npm install kubb
Run the setup wizard to create a kubb.config.ts:
npx kubb init
The wizard creates a package.json if needed, guides you through plugin selection, installs packages, and writes kubb.config.ts. Then generate your code:
npx kubb generate
See the documentation for detailed usage and advanced features.
Kubb Studio is the visual companion for Kubb. Configure, run, and inspect generations in the browser while Kubb runs in your project or on an agent you control.
Try Studio's shared sandbox, connect a local project, or publish reviewable snapshots from CI. Kubb remains MIT-licensed and works without Studio.
@kubb/adapter-oas, with output for Node.js and Bun.plugin-ts, plugin-axios, plugin-fetch, plugin-react-query, plugin-vue-query, plugin-swr, plugin-zod, plugin-faker, plugin-msw, plugin-cypress, plugin-redoc, plugin-mcp.kubb/kit authoring toolkit, plus a JSX renderer for component-based output.unplugin-kubb for Vite, Nuxt, Astro, webpack, and more.Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:
We welcome contributions that help improve Kubb. A few ways to get involved:
See CONTRIBUTING.md for the project structure, local setup, and commands.
This repository is licensed under the MIT License, Copyright © 2025 Stijn Van Hulle.
See LICENSE for details.
825 followers · starred Jun 2025
2,581 followers · starred Nov 2025
624 followers · starred Nov 2025
283 followers · starred Jan 2024