Goldziher / Goldziher/interface-forge
Feature: Factory Presets and Traits
- Dominant language
- TypeScript
- Stars
- 102
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
## Focused Scope
Add a small presets/traits API for named partial overrides and ordered composition.
## Proposed v1
- Register named presets on a factory.
- Apply one or more presets during build/batch.
- Later presets override earlier presets.
- Explicit build overrides win over presets.
- Keep the implementation sync-first; async behavior should only be added if it naturally fits `buildAsync()`.
## Out of Scope
- State machines or lifecycle transitions.
- Discriminated-union specialization.
- ORM-style association presets.
- A broad variants framework.
Existing `extend()`, `compose()`, kwargs, and hooks already cover many variant use cases; this issue should focus only on the missing named-preset ergonomics.
Contributor guide
Assessment
This issue has not been assessed yet.