Tutorial: turn a workflow into a dashboard
Export Dashboard turns a workflow's charts, tables, images, text, graph views, 3D scenes and KPI tiles into a small React web app. It also writes a standalone Python backend, so the people looking at the dashboard can change parameters and press Recalculate to re-run the real workflow.
We'll use dashboard/dashboard_parameters_demo.weave from the demo project.
For the full list of options, panel types and settings, see the
Dashboards reference.
1. Mark what the viewer can change
Open the demo. Its inputs come from Dashboard Parameter nodes (in the Display category). Each one has these fields:
- Name: the key the dashboard uses. It must be unique and a valid identifier.
- Label: the text shown next to the control.
- Type:
float,int,str,boolorselect. This decides the control: a number box or slider, a text box, a checkbox or a drop-down. - Default, plus Min / Max / Step for numbers or Options for
select. Fields that don't apply to the chosen Type are hidden. The exported backend enforces these limits.
In the editor a parameter just emits its Default, so the workflow runs normally. Wire it into whatever should depend on it. A parameter that isn't connected to anything that appears on the dashboard changes nothing the viewer can see, and the export dialog warns you about it.
2. Add a title and notes (optional)
A Dashboard Text node (Display category) puts a heading, description or note on the dashboard. Type Markdown into its Text field, or wire a string in. Leave Title blank for a plain block of text with no card title.
3. Export
- Click Export Dashboard in the toolbar (the bar-chart icon).
- A layout dialog lists every node that can become a panel. For each one,
choose whether to include it and its size: Small (1×1),
Wide (2×1), Large (2×2) or Full width. Panels appear in canvas
order, left to right and top to bottom. Your choice is saved in the
.weave, so it's waiting for you next time. - Pick an output folder.
EdgeWeave runs the workflow once to capture the panels, then writes the
dashboard and, alongside it in backend/, the standalone backend. The
summary lists any nodes that couldn't become panels, and any credential
fields that were left out (see below).
4. Run it
Open two terminals in the export folder. First, the backend, which needs Python:
cd backend
pip install -r requirements.txt
uvicorn main:app --port 8800
Then the dashboard, which needs Node.js 18 or newer (the current LTS is a good choice; older versions fail with errors such as Unexpected token '??='):
npm install
npm run dev
Open the address npm run dev prints. Change a parameter and click
Recalculate. The backend re-runs the workflow with the new value (only
declared parameters can change) and the panels update. Tick
Auto-recalculate to re-run automatically shortly after each change instead.
When you reopen the page, the controls show the last values anyone ran with, not the values from export time. Reset puts them back to the defaults.
npm run build produces a static bundle in dist/ for any static web host.
Without the backend, the dashboard still shows the exported snapshot.
Good to know
- Credentials stay behind. Password, token and API-key fields are blanked
in the export, and
.envfiles aren't copied. Set the listed environment variables (for examplePGPASSWORD,OPENAI_API_KEY) before starting the backend. - Data files are copied. The export includes your project folder, including CSVs and SQLite databases. Check them before sharing an export.
- Only what's needed is bundled. The backend gets just the node files your
workflow uses, plus any marketplace module that provides one of its nodes, and
a
requirements.txtlimited to the packages those files import. - Sharing it beyond your own machine? Set an API key and the other protections described in the reference first.
- A different port or address: put
VITE_BACKEND_URL=http://localhost:9000in a.envfile next topackage.json.
Next: Chat and RAG.