Skip to content

How it works

How stackchain works

YamlParser reads stackchain.yaml (or flutter_starter legacy root). PresetRegistry.expand applies presets; explicit keys win.

ProjectGenerator orchestrates init:

  1. Flutter app detection
  2. Config load
  3. Feature directories
  4. Template writes (app / router / core / features / modules)
  5. Pubspec dependency merge
  6. Default YAML write if missing
  7. Stock test cleanup
  8. Lockfile
  9. Quality gate
Concern Mechanism
App shell, core, features on init Dart template classes
`make page widget
Custom org generators .stackchain/bricks

See Smart merge. Hand code outside // <stackchain:…> markers is preserved. State/routing/DI migrate rewrites presentation (and bootstrap/app/router/DI); domain/data survive unless architecture itself changes.

.stackchain/lock.yaml records the stack fingerprint for upgrade/migrate awareness.

doctor and post-generate gates verify structure and security baseline; strict_quality can fail on analyze.