Skip to content

eddmann/baby-tracker

Repository files navigation

Baby Tracker

A shared baby tracking PWA for logging sleep, feeds, nappies, and pumping sessions.

I originally used Jeeves (my AI assistant) to help manage baby tracking through conversational commands. It worked well, but I wanted something with a dedicated UI that I could share with my wife and iterate on independently from the assistant itself.

Built so two parents can track everything from their phones with no accounts — just a shared PIN.

Screenshots

Dashboard Feed Timer History

Features

  • Sleep — start/pause/resume/stop timer, duration tracking
  • Feeds — breast (timer with left/right side), formula (ml), expressed (ml)
  • Nappies — one-tap logging: wet, dirty, or both
  • Pump — timer with amount (ml) on stop
  • Daily Tasks — recurring to-dos with configurable frequency and start dates
  • Dashboard — time-since cards, active timers visible to both users, quick-add sheet
  • History — daily timeline, weekly summary stats

Architecture

Client

React + Redux Toolkit + React Router SPA with an iOS-inspired design system (Tailwind CSS).

  • UI and routes in src/
  • API client in src/lib/api.ts

API

Cloudflare Workers + Hono + D1 SQLite with layered architecture and manual dependency injection:

  • Routes: worker/routes/ (HTTP handlers, Zod validation)
  • Use cases: worker/usecases/ (business logic)
  • Repositories: worker/repositories/ (interface + D1 implementations)
  • Timer logic: worker/utils/timer.ts (elapsed time with pause support)

Timer state is server-authoritative — both users see active timers via dashboard polling.

Development

make start             # Install deps, migrate, run dev server
make can-release       # CI gate — lint + test
make build             # Build for production

Run make to see all available targets.

Database

make db                # Reset + migrate local
make db/remote         # Migrate remote

Deployment

make ship              # Typecheck, build, migrate remote, deploy

License

MIT License

About

Shared baby tracking PWA - sleep, feeds, nappies, and pumping with a simple PIN login

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages