DDDesigner
Resources
RUStart

Product documentation

Code generation

Configure the codegen stack, run Generate, and understand owned versus scaffold files in DDDesigner.

DDDesigner generates application scaffolding from your design model. Generation respects the language and adapters you pick in Project properties.

Configure the stack

Open Project properties (codegen stack) and choose:

  • language (Go, C#, Java, Kotlin, TypeScript, Python);
  • architecture, HTTP, database, messaging, DI as needed;
  • optional workflow runtime (for example Temporal for orchestration sagas);
  • optional event store (none by default; Chronacta is opt-in).

Codegen stack settings

Maturity of each stack is shown in the UI — check it before relying on generated code in production.

Run Generate

  1. Clear model errors in diagnostics.
  2. Open the Generated Code panel.
  3. Click Generate.
  4. Review the preview, download a ZIP, or push to the connected Git repository when ready.

Generated Code preview

Owned vs scaffold files

Mode Behavior
Owned Regenerated and overwritten — contracts and generated libraries
Scaffold Created only if missing — safe for hand-written handlers and adapters

Read GENERATED.md in the output for a map of paths and ownership.

What generation does not do

  • It does not invent missing domain rules — complete Aggregates, Projections, and Business Actions in the model first.
  • It does not replace your package manager files; merge dependency hints from .dddesigner/generated-dependencies.json yourself.
  • Chronacta contracts appear only when codegen.eventstore is chronacta. Local Chronacta Compose needs a separate deployment flag. Product overview: Chronacta.

Next steps

  • Modeling — fix the model before generating again
  • Working with AI — fetch selected generated files through MCP

Open DDDesigner

Create a workspace and apply these steps in a live project.

Start free