streak-cli
v1.0.4
Published
π₯ Track your terminal work streaks, commits, and stats
Maintainers
Readme
π₯ streak-cli
Track your terminal work streaks, commits, and stats. Stay motivated with daily streak tracking right in your terminal.
π₯ 5 day streak! π₯
βββββββββββββββββββββββββββββ
π₯ Current streak: 5 days
π Longest streak: 23 days
π
Total active days: 142
βββββββββββββββββββββββββββββ
π» Commits today: 12
π Total commits: 847
β¨οΈ Commands today: 87
βββββββββββββββββββββββββββββ
Mon Tue Wed Thu Fri Sat Sun
β
β
β
β
β
π² π²Install
npm install -g streak-cli
streak setupstreak setup automatically:
- Adds a shell hook to
~/.zshrcfor auto-tracking - Adds a π₯ streak counter to your prompt (if you use Powerlevel10k)
Then restart your terminal or run source ~/.zshrc.
Usage
streak # Show your current streak & stats
streak stats # Same as above (detailed view)
streak log # Log activity (done automatically by shell hook)
streak setup # Install shell hook + prompt segment
streak reset # Clear all data
streak help # Show helpPrompt Integration
If you use Powerlevel10k, streak setup adds a π₯ segment to your prompt automatically:
~/projects/myapp on main π₯5How It Works
- Every command you run gets logged via a
precmdshell hook - Git commits in the current repo are counted
- A "day" counts as active if you ran any commands or made commits
- Streaks are consecutive active days
Data
All data is stored locally in ~/.streak/:
activity.jsonβ daily activity logcurrent_streakβ cached streak count (used by prompt)
No data is sent anywhere. Everything stays on your machine.
Uninstall
npm uninstall -g streak-cliRemove the hook from ~/.zshrc and the segment from ~/.p10k.zsh (search for "Streak CLI").
License
ISC
