Community
FAQ
Frequently asked questions about Kubb, covering compatibility, generated code, customization, and plugins.
Find your question, then open it for the answer. If your question is not here, ask in Discord or open a GitHub issue.
General
Yes. The generated code is plain TypeScript. It has no runtime dependency on Kubb, no decorators, and no framework lock-in.
Compatibility
Yes. Kubb generates TypeScript. You can consume the output directly in a JavaScript project or transpile it as part of your build.
Not out of the box. The default adapter targets OpenAPI/Swagger. For GraphQL, use GraphQL Code Generator. A custom adapter can handle any format, but writing one takes real work.
Node.js 22.22 or higher. The CLI and config file are ESM-native.
The CLI and generated code run on Bun with no extra configuration. Deno isn't officially tested.
Generated code
Either way works. Many teams commit the generated code so CI can skip regeneration. Others add the output directory to
.gitignore and generate during CI.