Kubb
Reasonable, with limits. 5th of 9 OpenAPI tools.
Kubb is a plugin-based generator. It turns an OpenAPI spec into TypeScript types, fetch or axios clients, TanStack Query, SWR and Vue Query hooks, Zod schemas, Faker data and MSW mocks. It is very actively developed and flexible, but it is slower, heavier and less widely used than Orval or Hey API, so it is a reasonable pick rather than the default.
Best for: Teams that want one configurable pipeline to generate clients, hooks, Zod validators and mocks from OpenAPI, and that are willing to tune it.
Scores
Overall6.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Kubb is a capable, very actively developed generator with the most flexible plugin system in the category. Orval and Hey API do the common job of typed clients plus query hooks with less setup, faster builds, much more use and more outside validation. For a new project it is a reasonable pick when you need its custom plugins or one pipeline for clients, Zod and mocks, but it is not the default.
- dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p: Strong potential, but slow and needs commitment
- pkgpulse.com/guides/orval-vs-openapi-typescript-vs-kubb-openapi-client-2026: Most flexible but most complex
- peers downloadsLast4Weeks: Peers Orval and Hey API have 6 to 13 times the downloads
GPT-6.2 Sol: 7.8, likely 6.7 to 8.8
Kubb is a strong new-project choice when one OpenAPI spec needs to drive clients, validation, mocks, and reference docs together. For a standard React client, Orval offers similar core outputs and has a larger adoption record. Kubb's fast release cadence makes it a credible long-term option, with maintainer concentration and a short independent track record for v5 keeping the range wide.
- kubb.dev/docs/5.x/introduction/comparison: Shows Kubb's output coverage and the overlap with Orval and Hey API.
- orval.dev: Orval offers typed clients, query hooks, mocks, and validators.
- github latestRelease, releasesLastYear, dependents, peers: Kubb ships frequently, while Orval has more indexed dependents and installs.
- kubb.dev/about: Identifies the maintainer behind the project.
Needed by many5.8
How many developers need a tool for this job?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
Many TypeScript teams that call a REST API with an OpenAPI spec need a typed client or hooks. That is a large group but not most developers. Kubb covers only the generation side of the category, not docs or linting, and is mostly used by frontend React and Vue teams.
- category.job: The category also covers docs and authoring, which Kubb does not do
- github.com/kubb-labs/kubb: Plugins for types, clients, hooks, Zod, mocks and MCP
GPT-6.2 Sol: 6.1, likely 4.9 to 7.2
OpenAPI generation serves a large group of web teams that share HTTP contracts across services and frontends. Kubb reaches React, Vue, and framework-independent TypeScript clients, with the best fit where an OpenAPI spec already exists. Postman's survey supports demand for API-first workflows, but its sample gives little precision about how many JavaScript teams need generation.
- postman.com/state-of-api/2025: Survey of 5,700 API practitioners found broad use of API-first practices.
- kubb.dev/docs/5.x/introduction: Documents framework-independent clients, React and Vue hooks, validators, and mocks.
Helps a lot7.4
How well does it do the job for those who need it?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
It has the widest and most flexible plugin set of the generators, it supports OpenAPI 2.0 to 3.2, and its types are good. Independent tests found it the slowest generator, with very large output, lint noise in generated code, and edge-case enum bugs. Reviewers call it the most complex to configure. Orval and Hey API do the common case more simply.
- dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p: Slowest at about 12x, 24 MB of output, no-explicit-any lint errors, BlankEnum bug; 'potential is high, but it needs commitment'
- pkgpulse.com/guides/orval-vs-openapi-typescript-vs-kubb-openapi-client-2026: Most flexible but most complex to configure
- gh.r-mj.com/skmtc/openapi-codegen-benchmarks: Zod benchmark: Kubb about 14.9x slower than the fastest tool
GPT-6.2 Sol: 8.3, likely 7.2 to 9.2
Kubb generates a wide range of typed outputs from one spec, including several OpenAPI 3.2 features, and offers versioned recipes and Claude Code integration. The current release still has a reported schema edge case where generated types and validators lose constraints. An independent v4 test found Kubb slower than Orval and Hey API, while Kubb's own v5 benchmark reports a lead on synthetic specs. The size of that improvement on real v5 projects remains uncertain.
- kubb.dev/docs/5.x/introduction/comparison: Maintainer-run v5 benchmark and feature comparison, including OpenAPI 3.2 support.
- kubb.dev/docs/5.x/ai/claude: Documents generation and validation through the same CLI used in CI.
- github.com/kubb-labs/kubb/issues/4703: Open report of dropped sibling constraints on union schemas.
- zenn.dev/nyaomaru/articles/openapi-generator: Independent large-spec test found v4 slower than Orval and Hey API with the tested outputs.
Holds up over time7.1
Will it still be a good choice in two years?
Claude Opus 5.5: 6.5, likely 5.0 to 7.5
Activity is very high: 5,667 commits, 370 releases and 2,783 merged PRs, with only 6 open issues. Work depends heavily on one lead maintainer who is funded by sponsors, and the project says it is looking for more maintainers. The v5 rewrite and very frequent releases make upgrades take work.
- github commitsLastYear: 5,667 commits and 370 releases in the last year
- github openIssues: 6 open against 815 closed
- github.com/kubb-labs/kubb: Funded entirely by sponsors; 'We are looking for maintainers'
- socket.dev/npm/package/@kubb/core/diff/5.0.0-beta.82: The v5 betas were a major refactor
GPT-6.2 Sol: 7.6, likely 6.2 to 8.8
Kubb ships frequent fixes, and the snapshot shows six open issues and one open pull request. Sponsors help fund maintenance, and recent release work still centers on the founder. The v5 rewrite also changed generated code and removed the Solid and Svelte Query plugins, so upgrades can require application changes.
- github commitsLastYear, releasesLastYear, openIssues, openPullRequests, latestRelease: High recent activity and a small open queue at the November 21 snapshot.
- github.com/kubb-labs/kubb/releases/tag/kubb@5.23.1: November 19 patch credits the founder and was released through GitHub Actions.
- kubb.dev/about: Identifies the founder as the maintainer.
- kubb.dev/sponsors: Lists two bronze sponsors and individual backers.
- kubb.dev/docs/5.x/migrate/from-v4: Documents removed plugins and breaking changes to config and generated output.
Used widely4.5
How many use it, and is that growing?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
Downloads grew about 7.6x in a year, well above the 4.1 median, so Kubb is gaining ground. But 2.3M downloads every 4 weeks is a fraction of Orval's 15M or Hey API's 30M, and every plugin install pulls in @kubb/core. Dependents (1 repo, 20 packages), 1.9k stars and almost no social attention point to a few thousand to tens of thousands of projects.
- npm downloadsLast4Weeks: 2.30M now against 305k a year ago, a ratio of about 7.6
- peers downloadsLast4Weeks: Orval 15.3M, Hey API 29.8M, openapi-typescript 64.9M
- dependents: 1 repo and 20 packages, against Orval's 305 repos
- bluesky posts: 1 post, from the maintainer
GPT-6.2 Sol: 4.5, likely 3.0 to 5.9
Core downloads rose 7.6× year over year, ahead of the 4.1× catalog baseline and close to Orval's growth rate. Kubb still trails Orval and Hey API in downloads and stars. The CLI installs core and CI repeats installs, while ecosyste.ms found only one downstream repository and 20 packages, so the number of projects choosing Kubb directly is hard to estimate.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: About 2.30 million installs versus 305,000 a year earlier.
- dependents, github stars, peers: One indexed repo and 20 packages depend on core. Orval has 305 indexed repos.
- bluesky, hackerNews: One maintainer Bluesky post and one relevant Hacker News story with modest engagement.
- kubb.dev/docs/5.x/how-to/installation: The main CLI package brings in the core runtime.
Vouched for4.8
Who stands behind it being good?
Claude Opus 5.5: 3.5, likely 2.5 to 5.0
Independent comparisons treat Kubb as a serious option but rarely as the first choice. No well-known companies or frameworks are named as building on it. There is no survey data and almost no discussion on Hacker News or Bluesky.
- dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p: Not recommended as the first choice for a typical frontend app
- pistack.xyz/posts/2026-10-01-orval-vs-kubb-vs-openapi-typescript-typescript-client-generators: Included in a current 2026 comparison
- hackerNews stories: One 5-point story; the other match is unrelated
GPT-6.2 Sol: 6.0, likely 4.7 to 7.3
Xata describes using Kubb to build its MCP server, and JitaSpace documents using it to generate several API clients. Developers also report using its generated TanStack Query hooks and Zod schemas in applications. Most detailed independent reports cover earlier releases, so the track record for the v5 rewrite is still limited.
- xata.io/blog/built-xata-mcp-server: Xata's engineering team explains its use of Kubb for client and tool generation.
- github.com/joaomlneto/jitaspace: JitaSpace lists multiple EVE API clients generated with Kubb.
- reddit.com/r/nextjs/comments/1pst0za/patterns_for_calling_an_external_backend_from: A user describes generating a Next.js client, query hooks, and validators from Django's spec.
Safe7.6
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
There are no known advisories, core has only 3 dependencies, and the licence is MIT. It is a build-time tool, which limits the runtime attack surface. There is no Scorecard data, and with hundreds of releases a year, mostly from one maintainer, a compromised release would be easy to miss.
- advisories total: 0 advisories
- npm dependencies: 3 dependencies in core
- scorecard: No Scorecard data
- npm versionsLastYear: 263 versions in a year, a high publishing rate
GPT-6.2 Sol: 8.1, likely 6.8 to 9.0
Core is MIT-licensed, has three direct dependencies, and has no recorded OSV advisories. The release workflow is configured for npm trusted publishing with a release approval environment. The missing OpenSSF Scorecard, unverified publisher count, and additional dependencies from selected plugins leave some uncertainty.
- npm license, dependencies, advisories, scorecard: MIT, three direct core dependencies, zero recorded OSV advisories, and no Scorecard result.
- github.com/kubb-labs/kubb/blob/kubb@5.23.1/.github/workflows/release.yml: Release workflow grants OIDC for npm publishing and uses an approval environment.
- github.com/kubb-labs/kubb/security: Security policy lists v4 and v5 as supported, with no published repository advisories.
Good
- Plugins cover types, clients, React, Vue and SWR query hooks, Zod, Faker, MSW, Cypress and MCP from one config.
- Custom plugins and generators give fine control over the output, with roughly one file per operation.
- Very active development, with thousands of commits and hundreds of releases in the last year and only a handful of open issues.
- MIT licence, only 3 runtime dependencies in core and no known advisories.
Bad
- It is slow and heavy on large specs: one independent test measured about 12x slower than openapi-typescript and 3,877 files totalling 24 MB of output.
- It is harder to configure than Orval or Hey API, and generated code can trip lint rules such as no-explicit-any.
- It relies on one lead maintainer, and the project says it is looking for more maintainers.
- Releases come very often, and the v5 rewrite changed the plugin architecture, so upgrades take attention.
The numbers
- npm downloads, 4 weeks
- 2.3M ×7.6 in a year
- GitHub stars
- 1.9k
- Commits, 12 months
- 5.7k
- npm version
- 5.23.1 Nov 2026
- Versions, 12 months
- 263
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (kubb-labs/kubb), npm (@kubb/core), OSV and the OpenSSF Scorecard.
OpenAPI tools
- 8.1Scalar
- 7.7Orval
- 7.3Swagger UI
- 7.1Hey API
- 6.9Kubb
- 6.9zod-to-openapi
- 6.7Spectral
- 6.7Redoc
- 3.2openapi-typescript