How it works
1. You declare a stack
Section titled “1. You declare a stack”In stackchain.yaml (or a preset): architecture, state, routing, DI, network, features.
2. Commands generate & wire
Section titled “2. Commands generate & wire”| Command | What it does |
|---|---|
init |
Full app scaffold |
feature |
Add a feature + wire routes/DI |
test |
Unit / widget / integration tests |
sync |
Re-wire routes/DI only |
migrate |
Switch stack pieces |
upgrade |
Refresh dependencies |
3. Only marked regions are rewritten
Section titled “3. Only marked regions are rewritten”// <stackchain:routes>// …generated…// </stackchain:routes>
// <stackchain:custom>// …your methods — preserved across migrate…// </stackchain:custom>Code outside managed markers (and inside custom) is yours. Details: Your code stays safe.
4. Quality check
Section titled “4. Quality check”Every generate can run a health check (doctor). Optional strict_quality: true fails on analyze issues.