Issue №26 · 2026July 22, 2026iameberhard.com
Back to the journal

Side Projects

A driver time tracker I actually use

I built a tiny clock-in / clock-out app for my driver, replacing a paper log. It computes overtime, weekly totals, and a payroll-ready export — all in about 600 lines of code.

EEberhard1 min read

The problem

My driver works variable hours — weekday baseline, weekend rates, the occasional holiday at premium pay. Tracking that on paper meant a lot of small math errors at month-end.

Manual time and wage tracking on paper — error-prone month-end math.

What I built

A single-page app with two buttons: Clock in and Clock out. Behind it, a Postgres table of shifts and a settings row with the wage rules. The page shows:

  • This week totals (baseline hours, OT hours, total)
  • A full month table you can scroll
  • An export button that drops a CSV ready for me to hand him

A clean clock-in / clock-out app with weekly totals, a scrollable month table, and CSV export.

The stack

Next.js, Postgres, Docker Compose. Hosted on the same Pi as this blog, on a different subdomain via the same Cloudflare Tunnel.

Self-hosted on a Raspberry Pi — Docker containers alongside a Postgres database.

It is small. It is mine. It works.

Filed under

next.jspostgressmall-tools