Diátaxis: Tutorial. Learning-oriented. One linear, hands-on path from a clean machine to a working dashboard. Copy-paste each step.
For task-specific recipes (scheduling, backup, persistent server, Docker, scripting YAML by hand) see How-to guides. For full CLI + file-layout detail see Reference.
uvuv is a Python toolchain installer. It handles Python itself,
dependencies, and the install of flowmetrics as a global command.
| Platform | One-liner |
|---|---|
| macOS | brew install uv |
| Linux | curl -LsSf https://astral.sh/uv/install.sh \| sh |
| Windows (PowerShell) | irm https://astral.sh/uv/install.ps1 \| iex |
uv --version should now print something.
uv tool install git+https://github.com/dvhthomas/flowmetrics
That puts a flow binary on your PATH (~/.local/bin/flow on
macOS/Linux). Confirm:
flow --version
# → flow 0.1.0 (or 0.1.0.devN+gSHA for an intermediate commit)
Prefer a source checkout?
git clonethe repo, thenuv tool install --force .from inside it. Either path ends with the same globalflowcommand.
flow reads PRs and issues via the GitHub API, which needs a token.
Easiest path:
gh auth login # interactive — pick GitHub.com, HTTPS, browser
Or set GITHUB_TOKEN directly to a fine-grained PAT with public
repo read scope. Public Jira (e.g. Apache) needs no token.
flow serve
# → http://127.0.0.1:8000
That’s it — flow creates the contracts/ and data/ directories
on demand. On macOS or Linux, swap flow serve for flow serve --bg
to install it as a persistent native service that survives logout
and reboot (details).
Open http://127.0.0.1:8000. The home page shows No workflows yet and a + New workflow button. Click it.
The wizard walks you through:
astral-uv)
and a friendlier label (Astral uv).astral-sh/uv for GitHub; <jira_url> +
project key for Jira. The wizard probes the source to discover
labels and stages so it can offer the right options at the next
step.Hit Save. The wizard writes to workflows.db and bounces you to
the workflow’s dashboard.
The dashboard shows the right shape but empty cards until the warehouse is populated. Click Data source (top-right).
You’ll see a coverage map for your window. Click Backfill to
materialize the workflow. The page polls flow materialize’s
status file under the hood; the bar fills as work_items + transitions
land in data/. A few seconds for a small window.
Click the workflow name to return to the dashboard. You’ll see:
Hover any dot for the underlying item + a link to its GitHub / Jira page.
flow metric throughput / cumulative
/ aging / cycle-time, flow forecast) →
Extract metrics for agents.