Scripts
Objects in The Wired can carry behavior with them in the form of WebAssembly scripts. These scripts run when an object is loaded into a space, animating it, responding to interaction, and communicating with its environment.
Scripts are sandboxed. They can only interact with the scene through defined interfaces — creating and moving nodes, reading physics state, responding to events. They cannot access the network or the filesystem arbitrarily.
Portability
A script is compiled to a standard WebAssembly format and stored as a blob. It runs identically on any client that supports The Wired. The behavior of an object does not depend on the server or engine hosting the space.
Determinism
Scripts interact with the scene through the same CRDT layer as manual edits. A script that moves a node produces the same kind of change as a person dragging it. This means scripted changes sync across users and can be undone like any other edit.
Trust
The space owner decides which objects — and therefore which scripts — are loaded into a space. Scripts run with the permissions of the object they are attached to: they can modify their own object, but not others unless explicitly granted access.