HabitFlow

Self-hosted habit tracker with streaks, GitHub-style heatmap calendar and weekly stats (React, Express, SQLite, Docker)

GitHubTypeScriptCSSJavaScriptHTMLDockerfile
๐Ÿ‘ 128 vuesGitHub sync: 10/16/2026
dockerhabit-trackerproductivityreactself-hostedsqlitestreaks

HabitFlow

Build better habits with streaks, stats, and motivation ๐Ÿ”ฅ

CI License: MIT

Features

  • Habit tracking โ€” Create habits with custom icons, colors, and frequencies
  • Streak system โ€” Automatic streak calculation with best streak tracking
  • Heatmap calendar โ€” GitHub-style 30-day completion heatmap
  • Weekly progress charts โ€” Bar charts showing weekly completion trends
  • Dashboard โ€” Today's habits, stats overview, and recent activity
  • One-click toggle โ€” Mark habits complete with a single click
  • SQLite storage โ€” Lightweight, file-based database
  • Docker-ready โ€” Full containerized deployment

Quick Start

Development

npm install
npm run dev          # Frontend on :5177
npm run dev:server   # API server on :3004

Docker

docker-compose up

Tech Stack

  • Frontend: React 18, Vite, TailwindCSS, Recharts, Lucide, date-fns
  • Backend: Express, TypeScript, better-sqlite3
  • Testing: Vitest
  • Deployment: Docker, Nginx

License

MIT