Habit Tracker

Track daily habits and streaks, saved in your browser.

🔒 Saved only in this browser (localStorage) — no account, and nothing is sent to any server.

Habit Streak

Add a habit above to start tracking.

How Habit Tracker works

How does the habit tracker work?

You add a habit by name, and the table shows a checkbox for each of the last 7 days, computed fresh from today's date every time the page runs. Checking a box adds that date string to the habit's completedDates array and immediately persists the full list to localStorage under the key toolbox-habit-tracker. The streak column counts consecutive completed days backward from today — but if today isn't checked off yet, it starts counting from yesterday instead, so an in-progress streak doesn't look broken before the day is over.

When would I use this?

It fits simple daily habits like drinking water, exercising, or reading — anything where checking a box once a day and watching a streak count is enough accountability, without needing reminders or an app install.

Does my history sync across devices, and how far back does it go?

Data lives only in that browser's localStorage, so it won't follow you to another device or browser, and clearing site data erases it permanently since there's no backend copy. The visible table only shows the last 7 days, but completed dates further back stay in the stored array and still count toward the streak calculation.