Developers
Build on Lightair
Drive a running Lightair from your own apps and agents, or extend it with packages that people install from a catalog.
Control Lightair
Your code runs anywhere and talks to Lightair over its local server. Every change it makes can be undone.
Remote APIScenes, objects, audio, outputs and events over JSON-RPC 2.0ws://…:4455/rpcMCP serverTools for AI agents; going live always asks the person…:4455/mcpCommand lineOne call from a shell script, answered as JSONlightair callobs-websocket toolsStream Deck, Touch Portal and bots work unchangedws://…:4455/
Extend Lightair
Your code ships in a package and runs inside Lightair, with only the permissions the person grants.
What a package can hold
Code that runs inside Lightair runs only in Lightair Desktop. See Packages for every kind.
| Content | You write | What happens |
|---|---|---|
| Scenes, media, avatars, sounds, LUTs, automation recipes | Files and JSON | Nothing runs: Lightair adds them to your show |
| Widgets | HTML, CSS, JavaScript | Runs in Lightair’s web view, reaching only the hosts it declares |
| Script plugins | JavaScript | Runs in its own isolate inside Lightair Desktop, with a memory and time budget |
| Helpers | Any language | Runs as a sandboxed process of its own, beside Lightair Desktop |
Your first widget
Full widget guide →1Describe the package
{ "id": "com.example.thanks", "name": "Thanks", "version": "1.0.0", "lightair": ">=1.1 <2", "contents": [{ "kind": "widget", "path": "widgets/thanks" }]}2React to events
// Called for every chat message and alertlightair.on("event", (e) => { if (lightair.kindOf(e) !== "follow") return; show(`Thanks, ${e.user.display_name}`);});3Check it and build it
lightair-pack check thankslightair-pack build thanks# → thanks-1.0.0.airpkgInstall the .airpkg in Lightair. To test without real viewers, turn on Placeholder in the widget’s Inspector.