Skip to content
Community

FAQ

Frequently asked questions about Kubb, covering compatibility, generated code, customization, and plugins.

If your question isn't here, ask in Discord or open a GitHub issue.

General

Is Kubb production-ready?

Yes. The generated code is plain TypeScript. It has no runtime dependency on Kubb, no decorators, and no framework lock-in.

Compatibility

Does Kubb work with JavaScript projects?

Yes. Kubb generates TypeScript. You can consume the output directly in a JavaScript project or transpile it as part of your build.

Can I use Kubb with GraphQL?

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.

What Node.js version is required?

Node.js 22 or higher. The CLI and config file are ESM-native.

Does Kubb support Bun or Deno?

The CLI and generated code run on Bun with no extra configuration. Deno isn't officially tested.

Generated code

Do I commit generated files to Git?

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.

How do I disable telemetry?

Set DO_NOT_TRACK=1 or KUBB_DISABLE_TELEMETRY=1. See Telemetry for details.