Technical spec
Struct makes experience surfaces portable.
One capsule can define landing pages, calculators, article trees, and app-like flows — all sharing the same typed contract.
What Struct solves
Struct packages routes, blocks, text, data, capabilities, and SEO into one deterministic envelope.
- Typed capsule contract
- Machine-readable spec endpoint
- Publish-safe for agents
Runtime lifecycle
The runtime normalizes a path, resolves the matching route and locale, then dispatches blocks into renderer surfaces.
- Route match
- Locale fallback
- Renderer dispatch
Validation posture
Invalid capsules should fail before publish. Schema errors, missing block references, and invalid SEO references block release.
- Strict schema checks
- Reference validation
- Deterministic IDs
Agent publishing
Struct is written for humans and agents: predictable IDs, explicit publish gates, and stable endpoint versions make automation safe.
- Generate
- Validate
- Publish