https://github.com/charliedigital/dn-kubb
A repository with .NET 10 OpenAPI generation + Kubb client side generation
https://github.com/charliedigital/dn-kubb
Last synced: 9 months ago
JSON representation
A repository with .NET 10 OpenAPI generation + Kubb client side generation
- Host: GitHub
- URL: https://github.com/charliedigital/dn-kubb
- Owner: CharlieDigital
- Created: 2025-09-26T13:05:05.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-26T13:06:04.000Z (9 months ago)
- Last Synced: 2025-10-05T04:44:40.269Z (9 months ago)
- Language: TypeScript
- Size: 77.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# .NET + Kubb
This repository demonstrates configuration of .NET controller web APIs + Kubb for client generation.
## Why Kubb
Kubb.dev and Orval.dev serve similar purposes, but Kubb's plugin-based approach makes it easier to extend the functionality with custom builders and transformers.
This example demonstrates using Kubb to:
- Generate TypeScript types
- Generate a standard client using `fetch`
- Generate Zod schemas
Kubb also supports [plugging in custom clients](https://kubb.dev/knowledge-base/fetch) for implementing custom behaviors like auth, telemetry, etc.
## How to Run
```shell
cd app
npm i
cd ../api
./_gen.sh
# Or manual
cd api
dotnet build
cd ../app
npm run gen
```
The `_gen.sh` script will continuously watch and rebuild the client (see the `.csproj` file for configuration example).