Solution developer's guide
What Pulse widgets are and how to build them with bricksui.
Pulse widgets are small dashboard cards that fetch their own data. Each widget is a JSON spec written in the Pulse widget DSL. You build them with bricksui:
code
/bricksui <Figma link, screenshot or short description>bricksui asks you a few questions, shows a preview, then gives you the widget JSON. Every result is checked by its built-in reviewer before you see it.
What a spec looks like#
code
{
"component": "Stack",
"$data": {
"tickets": { "@connector": "rest", "@config": { "url": "/api/tickets" } }
},
"props": {
"children": [
{ "component": "Text",
"#each": { "source": "$data.tickets", "as": "t" },
"props": { "children": "$t.title" } }
]
}
}component: what to showprops: its settings, includingchildren$data: where the data comes from (root only)@on: what happens on click, change or data load#if/#each: show or hide a node, or repeat it for each item
The one rule#
Tip
Don't give bricksui more than it can digest. One widget per ask, one change at a time, and only the fields the widget needs.
Work with bricksui slowly, one piece at a time. Small steps get careful, detailed work. Big asks make it rush.
In this guide#
- Build a widget: the steps with bricksui.
- Ask bricksui well: how to write asks and answer its questions.
- Example: a complex app: a full conversation, built up step by step.
- Best practices: rules for fast, clean widgets.
- What the DSL can't do: so you don't ask for things that can't be built.
- Checklist: check the JSON before you use it.