🧡 The meta framework for code generation. Automate OpenAPI to type-safe TypeScript, Zod, and TanStack Query with a modular, plugin-based engine.
1.8k
Stars
146
Forks
5
Open issues
30
Contributors
AI Analysis
Kubb is a code generation meta-framework that transforms OpenAPI schemas into type-safe TypeScript clients, React Query hooks, Zod validators, and mock data via a modular plugin system. It serves developers building TypeScript applications who need to eliminate boilerplate when consuming REST APIs; it is not a general-purpose code generator but rather specialized for OpenAPI-to-TypeScript workflows across multiple ecosystems (Axios, Fetch, TanStack Query, SWR, etc.).
Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.
AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.
Plugin-based OpenAPI code generator targeting TypeScript/React teams with rich schema support
Kubb is a modular code generation framework that transforms OpenAPI schemas into TypeScript types, API clients, React Query hooks, Zod validators, and mocks. Built for teams wanting typed, schema-driven API layers with minimal boilerplate. Created in 2023, it has ~1,756 GitHub stars and remains actively maintained (last push July 2026). Adoption appears concentrated among TypeScript/React shops, particularly those already using TanStack Query. Real-world adoption scale remains unconfirmed by public evidence.
Kubb emerged in early 2023 as a response to fragmented code generation workflows for OpenAPI schemas. Rather than compete head-to-head with established single-purpose tools (like Orval for REST clients or graphql-code-generator for schemas), it positioned itself as a composable engine where teams select only needed plugins. The model reflects rising demand for schema-driven development in TypeScript ecosystems.
Growth has been steady but modest: 1,756 stars over ~3.5 years (~500/year), with 7 stars in the most recent 7-day window. Last commit July 8, 2026 indicates active maintenance. Sponsorship model (GitHub Sponsors, Open Collective) suggests reliance on dedicated user base rather than venture-backed scaling. Growth trajectory suggests establishing a stable niche rather than explosive adoption.
Adoption not verified. README mentions no public case studies, customer references, or deployment statistics. Sponsorship page and contributor list suggest an engaged user community, but scale and enterprise adoption remain opaque. Discord community mentioned but size unknown. Presence in npm downloads would provide signal but not visible in metadata provided.
Based on README, Kubb appears built around a plugin/adapter pattern: adapters (e.g., @kubb/adapter-oas) parse input schemas; plugins (ts, react-query, zod, faker, msw) generate outputs; a JSX-based renderer handles templating. Likely supports multiple input formats (OpenAPI 2.0/3.0/3.1) and output targets (Node.js, Bun). No details on AST/IR internals visible in README.
Not documented in README. Coverage badge present in metadata but coverage percentage not stated.
Active: last push July 8, 2026 (same day as current date), suggesting ongoing development. README references recent features (MCP server, Claude Code integration, unplugin support for Vite/Nuxt/Astro/webpack). Multiple contributors listed; sponsorship model implies sustained funding. No signs of abandonment or long stale periods evident from metadata.
ADOPT IF: your team generates code from OpenAPI schemas regularly, uses TypeScript/React, and prefers composable plugins over all-in-one tools. You value customization (JSX-based output) and bundler integration (Vite, Nuxt, Astro). AVOID IF: you need REST client generation alone (Orval may be simpler), your org doesn't use OpenAPI (schema-dependent), or you require mature, battle-tested tooling with large public user base and abundant examples. MONITOR IF: you have long-term schema-driven projects; Kubb's plugin model is attractive but real-world adoption metrics are not yet public, so betting critical paths on it carries unknown risk.
Independent dimensions
Mainstream potential
4/10
Technical importance
6/10
Adoption evidence
2/10
- Adoption scale unknown: no public evidence of enterprise or high-profile deployments; reliance on sponsorships vs. revenue or broad user base increases discontinuation risk.
- Ecosystem concentration: plugin ecosystem appears nascent; gaps in plugins (e.g., Nest.js, GraphQL, or less common frameworks) may limit utility without custom work.
- Competing with simpler single-purpose tools: teams may default to Orval (REST only) or graphql-code-generator (GraphQL only) to avoid plugin decision overhead.
- TypeScript-first: limited value for teams using Python, Go, or non-Node backends; ecosystem bet heavily on JS/TS/Node.
- Dependency on primary maintainer (Stijn Van Hulle): sponsorship model and contributor list suggest single-lead project; bus factor not addressed in README.
Kubb likely remains a stable, specialist tool for TypeScript/React teams with schema-driven API layers. Growth may plateau at 3k–5k stars unless a major sponsor adoption or high-profile case study emerges. Plugin ecosystem may expand (e.g., community-contributed Nest.js, tRPC adapters) but adoption appears niche-permanent rather than trending toward mainstream.
Newsletter
Get analyses like this every Monday
Free weekly digest of the most interesting open-source discoveries.
Languages
Information
- Website
- https://kubb.dev
- Language
- TypeScript
- License
- MIT
- Last updated
- 20h ago
- Created
- 43mo ago
- Analyzed with
- anthropic/claude-haiku-4-5
Stars over time
Contributors over time
Top 100 contributors only — repos with more will plateau at 100.
Open issues
Evaluate replacing Changesets with Bumpy (@varlock/bumpy)
adapter-arazzo: Arazzo workflow adapter based on adapter-oas
adapter-prisma: Prisma schema adapter based on adapter-oas
adapter-asyncapi: AsyncAPI adapter based on adapter-oas
Open pull requests
Top contributors
Similar repos
dotansimha/graphql-code-generator
GraphQL Code Generator is a tool that generates code (TypeScript, React,...
kubernetes/code-generator
code-generator provides Go code generators for implementing Kubernetes-style...
| Repository | Stars | Week Δ | Language | Score | Updated |
|---|---|---|---|---|---|
|
|
1.8k | +8 | TypeScript | 8/10 | 20h ago |
|
|
13.8k | — | TypeScript | 8/10 | 11h ago |
|
|
11.3k | — | TypeScript | 8/10 | 4d ago |
|
|
1.8k | — | Go | 8/10 | 9h ago |
|
|
4.3k | — | TypeScript | 7/10 | 2w ago |
|
|
6.2k | — | TypeScript | 8/10 | 1d ago |
Orval (6,224 stars) specializes in REST client generation from OpenAPI. Kubb is broader—covers clients, types, hooks, validators, mocks—and plugin-based. Orval may have better single-tool focus; Kubb targets teams wanting integrated, customizable generation pipelines.
GraphQL Code Generator (11,265 stars) dominates GraphQL schema code gen. Kubb targets REST (OpenAPI). GraphQL-CodeGen more mature and widely adopted; Kubb's plugin model superficially similar but operates on different schema language.
Quicktype (13,783 stars) generates types from JSON/Schema. Narrower scope; Kubb is schema-to-full-stack (clients, hooks, validators). Quicktype is simpler entry point; Kubb serves end-to-end workflows.
Kubernetes code-generator (1,833 stars) is domain-specific for Go. Kubb serves different ecosystem (TypeScript/React). Not direct competitors despite similar star counts.
Traditional, less composable tools. Kubb offers tighter TypeScript/React integration, JSX templating, and bundler plugins; these tools are more language-agnostic but less tailored to modern JS workflows.