Coatcheck
Coatcheck is a component workbench platform for Topcoat.
It provides reusable contracts for Storybook-style Topcoat tooling: stories, typed props, controls, scenes, catalog validation, viewports, and surfaces. A Coatcheck application supplies its production components and exposes them in an isolated canvas.
Cold Front is the first reference application. Its components remain game-specific; Coatcheck remains reusable.
Status
Coatcheck is experimental and tracks Topcoat's early-stage development. The
0.1 line establishes the public data model while the manager, story
discovery, CLI, and test runner are developed.
Define a catalog
use ;
const LABEL: ArgType = ArgType ;
const STORIES: & = &;
const CATALOG: Catalog = new;
assert!;
assert_eq!;
Current guarantees
- Story IDs are unique.
- Prop names are unique within each story.
- Required story metadata is present.
- Choice controls declare at least one option.
- Catalog lookup does not require allocation.
- Story kinds distinguish playgrounds, named states, matrices, scenes, and docs.
- Default viewport, surface, and scene contracts are available.
License
MIT