Skip to main content

Globals

Lifecycle events

All three arrive as DOM CustomEvents on window.

onWidgetLoad

Fires once when the widget mounts.

onEventReceived

Every live event. detail.listener names the event, detail.event is the payload. The full catalog with exact payload shapes lives in the event reference.

onSessionUpdate

Reserved. Nothing emits it today; don’t build on it.

Bundled libraries

  • Tailwind CSS via CDN: use utility classes directly in your HTML.
  • GSAP 3.12.5 + TextPlugin: timelines, easings, text animation.
No other external scripts load, and the sandbox blocks adding your own script tags from other origins. fetch() works against the StreamWizard state API, your media library files, and the weather/geocoding APIs used by IRL widgets.

The editor knows all of this

The JS tab autocompletes every global, event name, and payload field on this page. When in doubt, type e.detail. and read what comes up.