plexus-ui-engine
The plexus-ui engine, engine/1: what a page boots. Since FRAME-12 it is a
host with the rhx runtime as its first profile.
- The host (
transport,live,swap,router,bus,module): the page's one socket, thelivecollections shared by spec, the versions and hot-swap, the sections and their assignments, the router, and the bus every mounted component speaks through —callandliveheld to itsuses,emit/on,navigate,slots.set. - The rhx runtime (
tree,folds,html): anrhx/1component's view tree drawn against the DOM and its handlers run as Rhai folds. - Modules: a component of any other profile is an ES module
(
components/<name>.js) exportingmount(target, { props, bus }) → { update, destroy }, imported throughjs/host.js— the host's JS face, shipped besideengine.jsin every bundle, holding no state.
Built to wasm32-unknown-unknown with --features dom (then
wasm-bindgen-cli --target web → engine.js / engine.wasm, which imports
./host.js); natively for its tests (cargo test -p plexus-ui-engine: a
recording renderer, a fake wire, a manual clock; tests/bus.rs the bus).
npm test at the repository's root draws it in Chromium, an rhx component
beside a module written by hand among its cases. CONTRACT.md's "The host"
and "Modules" are its contract.