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. They cannot access the network or the filesystem arbitrarily.
Portability
Scripts are compiled to a standard WebAssembly format and stored as blobs. They can then be loaded into a space and run on any device.
Trust
The space owner can decide which documents—and therefore which scripts—are loaded into a space. Scripts run with the permissions of the document they are attached to: they can modify their own scene, but not others unless explicitly granted access.