Skip to main content
Search...
NewDuck Gen and Duck Query are production-readyGet started

Duck Gen: Contracts That Compile, APIs That Stay in Sync

Duck Gen is a general-purpose compiler extension that scans controllers and message tags to keep your API and i18n types aligned

Why Duck Gen

A compiler extension that generates type-safe contracts and message tags, keeping your stack in sync.

Contract-First Generation

Scan framework controllers and generate typed API contracts so clients always stay in sync.

Typed Routes and DTOs

Automatically create request and response types for every route. No manual duplication needed.

Message Tag Safety

Extract message tags into fully typed keys so your i18n workflows are predictable and safe.

Composable Output

Produce structured outputs that plug directly into client SDKs and documentation pipelines.

CLI and Watch Mode

Generate once for a snapshot, or run in watch mode to keep types in sync during development.

Framework Friendly

A pluggable architecture designed for multiple frameworks. Currently validated with NestJS.

Partners

The people and organizations that keep this project alive.