@gomani/runtime@1.2.0
npm size budget3.4 KB / 5.0 KB ✓
@gomani/runtime
start() resumes islands just-in-time — on hover, viewport entry, idle, interaction, or media — so unreached code is never downloaded or executed (which also conserves battery). start({ resume: true }) resumes in place without a flash. A throwing island restores its server HTML instead of escaping, so siblings and the shell are unaffected.
API
start
function
start(options?: { resume?: boolean }): void
Boot the client: attach island resumption by their declared strategies. resume: true binds to existing server DOM in place.
mount
function
mount(node: GomaniNode, target: Element): () => void
Reactively render a node into the DOM — one effect per signal/attribute, no diff. Returns a disposer.