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.
Scan framework controllers and generate typed API contracts so clients always stay in sync.
Automatically create request and response types for every route. No manual duplication needed.
Extract message tags into fully typed keys so your i18n workflows are predictable and safe.
Produce structured outputs that plug directly into client SDKs and documentation pipelines.
Generate once for a snapshot, or run in watch mode to keep types in sync during development.
A pluggable architecture designed for multiple frameworks. Currently validated with NestJS.