What it is
A desktop app for time tracking and activity monitoring. It records keyboard and mouse activity and takes screenshots while someone works, groups everything into ten-minute windows, and sends those windows to a backend that builds a work diary and shows how the day went.
The problem
A time tracker is only worth what it doesn't lose. Connections drop, laptops go to sleep, apps get closed at the wrong moment, and some people would rather look busy than be busy. The app had to keep recording through all of that, and the numbers had to hold up when someone looked at them later.
What I built
- An Electron app in React and TypeScript, with native modules for activity tracking and screenshots
- Ten-minute windows as the unit for everything the app records
- An offline mode that keeps tracking into a local SQLite database and syncs it all with the backend when the network comes back
- A NestJS and GraphQL backend that builds the work diary and the performance views from those windows
- Checks for activity that's only there to trick the tracker
The interesting parts
Offline is the normal case
On the web, a dropped connection is an error message. On the desktop it's a Tuesday. When the network goes, the app keeps tracking and writes each window to SQLite on the machine. When it comes back, everything that piled up is synced with the backend in one go, so a day with a bad connection still ends up as a full day in the diary.
Ten-minute windows
Activity counts, screenshots and time all land in the same ten-minute window. That one unit is what the app stores, what it syncs and what the backend reads, so the work diary and the performance numbers are built from exactly the same pieces.
People who try to trick it
Some users try to make the software think they're working when they aren't. Part of the job was telling real activity from activity that was only there to fill the diary, so the numbers meant something.