@creatica/schema
v0.1.0
Published
Machine-readable catalog of Creatica backgrounds: parameter schemas, style cards, palette moods, request validation and brief-based suggestions.
Readme
@creatica/schema
The AI-legible layer: what each background looks like and how to drive it.
params.ts— every parameter with type, range, step, and the visual effect of low/high values; per-structure narrowing ofshapeType/shapePositionmirrors the editor.cards.ts— hand-written style cards for all 58 structures: mood, use cases, text-safe area, tips, and what generic knobs mean for this generator.palettes.ts— mood tags derived from the colours (dark, pastel, vivid, warm, cool, …).index.ts—describe(),styleCard()(Markdown),jsonSchemaFor(),catalog(),normalizeRequest()(coerces strings, clamps ranges, drops unknown keys with warnings),suggest(brief).
The parameter set per structure is derived: a key is honoured iff it appears in the structure's info.ts defaults — the same rule the editor uses to show a control.
yarn workspace @creatica/schema verify verifies every structure has a card and the normaliser round-trips.
