Presets¶
Kyn v2 ships starter presets through kyn init --preset.
Available Presets¶
web-ui¶
Best for component-driven frontend repos.
Tracks:
- component source files
- Storybook stories
- component tests
Command:
kyn init --preset web-ui
api¶
Best for backend/API services with handler or service layer tests.
Tracks:
- Go handler/service source files
- Go test files
Command:
kyn init --preset api
proto¶
Best for protobuf-first repos that need generated artifact sync.
Tracks:
.protocontract files- generated Go protobuf output
Command:
kyn init --preset proto
iac¶
Best for Terraform-style infrastructure modules.
Tracks:
- Terraform source files
- module
README.md
Command:
kyn init --preset iac
Recommended Workflow¶
- Generate the nearest preset:
kyn init --preset <preset> - Adjust glob patterns and kin templates for your repo.
- Run:
kyn check --dry-run-resolve - Add CI with one of the examples from ci.md.