Install and run
Build Frond from source and start the local server and dashboard.
Frond builds from source. You need Rust (stable), Node 22 with npm, and Chromium for the test runner (Playwright installs it).
Build
From the repository root:
npm install
npm -w web run build # dashboard into web/dist
npm -w runner run build # test runner into runner/dist
npx playwright install chromium-headless-shell # browser the runner launches
cargo build --release -p petal --features embed-web # binary with the dashboard embedded
Without embed-web, petal serve serves web/dist from disk, or the folder you pass with --web-dir.
Run
petal serve --open
This serves the dashboard and API on http://127.0.0.1:7777 and opens it in your browser.
On first start Frond creates ~/.petal/config.toml with your person token and prints a login link (/login?token=…) to stderr. The database defaults to ~/.petal/petal.db; change it with --db or PETAL_DB. The config file and test evidence live next to the database.
petal serve also starts the local test runner and restarts it if it exits. See Browser tests for the runner flags.
Register a project
From the project’s folder:
petal project add my-app
Or let the agent do it with petal_setup create_project. Then connect an agent.
Development
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo audit