Hafiz Khalid · hmsk.life

Habit Tracker

A free habit tracker that keeps your data on your phone

For anyone building a few daily or weekly habits who does not want another account. Use it in the browser, export to Excel any time, or download the yearly spreadsheet instead.

Runs
In your browser
Signup
Not needed
Licence
MIT, open source
Topic
Everyday life
  1. 1.

    Use it free

    Open it in your browser. The first result needs no signup.

  2. 2.

    Run it yourself

    Open source under MIT. Take the code to your own server.

  3. 3.

    Stay in touch

    One email when it gets a new feature. Nothing else.

Screenshot of Habit Tracker in the browser, with example data: Tick habits in one tap, see streaks and review your week. Or use the yearly spreadsheet. (open the full-size image)
Fig. 1: Habit Tracker with example data.

What it does

  1. Tick today in one tap (or with keys 1 to 9). Each habit is daily or N days a week, and weekly targets count the weeks you met.
  2. Current and best streak per habit, completion % this week and this month, and a 12-week heatmap.
  3. Month grid of habits × days: tap any past day to fill in what you forgot.
  4. Weekly review: the last week at a glance and a note on what got in the way.
  5. Export your real data to Excel (.xlsx) or CSV, and back up or restore everything as one JSON file.
  6. Yearly spreadsheet for Excel, LibreOffice and Google Sheets: type the year and up to 10 habits once, and every month sheet fills in its dates, % and streaks.

Why I built it

I track my own habits in a spreadsheet because it is the one tool I open every day anyway. On my phone, though, a spreadsheet is fiddly, so I built the same idea as a small browser app: one tap per habit, the streak right next to it, and a short look back each week. The spreadsheet got better along the way, and both are here for free.

Hafiz

Limits. Your habits stay in your browser on this device. Nothing is sent to a server, so download a backup now and then.

Run it on your own server

Static files, no build step and no database: any web server works. The spreadsheet generator needs Python 3 with openpyxl.

Stack
HTML, JavaScript; Python (openpyxl) for the spreadsheet
Licence
MIT
git clone https://github.com/Shazi1212/hmsk-habit-tracker.git

Also for everyday life

Newsletter

Hear when Habit Tracker gets better.

One email when Habit Tracker or another tool gets a real update. A few times a year, no tracking.