Skip to Content
OpenPerf

Getting started

Worktrees

Run several git worktrees side by side, each with its own databases and hostnames.

A worktree uses the stores of the main checkout and gets its own databases, bucket and hostnames.

Never run docker compose inside a worktree

Start the stores in the main checkout with docker compose up -d.

Commands

CommandRun
bun run wt:setupInside a new worktree. --no-seed skips demo telemetry; --days and --concurrency tune it. Safe to run again.
bun run wt:teardownBefore removing the worktree.
bun run wt:pruneTo drop the stores of worktrees that no longer exist.

What a worktree gets

ResourceIts own
PostgreSQLA database copied from the main one.
ClickHouseA database with 14 days of demo telemetry.
RedisA database.
Object storageA bucket.
HostnamesOne per service, see Hostnames.

Environment files

wt:setup copies each .env from the main checkout, or from .env.example, and writes a .env.local that points at the worktree's stores. It rewrites .env.local on every run: keep your own values in .env.

Hostnames

ServiceMain checkoutWorktree
webhttps://openperf.localhosthttps://<name>.localhost
apihttps://api.openperf.localhosthttps://api.<name>.localhost
api-ingesthttps://ingest.openperf.localhosthttps://ingest.<name>.localhost
mcphttps://mcp.openperf.localhosthttps://mcp.<name>.localhost

<name> is the worktree directory with a short hash, such as feat-auth-3fa2.

On this page