Personal performance dashboard for the terminal. Metrics-first, vim-flavored, SQLite-backed. Time-block your day from a pasted markdown table, watch streaks and XP climb, and a little ASCII buddy in the corner reacts to your score (rainbow flex at 100%).
- Node.js ≥ 18
- macOS/Linux (raw terminal mode required)
better-sqlite3builds from source — needs Xcode Command Line Tools on macOS
npm install
npm run devnpm install
npm run build
npm link # or: npm i -g .
focus-tracker # run it from any directoryThe database lives at ~/.focus-tracker/focus.db regardless of where you launch from.
better-sqlite3is a native module.npm linkdoes not rebuild it — after a Node upgrade runnpm rebuild better-sqlite3if you hit aNODE_MODULE_VERSIONmismatch.
Add --low-cpu (or :lowcpu in-app, or TERM=dumb) to disable animations.
Run with no arguments and you get the TUI. Run with a subcommand and you get JSON — no TTY needed, same database.
focus-tracker schema # full machine-readable command contract
focus-tracker task list --all --status todo
focus-tracker task add "Ship v2" --weight 3 --sub "write tests" --sub "cut release"
focus-tracker sub set 34 --done true
focus-tracker score --text # ████████░░░░ 62% (medium)
cat plan.md | focus-tracker import --view DailyEvery call prints one envelope — { ok, command, data } or { ok:false, command, error } —
and exits 0 or 1. --text swaps JSON for a human-readable rendering.
Point FOCUS_TRACKER_DB at a scratch file to work outside your real day.
Agents: read AGENTS.md, then call focus-tracker schema.
| Key | Action |
|---|---|
↑/↓ or j/k |
Navigate |
Tab |
Switch pane (Navbar ↔ TaskView) |
Space |
Toggle subtask complete |
Enter |
Expand/collapse task |
N |
New task (supports quick-add syntax — see below) |
n |
New subtask below selection |
e or i |
Edit selected (cursor: ←→, Ctrl+A/E, Ctrl+W, Ctrl+U) |
x |
Mark whole task done / reopen |
J / K |
Move task or subtask down / up |
d |
Delete selected (undoable) |
u |
Undo (multi-level) |
D |
Set deadline on task |
S |
Set time-of-day on task |
M |
Paste markdown / schedule table to import |
v / V |
Visual select / visual line mode |
G / gg |
Jump to bottom / top |
? |
Help cheatsheet |
: |
Open command palette |
q |
Quit |
When creating a task with N, embed metadata inline:
Dog walk @7:15-7:45 !tomorrow #2
@<time> → time-of-day · !<date> → deadline (today/tomorrow/+N/YYYY-MM-DD) · #<n> → weight.
| Command | Description |
|---|---|
:breakdown <goal> |
AI task breakdown (LLM) |
:paste |
Import pasted markdown / schedule table |
:prompts |
Copy a ready-made LLM prompt (schedule table, breakdown, weekly…) |
:stats |
Streaks, XP/level, 30-day sparkline, completion metrics |
:heatmap |
GitHub-style score calendar |
:pet |
Visit your buddy fullscreen |
:help |
Keybind + command cheatsheet |
:export [csv|json|md] |
Export all tasks to ~/.focus-tracker/exports/ |
:schedule <time> |
Set time-of-day on selected task (7:15 / 7:15-7:45 / 9:15+ / clear) |
:deadline <date> |
Set deadline (today / tomorrow / +N / YYYY-MM-DD / clear) |
:buddy <name|random> |
Switch the corner mascot (cat / dog / blob / robot) |
:buddy name <x> |
Name your pet |
:lowcpu |
Toggle reduced-motion / low-CPU mode |
:settings |
Show current settings summary |
:provider claude|gemini|ollama |
Switch LLM provider |
:theme <name> |
Load VSCode theme from /themes/ |
:pomodoro [work] [break] |
Start Pomodoro (default 25/5 min) |
:new view <name> |
Create new view/folder |
:delete view |
Delete current view |
:weight <n> |
Set task weight (0.1–10.0) |
:q |
Quit |
Paste a markdown table (press M) to time-block your day — each row becomes a task tagged
with its time window. See IMPORT_FORMAT.md (Format C). The active block shows a ▶ badge,
tasks auto-sort by time, and evening 12-hour times roll to PM automatically.
A small ASCII mascot lives in the navbar and changes expression with your day's score
(sleepy → sad → neutral → happy → ecstatic, plus a rainbow party at 100%). It reacts when
you finish a subtask, gets hungry when tasks go overdue, evolves as you level up, and sleeps
at night. Visit it fullscreen with :pet, name it with :buddy name <x>, switch species with
:buddy <name>.
Completing subtasks earns XP and levels; consecutive strong days build a 🔥 streak (shown in
the top bar, next to a live clock and — during a pasted schedule — the active time block with
minutes remaining). Open :stats for streaks/XP/sparkline/peak-hour, :heatmap for a score
calendar, :export to dump CSV/JSON/Markdown. Quiet all motion with :lowcpu.
Set env vars for your provider:
export ANTHROPIC_API_KEY=sk-... # Claude
export GEMINI_API_KEY=... # Gemini
# Ollama: run `ollama serve` locallyDrop any VSCode theme .json file into ./themes/ or ~/.focus-tracker/themes/, then:
:theme <filename-without-extension>
Stored at ~/.focus-tracker/focus.db (SQLite). Never deleted by updates.