An open API service indexing awesome lists of open source software.

https://github.com/kubb-labs/plugins

🧡 Official and community plugins for Kubb.
https://github.com/kubb-labs/plugins

axios code community faker fetch generation kubb meta msw plugins react-query typescript vue-query zod

Last synced: 11 days ago
JSON representation

🧡 Official and community plugins for Kubb.

Awesome Lists containing this project

README

          



Kubb banner

[![Stars][stars-src]][stars-href]
[![License][license-src]][license-href]
[![OC Backers][oc-backers-src]][oc-backers-href]


Documentation
·
Report Bug
·
Request Feature



# Kubb Plugins

**Official and community plugins for [Kubb](https://kubb.dev).**

This monorepo is home to official and community plugins for [Kubb](https://kubb.dev), the meta framework for code generation. Point Kubb at your OpenAPI specification and it generates TypeScript types, API clients, Zod schemas, React/Vue/Svelte/Solid Query hooks, Faker mocks, MSW handlers, and more.

Want to build your own plugin? See [CONTRIBUTING.md](./CONTRIBUTING.md).

## Official plugins

Maintained by the Kubb team. Kubb v5 OpenAPI configs use [`@kubb/adapter-oas`](https://npmx.dev/package/@kubb/adapter-oas) as the adapter layer.

### TypeScript

| Package | Version | Description |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------ |
| [`@kubb/plugin-ts`](./packages/plugin-ts) | [![npm version](https://img.shields.io/npm/v/@kubb/plugin-ts.svg)](https://npmx.dev/package/@kubb/plugin-ts) | TypeScript types and interfaces generation |

### Clients

| Package | Version | Description |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------- |
| [`@kubb/plugin-axios`](./packages/plugin-axios) | [![npm version](https://img.shields.io/npm/v/@kubb/plugin-axios.svg)](https://npmx.dev/package/@kubb/plugin-axios) | Type-safe HTTP client based on [Axios](https://github.com/axios/axios) |
| [`@kubb/plugin-fetch`](./packages/plugin-fetch) | [![npm version](https://img.shields.io/npm/v/@kubb/plugin-fetch.svg)](https://npmx.dev/package/@kubb/plugin-fetch) | Type-safe HTTP client based on the Fetch API |

### Zod

| Package | Version | Description |
| ------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [`@kubb/plugin-zod`](./packages/plugin-zod) | [![npm version](https://img.shields.io/npm/v/@kubb/plugin-zod.svg)](https://npmx.dev/package/@kubb/plugin-zod) | [Zod](https://github.com/colinhacks/zod) schema generation for runtime validation |

### Data fetching

| Package | Version | Description |
| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| [`@kubb/plugin-react-query`](./packages/plugin-react-query) | [![npm version](https://img.shields.io/npm/v/@kubb/plugin-react-query.svg)](https://npmx.dev/package/@kubb/plugin-react-query) | [TanStack Query](https://github.com/TanStack/query) hooks for React |
| [`@kubb/plugin-vue-query`](./packages/plugin-vue-query) | [![npm version](https://img.shields.io/npm/v/@kubb/plugin-vue-query.svg)](https://npmx.dev/package/@kubb/plugin-vue-query) | [TanStack Query](https://github.com/TanStack/query) composables for Vue |

### Testing and mocking

| Package | Version | Description |
| --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| [`@kubb/plugin-faker`](./packages/plugin-faker) | [![npm version](https://img.shields.io/npm/v/@kubb/plugin-faker.svg)](https://npmx.dev/package/@kubb/plugin-faker) | [Faker.js](https://github.com/faker-js/faker) mock data generation |
| [`@kubb/plugin-msw`](./packages/plugin-msw) | [![npm version](https://img.shields.io/npm/v/@kubb/plugin-msw.svg)](https://npmx.dev/package/@kubb/plugin-msw) | [Mock Service Worker](https://github.com/mswjs/msw) handlers |
| [`@kubb/plugin-cypress`](./packages/plugin-cypress) | [![npm version](https://img.shields.io/npm/v/@kubb/plugin-cypress.svg)](https://npmx.dev/package/@kubb/plugin-cypress) | [Cypress](https://github.com/cypress-io/cypress) e2e test generation |

### Documentation and AI

| Package | Version | Description |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------- |
| [`@kubb/plugin-redoc`](./packages/plugin-redoc) | [![npm version](https://img.shields.io/npm/v/@kubb/plugin-redoc.svg)](https://npmx.dev/package/@kubb/plugin-redoc) | [ReDoc](https://github.com/Redocly/redoc) API documentation generation |
| [`@kubb/plugin-mcp`](./packages/plugin-mcp) | [![npm version](https://img.shields.io/npm/v/@kubb/plugin-mcp.svg)](https://npmx.dev/package/@kubb/plugin-mcp) | Model Context Protocol tools for AI assistants |

## Community plugins

Plugins built and maintained by the community. Want to add yours? See [CONTRIBUTING.md](./CONTRIBUTING.md).

> No community plugins listed yet. Be the first to [contribute one](./CONTRIBUTING.md#adding-a-plugin).

## Examples

| Example | Description |
| --------------------------------------- | ----------------------------------- |
| [`typescript`](./examples/typescript) | Generate TypeScript types |
| [`client`](./examples/client) | Generate API clients with Axios |
| [`fetch`](./examples/fetch) | Generate API clients with Fetch |
| [`zod`](./examples/zod) | Generate Zod validation schemas |
| [`react-query`](./examples/react-query) | Generate React Query hooks |
| [`vue-query`](./examples/vue-query) | Generate Vue Query composables |
| [`faker`](./examples/faker) | Generate Faker.js mock data |
| [`msw`](./examples/msw) | Generate MSW handlers |
| [`cypress`](./examples/cypress) | Generate Cypress tests |
| [`mcp`](./examples/mcp) | Generate MCP tools |
| [`advanced`](./examples/advanced) | Advanced multi-plugin configuration |

## Contributing

We welcome contributions, and there are a few ways to get involved:

- Found a bug? File it in the [issue tracker](https://github.com/kubb-labs/plugins/issues).
- Have an idea for a plugin or improvement? [Open an issue](https://github.com/kubb-labs/plugins/issues/new) to share it.
- Need help? Ask the community on [Discord](https://discord.gg/4dQjA6vrWX).

Want to contribute to an existing plugin or add a new one, official or community? See [CONTRIBUTING.md](./CONTRIBUTING.md) for the project structure, prerequisites, local setup, and commands.

## Contributors [![Contributors][contributors-src]][contributors-href]



Stijn Van Hulle
Stijn Van Hulle

💻
Alfred
Alfred

💻
Kirill Agalakov
Kirill Agalakov

💻
Nick Williams
Nick Williams

📖
helt
helt

💻
Vasily Mikhaylovsky
Vasily Mikhaylovsky

💻
Chaim Lev-Ari
Chaim Lev-Ari

💻


Pavel Belousov
Pavel Belousov

💻
Dmitry Belov
Dmitry Belov

💻
Alex Burgel
Alex Burgel

💻
Daniel Garcia
Daniel Garcia

💻
wuyuanyi135
wuyuanyi135

💻
Chris Thompson
Chris Thompson

💻
Caleb Hoyoul Kang
Caleb Hoyoul Kang

💻


Gregory Zhukovsky
Gregory Zhukovsky

💻
Christoffer Nørbjerg
Christoffer Nørbjerg

💻
CHE1RON
CHE1RON

💻
ekaradon
ekaradon

💻
Thijmen Stavenuiter
Thijmen Stavenuiter

💻
Bohdan Husak
Bohdan Husak

📖
Éric Le Maître
Éric Le Maître

💻


Rubens Pereira do Nascimento
Rubens Pereira do Nascimento

💻
Matt Sutkowski
Matt Sutkowski

💻
Vítor Camacho
Vítor Camacho

💻
Václav Procházka
Václav Procházka

💻
Luiz Bett
Luiz Bett

💻
Sebastian Andersen
Sebastian Andersen

💻
Akino
Akino

💻


Ricardo Machado
Ricardo Machado

💻
Simon El Nahas
Simon El Nahas

📖
maartenvansambeek
maartenvansambeek

💻
Stefan du Fresne
Stefan du Fresne

💻
Hugo Felippe de Souza Cruz
Hugo Felippe de Souza Cruz

💻
Sébastien Vanvelthem
Sébastien Vanvelthem

💻
Vitaly Gashkov
Vitaly Gashkov

📖


Duco Drupsteen
Duco Drupsteen

💻
th3l0g4n
th3l0g4n

💻
rxliuli
rxliuli

💻
humarkx
humarkx

💻
Jakub Cerovsky
Jakub Cerovsky

💻
Pachara Chantawong
Pachara Chantawong

💻
Volodymyr Kushnir
Volodymyr Kushnir

💻


GKNewsrooms
GKNewsrooms

💻
Kamil Stepczuk
Kamil Stepczuk

💻
João Brilhante
João Brilhante

💻
Kamil Sieradzki
Kamil Sieradzki

💻
Eric Pierlot
Eric Pierlot

💻
Alexander Sjöcrona Tholin
Alexander Sjöcrona Tholin

💻
Stephen Zhou
Stephen Zhou

💻


Ilia Choly
Ilia Choly

💻
Alex Skoropad
Alex Skoropad

💻
Jay Patel
Jay Patel

💻
Hamza Mihai Daniel
Hamza Mihai Daniel

💻
Alexis Rico
Alexis Rico

💻

## Sponsors

Kubb's development is funded by sponsors. To support the project, [become a sponsor on GitHub](https://github.com/sponsors/stijnvanhulle) or [back us on Open Collective](https://opencollective.com/kubb).



stijnvanhulle sponsors

## License

[MIT](./LICENSE) © [Stijn Van Hulle](https://github.com/stijnvanhulle)

## Star history

Star history chart

[stars-src]: https://shieldcn.dev/github/stars/kubb-labs/plugins.svg?variant=secondary&size=xs&theme=zinc&mode=dark
[stars-href]: https://github.com/kubb-labs/plugins
[license-src]: https://shieldcn.dev/npm/license/@kubb/plugin-ts.svg?variant=secondary&size=xs&theme=zinc
[license-href]: https://github.com/kubb-labs/plugins/blob/main/LICENSE
[coverage-src]: https://shieldcn.dev/codecov/github/kubb-labs/plugins.svg?variant=secondary&size=xs&theme=zinc&mode=dark
[coverage-href]: https://app.codecov.io/gh/kubb-labs/plugins
[oc-backers-src]: https://shieldcn.dev/opencollective/backers/kubb.svg?variant=secondary&size=xs&theme=zinc&mode=dark
[oc-backers-href]: https://opencollective.com/kubb
[contributors-src]: https://shieldcn.dev/github/contributors/kubb-labs/plugins.svg?variant=secondary&size=xs&theme=zinc&mode=dark
[contributors-href]: #contributors-