Skip to main content

Reference

The live runtime is installed as the global nexGui. Its public data and behavior contract has two roots:

nexGui
|-- state deeply frozen, JSON-serializable snapshots (data only)
`-- api callable namespaces grouped by domain (behavior only)

nexGui.state is data — every leaf is a value, never a function, and JSON.stringify(nexGui.state) produces a complete public runtime dump. nexGui.api is behavior — queries, predicates, and mutations.

Other runtime roots

The global also carries a small set of non-contract members:

PathTypeNotes
nexGui.versionstringRuntime version.
nexGui.mount(container)functionMounts the React shell into a DOM element.
nexGui.destroy()functionTears down bindings, stores, timers, and adapter resources.
nexGui.storesobjectInternal store bridge retained for host shell integration; not a stable public contract.
nexGui.debugobjectDiagnostics only.

There is no nexGui.events root. Event coordination uses the host eventStream — see the event reference.