$ cat README.md
Birth Story
Offline-first, installable PWA for tracking labour, feeding, sleep, and newborn care, with multi-device sync.
#nextjs#react#typescript#indexeddb#supabase#pwa



Overview
A compact, mobile-first app built for the moments when you have one free hand and no signal: timing contractions, logging labour events, then tracking feeds, diapers, and sleep once the baby arrives. Both partners can share a session across their own devices.
How it’s built
- Offline-first sync. Every event is written to IndexedDB (Dexie) first and queued in an outbox. When the device is online, the outbox pushes to the server, and the app pulls changes from other devices using a server-timestamp cursor.
- Optional end-to-end encryption. Event contents are encrypted with AES-GCM through WebCrypto before they leave the device. A second device joins by scanning a QR code that carries the key, so the server never sees it.
- Installable PWA. Next.js with a service worker and manifest, so it installs to the home screen and behaves like a native app.