A terminal contribution chart for oh-my-pi usage data. Renders a GitHub-style calendar heat map colored by daily token activity, with a global leaderboard.
npx omp-streakRequires Bun and reads session files from ~/.omp/agent/sessions/ by default.
omp-streak # personal dashboard
omp-streak --weeks 26 # wider heatmap
omp-streak today # today's activity breakdown
omp-streak models # model usage breakdown (tokens, sessions, cost)
omp-streak projects # project usage breakdown
omp-streak cost # 30-day cost breakdown
omp-streak peak # most expensive day with top models/projects
omp-streak month # current month calendar view
omp-streak month 2026-05 # specific month calendar view
omp-streak rank # global leaderboard (all-time, top 20)
omp-streak rank day # daily leaderboard
omp-streak rank week # weekly leaderboard
omp-streak rank month # monthly leaderboard
omp-streak rank alltime --all # full all-time leaderboard
omp-streak @username # view a synced user's profile
omp-streak sync # sync local stats to leaderboard| Flag | Description |
|---|---|
--dir <path> |
Session directory (default: ~/.omp/agent/sessions) |
--weeks <n> |
Heatmap width, 4-104 (default: 52) |
--month [YYYY-MM] |
Show specific month calendar |
--json |
Output computed data as JSON |
--all |
Show full leaderboard instead of top 20 |
Sync your local stats to compete on the global leaderboard:
omp-streak syncOn first sync you'll be registered with your git username and a device keypair is generated at ~/.omp/streak.pem. GitHub token is optional but recommended for multi-device support.
API: https://pi-streak.gmleaked.workers.dev
- CLI (
src/cli/) — Reads oh-my-pi session JSONL files, computes stats, renders terminal UI - API (
src/api.ts,src/db.ts) — Cloudflare Worker with D1 database for leaderboard - Migrations (
migrations/) — D1 schema migrations
MIT