DevTrack
Mission control for multi-repo development. Track SDLC state, content pipelines, and PR queues across all your projects from one dashboard.
Tech Stack
Built on context-kit:
- Framework: Next.js 16 (App Router, Turbopack)
- Language: TypeScript
- Database: PostgreSQL via Prisma (with
@prisma/adapter-pg)
- UI: Tailwind CSS 4, shadcn/ui, Radix UI, Lucide icons
- Data Fetching: SWR + reactiveSWR
- Testing: Vitest, Testing Library, FlowSpec (e2e)
- Linting/Formatting: Biome
- Validation: Zod
- Logging: Pino
- Deployment: Docker, Kubernetes (OVH Cloud)
- CLI: Auto-generated from OpenAPI spec via swagger-jack
Installation
DevTrack is distributed as a Claude Code plugin. Install it once and use slash commands in any registered project.
# Install the plugin
claude plugin install devtrack
# In your project directory, run setup
/devtrack:setup
/devtrack:setup registers the current repository, installs git hooks for automatic event tracking, and configures Claude Code hooks for session tracking.
Slash Commands
| Command | Description |
|---|
/devtrack:setup | Register the current repo and install git/Claude hooks |
/devtrack:status | Show current project status (branch, open PRs, active PRD) |
/devtrack:dashboard | Display cross-project dashboard summary |
/devtrack:sync | Force-sync project state (PRDs, PRs, events) with DevTrack API |
/devtrack:prs | List open pull requests across all tracked projects |
Getting Started
Prerequisites
- Node.js 20+ (tested on 24)
- pnpm 10+
- PostgreSQL 14+ (Docker is easiest — see below)
Running locally (verified)
All commands run from web/.
-
Start Postgres. The repo ships a Postgres service in web/docker-compose.yml:
cd web
docker compose up -d postgres # postgres 17 on localhost:5432
The app service in that compose file targets a Traefik/OVH deployment and
is not needed (or wanted) for local dev — start only postgres and run
the app on the host as below.
-
Create web/.env (gitignored). The DB creds match the compose file; pick
any value for the API key:
DATABASE_URL=postgresql://dev_track:dev_track@localhost:5432/dev_track
DEVTRACK_API_KEY=devtrack-local-dev-key
NEXT_PUBLIC_DEVTRACK_API_KEY=devtrack-local-dev-key
-
Install deps, sync the schema, generate the client:
pnpm install
pnpm exec prisma db push # creates tables (this project uses db push, not migrations)
pnpm exec prisma generate
-
Start the dev server:
pnpm run dev
- Dashboard:
http://localhost:3100
- API:
http://localhost:3100/api/v1
- Smoke test:
curl -s http://localhost:3100/api/health
# {"status":"healthy","database":"connected",...}
curl -s -H "X-Api-Key: devtrack-local-dev-key" \
http://localhost:3100/api/v1/status/all
# {"data":{"generated_at":...,"project_count":0,"projects":[]}}
Auth (local): every /api/v1/* request needs the key via Authorization: Bearer <key>
or X-Api-Key: <key>. Both the DevTrack API and the CLI use DEVTRACK_API_KEY
(the legacy DEVTRACK_TOKEN is still accepted by the CLI as a fallback, with a
deprecation warning).
Auth (production — Cloudflare Access native): the deployed app
(devtrack.theaiteam.dev) sits behind a Cloudflare Zero Trust Access
application, so credentials are handled at the edge:
- Browsers log in via Cloudflare (GitHub). Cloudflare forwards a signed
Cf-Access-Jwt-Assertion header, which the API verifies against the team
JWKS (aud/iss/exp) — see web/lib/cf-access.ts. No API key is shipped
to the browser (the public image omits NEXT_PUBLIC_DEVTRACK_API_KEY).
Enabled by the CF_ACCESS_TEAM_DOMAIN + CF_ACCESS_AUD env vars; unset =
disabled (local dev unaffected).
- Machine clients (the CLI, hooks) send a Cloudflare Access service
token via
CF-Access-Client-Id / CF-Access-Client-Secret. The Go CLI
sets these automatically when ACCESS_CLIENT_ID and ACCESS_CLIENT_SECRET
are both present in the environment; local dev (localhost) needs neither.
Env-less setup (recommended for hooks): every credential can live in
~/.devtrack/config.yaml instead of the environment, so hooks fired from
contexts without your shell profile (Claude Code sessions launched from
stale shells, cron, GUI launchers) still report. Environment variables win
when both are set:
devtrack config set api_url https://devtrack.example.com/api/v1
devtrack config set token "$DEVTRACK_API_KEY"
devtrack config set access_client_id "$ACCESS_CLIENT_ID"
devtrack config set access_client_secret "$ACCESS_CLIENT_SECRET"
Agent / brief integration