Core functionality for Kubb's plugin-based code generation system, providing the foundation for transforming OpenAPI specifications.
- License
- MIT
- Install Size
- 560.5 kB/-
- Vulns
- 0
- Published
$
npm install @kubb/core$
pnpm add @kubb/core$
yarn add @kubb/core$
bun add @kubb/core$
deno add npm:@kubb/core$
vlt install @kubb/coreQuick Start
Get started with Kubb in seconds:
npx kubb init
The interactive setup will:
- Create a
package.json(if needed) - Guide you through plugin selection
- Install packages automatically
- Generate
kubb.config.ts
Then generate your code:
npx kubb generate
See the documentation for detailed usage and advanced features.
Features
- Works with Node.js 20+.
- Convert Swagger 2.0, OpenAPI 3.0, and OpenAPI 3.1 to TypeScript, Zod, React-Query, ...
- Plugin ecosystem to extend beyond the default plugins we provide.
- CLI support with progress bar and detailed logs.
- Model Context Protocol (MCP) server for AI assistants like Claude, Cursor, and other MCP-compatible tools.
- Debug tools with React DevTools.
- Generates barrel files (index.ts).
- And so much more ...
Supporting Kubb
Kubb is an open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:
Contributors
License
Most of this repository is licensed under the MIT License, Copyright © 2025 Stijn Van Hulle. Some components are licensed under AGPL-3.0-or-later.
- Most packages — MIT
@kubb/agent— AGPL-3.0-or-later
See LICENSE for details.