Skip to content

oldschoola/omp-streak

 
 

Repository files navigation

omp-streak

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.

Install

npx omp-streak

Requires Bun and reads session files from ~/.omp/agent/sessions/ by default.

Usage

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

Options

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

Leaderboard

Sync your local stats to compete on the global leaderboard:

omp-streak sync

On 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

Architecture

  • 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

License

MIT

About

Bun terminal contribution chart for pi agent session usage

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 99.7%
  • JavaScript 0.3%