engineering · web
LegalTrack
Automatic billable-time tracking for legal work. A Chrome extension records browser activity, rules match it to clients and matters, and confirmed time becomes a draft invoice.

Key figures
- 19
- 60 s
- 5 min
Write-up
A Chrome extension (Manifest V3) tracks browser activity and sends it to the API every 60 seconds. Rules match activity to clients and matters, and the app turns the matches into billable suggestions that the user accepts or dismisses. Confirmed time becomes a draft invoice, and everything is stored in PostgreSQL.
How it fits together.
- A Next.js 15 front end (App Router, TypeScript) talks to an Express API backed by PostgreSQL.
- The web app signs in with JWT. The extension does not take a password: the user generates a one-time pairing code in the web app, which expires after 5 minutes, and the extension exchanges it for a token.
- Resend sends an email when a draft bill is ready.
- It runs locally with Docker Compose. The documented free deployment is Vercel for the front end, Render for the API and Neon for Postgres, and the front end is live. The API sleeps when idle on the free tier, so the first request can be slow.
Scope. Version one is browser-only. Native desktop tracking for Word and Adobe was prototyped and is archived in the repository.
Built with
- Next.js 15
- TypeScript
- Express
- PostgreSQL
- Chrome extension (Manifest V3)
- Docker
- Resend