May Zhan.
← Back to Portfolio

— Case Study

Private, Fully Local Time Tracker

PythonSQLiteFastAPIAndroidLocal-First

A fully local time tracker that captures computer, phone, calendar and call time automatically and categorises it by client with simple rules, so none of the data ever leaves my machine.

Private, Fully Local Time Tracker

The problem

I work across many clients and contexts: client work in separate Chrome profiles, coding sessions, calls, and phone time in between. Commercial time trackers either needed me to press start and stop, which I won't do reliably, or wanted to send my window titles to their cloud, which I won't do at all.

What I built

A personal time-tracking system that runs entirely on my own machine, with one SQLite database and one local dashboard. It captures automatically:

  • Computer foreground time every two seconds, per app and per Chrome profile
  • AI coding time per project, reconstructed from local session logs
  • Phone screen time, sleep and activity through a small Android companion app that syncs over the home network
  • Google Calendar events, which I confirm or skip
  • Calls and recordings, detected with no input from me

The dashboard's Balance view shows each day as a true 24-hour bar in which every minute belongs to exactly one source. Overlapping time is reported separately as multitasking, so a day can never add up to 25 hours.

Key decisions

  • Use a signal that already exists. I keep roughly one Chrome profile per client, so a simple rules file maps profiles to clients and categorises most billable time automatically.
  • Catching calls a normal tracker misses. During a call, the window in front is wherever you're taking notes, so calls looked like idle time. The tracker now reads which apps are holding the microphone and camera, giving call sessions accurate to the second.
  • Nothing is ever destroyed. Every removal is a soft delete with a restore option, and the database backs itself up every two weeks.
  • Self-healing. Watchdogs restart the tracker if it stops, and the dashboard shows a warning banner if computer or phone data goes stale.

Result

It's the tool I use most. Categorisation runs entirely on rules, with no AI involved, and anything the rules don't match lands in a review queue for me to sort with a click.

Want something like this for your business?

Let’s build AI and automation systems that actually move the needle.

Start a Project →