
The widget editor: code on the left, live preview on the right.
What’s in the sandbox
Your widget’s iframe ships with:- Tailwind CSS: every utility class, no setup.
- GSAP 3.12 + TextPlugin: animation that doesn’t fight you.
fieldData: the values of your configurable fields, ready on your first line.StreamWizard.state: persistence between streams (state docs).- Transparent background: your widget composites over the stream.
allow-scripts only.
The four tabs
The event model
Four events reach your widget:onWidgetLoad: fires once, carriesfieldDataand session info.onEventReceived: every live event.detail.listeneris the event name,detail.eventthe payload. Full list: event reference.onFieldsUpdate: the streamer changed a setting while the widget runs.onSessionUpdate: reserved, currently unused.
e.detail. and read the menu.
