Widget packages
The app has 42 Input and Viz Bricks built in (Dagboards). Others come in a widget package: a file that holds one widget, an input or a visualization. A dagboard's Input or Viz Brick picker lists your workspace's packages beside the built-in ones.
Ask the assistant for one
With an AI set up (The assistant and your key), the assistant makes a widget for you, as a package of your workspace's own:
- while editing a dagboard, its Input or Viz Brick picker asks the assistant for a new one: say what it should take or show, and choose Ask. The picker then lists the widget, for you to add;
- or choose Make's Input Brick or Viz Brick, in the sidebar, and describe it in the prompt, then add it to a dagboard from its picker. Without a prompt, they open this page.
The app doesn't install packages from a package registry or from a file you pick. A bundle or a repo that carries a package lists it before you import or trust it.
It runs in a sandbox
Each widget from a package runs in a sandboxed frame of its own. It gets only its own slot's values, its settings and the app's colours and fonts, and it can't reach your data, your AI key or the network. What it sends back is checked against the outputs it declares.
What a package holds
-
widget.json, its manifest: the package's name, version, licence and source repository, and the widget as data, with its kind, its inputs, its outputs and its settings. - One script, a classic script with no imports, with any library it uses bundled in.
- A stylesheet, if it needs one.
The script draws the widget in its frame and talks to the app over a message port: it gets its values, its box's size and the theme, and sends its outputs back. A widget that uses the theme's CSS variables looks right in light and dark.
Next: Bundles and export