Skip to content

At Glance

Kubb is a library and toolkit that transforms your Swagger/OpenAPI specification into various client libraries, including:

Additionally, Kubb features a plugin system, enabling you to build custom implementations and integrate other libraries.

Features

  • Works with Node.js 20+.
  • Supports Swagger 2.0, OpenAPI 3.0, and OpenAPI 3.1.
  • Plugin Ecosystem of Kubb to extend beyond the default plugins we provide.
  • CLI support with progressbar and logs.
  • Debug tools with React DevTools.
  • Generate barrel files(index.ts).
  • And so much more ...

Philosophy

Imagine that your backend team is writing an API in Java/Kotlin, how do you connect your frontend to their system without the need of communicating on every API change. This is not a new problem and has already been resolved with the use of a Swagger/OpenAPI specification combined with a code generator.

The problem is that most of them are good at one thing: generating TypeScript types or generating React-Query hooks. Kubb is trying to resolve that with a plugin system where we already provide you with some plugins but also giving you the possibility to create your own plugin.

Sponsoring

Kubb is open source and build by the community, help us building Kubb by sponsoring us.

Our Community

Come and chat with us on Discord! We're always looking for some contributions.

Released under the MIT License.