Community
FAQ
Answers to common questions about Kubb, covering production use, telemetry, compatibility, and generated code.
Not here? Ask on Discord or open a GitHub issue.
General
Yes. The generated code is plain TypeScript, with no runtime dependency on Kubb and no decorators. Generate your first client shows the output.
Compatibility
Yes, with a build step. Kubb generates TypeScript, so import the output through a bundler that compiles TypeScript, such as Vite or esbuild, or compile it with
tsc.Not out of the box. The default adapter reads OpenAPI and Swagger, so use GraphQL Code Generator for GraphQL. A custom adapter can read any format, but takes real work.
Node.js 22.22 or later. The CLI and the config file are ESM. See Installation.
Yes. Kubb builds and type-checks with TypeScript 7, and the code it generates type-checks with
tsc 7. Install typescript@7 and run tsc as before. See Installation.On Bun, yes. The CLI and the generated code need no extra setup. Use the Bun commands in Installation. Deno is not tested.
Generated code
Either works. Commit the output so CI can skip generation, or add the output folder to
.gitignore and run kubb generate in CI.Yes. Build tool plugins generate when Vite, webpack, or another bundler builds. CI snapshots publish the output of each pull request as an installable package.
