Published on

A simple habit tracker

Authors

The idea

This weekend project was initiated at the request of a friend who needed a solution to track instances where he faced the choice of either succumbing to or resisting certain situations. The purpose was to enable him to monitor the severity of his 'symptoms' over time, specifically how frequently he experienced the impulse to engage in a negative habit, as well as how often he successfully overcame those impulses.

habittracker4

I'm particularly fond of app ideas that don't require user authentication. They evoke a sense of nostalgia for the early days of the internet when user data wasn't treated as a commodity. It's reminiscent of a time when fun and exploration were the primary driving forces behind online experiences.

habittracker5

Features

It has a few simple features:

  • Edit the red and green button texts.
  • Edit the counts.
  • A graph with day, week and month filters.
  • Ability to export/import data from local storage to backup or transfer your data to another device.

Libraries etc.

It is built using:

  • React
  • TailwindCSS
  • React Charts
  • Vite

And deployed to Vercel.

Try it out

https://www.simplehabittracker.com

The code

https://github.com/andersravn/habittracker