flow workflow viewer

Draws a flow graph bundle document: one member on the canvas at a time, each node a card whose kind rides a rail on its left edge and whose bindings split into an in and an out side, each gate a barrier standing on the line it interrupts, each loop bound a budget beside an unbroken one, and each workflow node a door on to the member it names. Read-only — nothing here edits a definition, and nothing is written back or sent anywhere.

1 · the flow-wasm module

Build it once, from the repository root, with wasm-pack build crates/flow-wasm --target no-modules --out-dir ../../pkg, which writes pkg/flow_wasm.js and pkg/flow_wasm_bg.wasm beside viewer/. The no-modules target is the one a file:// page can load: its glue is a classic script defining a wasm_bindgen global, and this document loads it from ../pkg/ ahead of its own scripts. Then pick pkg/flow_wasm_bg.wasm here — the page cannot read the bytes by itself over file://, so you hand them over.

no module loaded

2 · a graph bundle

The document flow graph bundle prints. Grant it once and this page re-reads it on its own for as long as it is open — a grant of the directory follows the run in .flow/state.json beneath it too, so a run advances on screen while it happens. Granting needs a browser that offers a re-readable handle; where there is none the page says so and the picker below still draws. A pasted document is drawn once and is not followed: there is no file behind it to re-read.

nothing granted yet

no bundle drawn

diagnostics

graph