Open-Streak
Terminal activity heatmap, model breakdown, and cost tracker for OpenCode
Why This Was Built
Developers using OpenCode lack a lightweight, terminal-native way to track model usage split, daily API expenditures, and coding streaks across projects.
The Architectural Answer
A fast, zero-dependency TypeScript CLI that reads local OpenCode SQLite logs and renders WCAG AAA accessible activity heatmaps, model breakdowns, and project analytics directly in the terminal.
Key Features & Architecture
Technical Specifications
- Primary Languages
- TypeScriptSQLite
- Frameworks & Tooling
- Node.js (>=22.5.0)node:sqlite
- Architecture & Execution Model
- Zero native dependencies, built-in node:sqlite parser, WCAG AAA adaptive palette
- Licensing Model
- MIT (permissive)
- Release & Lineage
- Active release cycle since 2026 · Maintained by @JadMadi
Frequently Asked Questions
Does Open-Streak support both light and dark terminals?
Yes. It automatically detects terminal background luminance and renders adaptive ANSI colors with WCAG AAA contrast.
What are the runtime requirements to run Open-Streak?
Open-Streak requires Node.js >= 22.5.0 to use the built-in node:sqlite module without any native compiler dependencies.
Where does Open-Streak read data from?
It reads local SQLite data directly from ~/.local/share/opencode/opencode.db (or a custom path via --db). No data ever leaves your machine.
How do I run Open-Streak on-demand without installing?
Run it instantly using pnpm dlx open-streak or npx open-streak.