CLI habit tracker backed by git — commit your daily habits, track streaks, and generate stats. Zero infra, zero cloud, just a repo.
- JavaScript 100%
|
|
||
|---|---|---|
| .gitea/workflows | ||
| src | ||
| tests | ||
| .gitignore | ||
| cli.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
🐾 Git Habit Tracker
Track your daily habits using git commits. Zero infrastructure, zero cloud — just a repo.
Why?
Your commit history becomes your habit journal. git log = your life log. git blame = accountability.
Install
npm install -g .
# or just: npm link
Usage
habit init # Initialize in current directory
habit add exercise 💪 Workout # Add a habit
habit done exercise # Complete today
habit list # Show all habits
habit stats # Show streaks & stats
habit log exercise # Show history
habit streaks # Visual streak display
How It Works
Habits are stored as JSON in .habits/:
.habits/config.json— tracker metadata.habits/habits/<name>.json— habit definitions.habits/log/<name>.jsonl— completion log (one JSON line per day)
Tests
npm test
Features
- ✅ Add/remove habits
- ✅ Daily completion tracking
- ✅ Streak calculation (current + longest)
- ✅ Stats per habit
- ✅ Visual streak display
- 🔜 Git auto-commit on
done - 🔎
git logintegration
Built by Ti-Paul 🇯🇲🐧 for the Clankeurs