kubb-labs

kubb-labs/kubb

TypeScript MIT Dev Tools

🧡 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
active
GitHub +8 / week

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.).

Dev Tools Developer Tool Discovery value: 6/10
Documentation 9/10
Activity 9/10
Community 8/10
Code quality 7/10

Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.

Overall score 8/10

AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.

code-generation openapi typescript plugin-architecture schema-driven
Actively maintained Well documented MIT licensed Niche/specialized use case Beginner friendly Production ready
Deep Analysis · Based on README and public signals
24h ago

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.

Origin

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

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.

In production

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.

Code analysis
Architecture

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.

Tests

Not documented in README. Coverage badge present in metadata but coverage percentage not stated.

Maintenance

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.

Honest verdict

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

Risks
  • 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.
Prediction

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.

0 found this helpful

Newsletter

Get analyses like this every Monday

Free weekly digest of the most interesting open-source discoveries.

Languages

TypeScript
97.9%
JavaScript
1.9%
Shell
0.1%

Information

Language
TypeScript
License
MIT
Last updated
20h ago
Created
43mo ago
Analyzed with
anthropic/claude-haiku-4-5

Stars over time

Loading…

Contributors over time

Top 100 contributors only — repos with more will plateau at 100.

Loading…

Similar repos

glideapps

glideapps/quicktype

quicktype generates strongly-typed models and serializers from JSON, JSON...

13.8k TypeScript Dev Tools
dotansimha

dotansimha/graphql-code-generator

GraphQL Code Generator is a tool that generates code (TypeScript, React,...

11.3k TypeScript Dev Tools
kubernetes

kubernetes/code-generator

code-generator provides Go code generators for implementing Kubernetes-style...

1.8k Go DevOps
kubero-dev

kubero-dev/kubero

Kubero is a self-hosted PaaS platform that abstracts Kubernetes complexity,...

4.3k TypeScript DevOps
orval-labs

orval-labs/orval

Orval is a TypeScript code generator that produces type-safe API clients from...

6.2k TypeScript Dev Tools
vs. alternatives
orval-labs/orval

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.

dotansimha/graphql-code-generator

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.

glideapps/quicktype

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

Kubernetes code-generator (1,833 stars) is domain-specific for Go. Kubb serves different ecosystem (TypeScript/React). Not direct competitors despite similar star counts.

CLI tools (e.g., OpenAPI Generator, Swagger Codegen)

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.