BehavTest

BehavTest › Reference

Dashboard: browse, compare and label runs

behavtest serve                  # http://127.0.0.1:4800/
behavtest serve --open --port 5000 --db path/to/results.db

A local web dashboard on your results database, for looking around rather than gating CI. Runs still start from the CLI or CI; the dashboard reads what they saved.

It is one plain page with no external assets, in light and dark themes, served by Node's own HTTP server (no extra dependencies). The only thing it writes is your labels. Its JSON API (/api/v1/runs, /api/v1/runs/<id>, /api/v1/compare?base=&head=, /api/v1/trend?suite=, /api/v1/calibration, /api/v1/labels) is available to scripts on the same machine.

Security: it listens on 127.0.0.1 only by default. It refuses requests whose Host is not localhost, an IP address or the host you started it with (so a web page cannot reach it through DNS rebinding), refuses label changes sent from other sites, and serves a strict Content-Security-Policy. There is no login: --host 0.0.0.0 makes your runs (inputs, outputs, traces) readable by anyone who can reach the port, and BehavTest prints a warning when you do it.