Elestia Open Source Ratings
6.9

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.

WebsiteGitHubnpm

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

  1. 8.1Scalar
  2. 7.7Orval
  3. 7.3Swagger UI
  4. 7.1Hey API
  5. 6.9Kubb
  6. 6.9zod-to-openapi
  7. 6.7Spectral
  8. 6.7Redoc
  9. 3.2openapi-typescript
Compare all 9 on six scores