plexus-ui-engine 0.2.3

The plexus-ui engine — signals, live() over Plexus streams, the view tree over a renderer, Rhai folds, sections, hot-swap
Documentation

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, the live collections shared by spec, the versions and hot-swap, the sections and their assignments, the router, and the bus every mounted component speaks through — call and live held to its uses, emit / on, navigate, slots.set.
  • The rhx runtime (tree, folds, html): an rhx/1 component'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) exporting mount(target, { props, bus }) → { update, destroy }, imported through js/host.js — the host's JS face, shipped beside engine.js in 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.