Playground
Every recorded response in the course, in one place. Replay one as a stream and watch the interface assemble, or switch to Edit and change the program yourself. The inspector shows what the runtime sees at each moment.
What is simulated
No model is called. The responses are recorded OpenUI Lang outputs, replayed character by character. The tools (get_weather, list_todos, add_todo, toggle_todo, delete_todo) are fake functions in this page with a short delay. The parser, validation, state, Query, Mutation and actions run in a teaching simulator that implements a subset of @openuidev/react-lang 1.0.1 and draws a handful of stock components as plain HTML. The real thing renders the full component library with React.
The workbench
This response is a patch for Edit: the first response. On its own, half its references are unresolved. An app in edit mode merges it into the previous program with mergeStatements.
What the simulator covers
- Parsing: the full grammar, the streaming parser that rebuilds the tree on every chunk, hoisting,
meta.unresolved,meta.orphanedand the validation error codes with their real messages. - Components drawn:
Stack,Card,CardHeader,TextContent,Callout,Tag,TableandCol,BarChart,LineChartandSeries,Form,FormControl,Input,TextArea,Select,ButtonandButtons, plus two custom components,WeatherCardandUnitToggle. The real stock library has 95. - Runtime:
$variablesand reactive props, the built-in@functions,Querywith defaults and automatic re-fetch,Mutationstatus,Actionplans that halt when a mutation fails, and theActionEventthat reachesonAction. - System prompt: the real section headings in the real order, with long bodies abridged. Token counts are estimates (characters divided by four).
- Sim-only aids: grey skeletons where a reference has not streamed in yet (the real parser drops it), and a dashed outline on the statement still being written.
Each lesson says where the subset stops. To see the real packages run, use the labs in the repository's openui/ folder.