@kubb/core

v4.33.2
  • Types
  • ESM
  • CJS

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

Get started

$npm install @kubb/core
$pnpm add @kubb/core
$yarn add @kubb/core
$bun add @kubb/core
$deno add npm:@kubb/core
$vlt install @kubb/core

Readme


Quick 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:

My sponsors

Contributors

Stijn Van Hulle
Stijn Van Hulle

💻
Alfred
Alfred

💻
Kirill Agalakov
Kirill Agalakov

💻
Nick Williams
Nick Williams

📖
helt
helt

💻
Vasily Mikhaylovsky
Vasily Mikhaylovsky

💻
Chaim Lev-Ari
Chaim Lev-Ari

💻
Pavel Belousov
Pavel Belousov

💻
Dmitry Belov
Dmitry Belov

💻
Alex Burgel
Alex Burgel

💻
Daniel Garcia
Daniel Garcia

💻
wuyuanyi135
wuyuanyi135

💻
Chris Thompson
Chris Thompson

💻
Caleb Hoyoul Kang
Caleb Hoyoul Kang

💻
Gregory Zhukovsky
Gregory Zhukovsky

💻
Christoffer Nørbjerg
Christoffer Nørbjerg

💻
CHE1RON
CHE1RON

💻
ekaradon
ekaradon

💻
Thijmen Stavenuiter
Thijmen Stavenuiter

💻
Bohdan Husak
Bohdan Husak

📖
Éric Le Maître
Éric Le Maître

💻
Rubens Pereira do Nascimento
Rubens Pereira do Nascimento

💻
Matt Sutkowski
Matt Sutkowski

💻
Vítor Camacho
Vítor Camacho

💻
Václav Procházka
Václav Procházka

💻
Luiz Bett
Luiz Bett

💻
Sebastian Andersen
Sebastian Andersen

💻
Akino
Akino

💻
Ricardo Machado
Ricardo Machado

💻
Simon El Nahas
Simon El Nahas

📖
maartenvansambeek
maartenvansambeek

💻
Stefan du Fresne
Stefan du Fresne

💻
Hugo Felippe de Souza Cruz
Hugo Felippe de Souza Cruz

💻
Sébastien Vanvelthem
Sébastien Vanvelthem

💻
Vitaly Gashkov
Vitaly Gashkov

📖
Duco Drupsteen
Duco Drupsteen

💻
th3l0g4n
th3l0g4n

💻
rxliuli
rxliuli

💻
humarkx
humarkx

💻
Jakub Cerovsky
Jakub Cerovsky

💻
Pachara Chantawong
Pachara Chantawong

💻
Volodymyr Kushnir
Volodymyr Kushnir

💻
GKNewsrooms
GKNewsrooms

💻
Kamil Stepczuk
Kamil Stepczuk

💻
João Brilhante
João Brilhante

💻
Kamil Sieradzki
Kamil Sieradzki

💻
Eric Pierlot
Eric Pierlot

💻
Alexander Sjöcrona Tholin
Alexander Sjöcrona Tholin

💻
Stephen Zhou
Stephen Zhou

💻
Ilia Choly
Ilia Choly

💻
Alex Skoropad
Alex Skoropad

💻
Jay Patel
Jay Patel

💻
Hamza Mihai Daniel
Hamza Mihai Daniel

💻

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.

See LICENSE for details.

Star History

Star History Chart