examples/
August 10, 2026 · View on GitHub
Example dspack files live in this directory. Examples are intended to help implementers and readers understand how the specification is applied in practice.
Current examples
shadcn-ui.dspack.json— a reference dspack file for the shadcn/ui component libraryastryx.dspack.json— a governed slice of Meta's Astryx design system (pinned v0.1.4; published on npm under the@astryxdesignscope): 12 components, categories mirroring Astryx's own docs taxonomy, and 14 rules converted from the repository's structured*.doc.mjsguidance and the studio's example-expansion governance, each rule with a provenance link (x-source). Notable: Astryx components are props-based (labels are required string props; tables and menus are data-driven array props) — a deliberately different idiom from shadcn's compound composition
The shadcn/ui example demonstrates the corpus concepts (tokens, components, patterns, anti-patterns, framework bindings), the v0.3 governance blocks (intents, rules, examples), and the v0.4 additions: 7 component categories, 26 required-props rules, 2 category-based forbidden-composition rules, and a requiredCategories rule (rule.form-control-carries-control). It validates against the v0.4 JSON Schema.