Derived Modular Arch
Guides

Guides

Practical how-tos: migration, module wiring, DMA on different frameworks.

Guides are the "how to do it" for a specific stack. Concepts explain the rules; here you get step-by-step patterns with live examples from the DMA repository.

Haven't read the basics? Start with Quick start and Project layout.

Where to start

By framework

Each guide uses the same mini-shop with a different composition root:

GuideComposition rootExample in repo
Vite + Reactsrc/app/Runnable canon
Next.jssrc/app/App Router + RSC
Astrosrc/pages/ + src/app/.astro frontmatter
SvelteKitsrc/routes/Svelte 5 runes
Vue + Vitesrc/app/SFC + composables

All examples pass dma check — sources live in examples.

Common across stacks

  • Routes stay thin — import only from */public/*
  • No feature → feature
  • services/ is created on promotion, not upfront
  • CI: dma check + linter of your choice

On this page