Editor tour
The Widget Creator has a left rail to switch surfaces, a centre pane that changes with the surface, and a live preview on the right. A console sits along the bottom.
Add a screenshot of the Widget Creator with the three panes and the surface rail labelled.
The surface rail
The rail switches between these surfaces:
| Surface | What you do there |
|---|---|
| Files | Write your widget's code, templates and styles. |
| Properties | Define the controls a streamer configures. See Property schema. |
| Bindings | Choose the live stream events your widget reacts to. See Event bindings. |
| Assets | Upload images and sounds and give them names to use in code. |
| Settings | Catalogue info, canvas size, fonts and editor preferences. |
| Simulate | Fire fake events and set test property values to exercise your widget. |
Files
A code editor with a tab per file. A widget has three kinds of file:
- Code (
.ts): your logic. Exactly one file is the core (the entry point), where you callonLoad(...),showTemplate(...)and register your bindings. - Templates (
.tsx): React components that draw the widget. Each file becomes a member ofTemplate(main.tsx→Template.Main), which you show withshowTemplate(Template.Main). - Styles (
.css): scoped CSS. Your properties are exposed as CSS variables, e.g.var(--accent-colour).
Edits rebuild the preview after a short pause. The code API is in The @widget runtime.
Live preview
The right pane renders your widget and rebuilds as you edit. Zoom with the controls or scroll, and drag the divider to resize it. It uses your current Simulate property values.
Settings modals
The Settings modals entry at the bottom of the Properties surface puts property groups on tabs in modals. See Settings modal.
Assets
Upload images and audio (up to 5 MB each), name each one, and reference it in code with asset('name'), which returns the asset's URL. The files travel with the widget when someone installs it.
Settings
- Catalogue: the name, icon, banner, description, category and author credit shown in the Workshop. See Publishing & sharing.
- Canvas: the widget's size. Fixed locks one size; freeform lets the streamer resize it, with min/max and aspect-ratio lock.
- Fonts: the platform fonts your widget uses, so they load on the overlay.
- Editor: your own preferences (indentation, editor font, theme). They don't affect the widget.
Simulate
- Fire events: pick an event, edit the JSON payload, and Fire it once or Burst it several times at an interval. Your bindings receive it as they would live.
- Set property values: give each property a test value.
See Event bindings for what each event carries.
The console
The console collects problems:
- Compile errors: your code didn't build.
- Runtime errors: your widget threw in the preview.
- Binding warnings: you used an event in code that you didn't declare in Bindings, or declared a binding nothing consumes.
It stays collapsed until the first problem. Filter by severity or source, and click a diagnostic to jump to the file.
Saving, building and publishing
The toolbar holds Save (stores your draft), Build (compiles it for testing on your own overlays) and Publish (releases your latest build to installers). See Publishing & sharing.