Skip to content

Clean Architecture

stackchain:
architecture: clean

Identical directory layout to Feature First:

lib/features/<name>/
data/…
domain/…
presentation/…
  • Familiar Clean Architecture vocabulary (entities, use cases, repositories)
  • Same generator path as feature_first — low migration friction between the two labels
  • Does not invent a separate hexagonal/ports folder tree
  • Discipline is still yours — stackchain scaffolds; deeper architecture linting is on the roadmap

Teams that standardize on “clean” naming in RFCs/reviews. Functionally close to feature_first.

stackchain:
preset: clean_cubit