Composition recipes
Patterns
How the building blocks compose into live behaviour: the signed interactive-HTML event runtime, deferred and reactive regions over one SSE stream, and real-time collaboration — each a configuration choice on the same architecture, never a second system.
Patterns
The composition model: parts
Components compose primitives through declared parts: #[UiPart] binds a primitive, #[ProvidesUiPart] computes its props, and props resolve in a fixed order.
Patterns
Signed event runtime: interactive HTML
Components declare backend events with #[UiOn]; the server emits a signed manifest and one tiny runtime posts matching events to a single dispatch endpoint.
Patterns
Live regions: deferred and reactive slots
A page region is a resource with its own pipeline. Mark it deferred and it streams in as server HTML; add an interval and the server keeps re-rendering it.
Patterns
Shared live form
Two people edit one document: field deltas broadcast live over the page's single SSE feed, with echo suppression so the field you type in is never clobbered.