Technical Project
Health Hub
I built a private, mobile-first progressive web app that unifies offline workout logging, four-week meal rotations, kitchen inventory, calendar scheduling, and permission-scoped AI agent access. Self-hosted across five hardened Docker services, the app keeps workouts and grocery lists usable without cell signal while gating every agent-proposed change behind an in-app approval inbox.
The problem
Existing fitness and kitchen apps split daily routines across disconnected silos: gym loggers lock APIs or rest alerts behind subscriptions, recipe apps lack lot-based freezer and thaw tracking, and giving AI assistants direct write access risks silent data corruption or privacy leaks across shared household accounts.
How I approached it
I architected a shared TypeScript domain layer used across the UI, validated REST endpoints, and a stateless Streamable HTTP MCP server. On iOS Home Screen installs, a service-worker shell, IndexedDB store, and idempotent add-only mutation queue keep gym logging and grocery trips working offline, while a self-hosted WebAssembly ZXing build handles camera barcode scans without third-party CDNs. Household kitchens share stock and shopping state while keeping personal workouts, logs, calendars, and agent connections strictly isolated.
Inside the build
- Built an OAuth 2.1 / PKCE Model Context Protocol (MCP) server exposing 26 tools across 7 granular scopes, routing all agent writes and reconciled receipt line items through a transactional human-approval inbox.
- Engineered an offline-first mobile workflow with IndexedDB persistence, idempotent add-only sync queues, versioned conflict resolution, Screen Wake Lock recovery, and VAPID Web Push rest-timer alerts.
- Modeled lot-based kitchen inventory, buy-ahead grocery reservations, thaw schedules, and offline-capable camera barcode scanning via a local WebAssembly ZXing detector paired with Open Food Facts and USDA lookups.
- Integrated CalDAV (iCloud) and Google Calendar scheduling that proposes nonconsecutive training windows around busy events, adapts to travel timezones, and reconciles app-owned workout events.
- Deployed a five-container Docker stack (read-only filesystems, dropped Linux capabilities, isolated internal Postgres network, separate migration and runtime roles, and scheduled age-encrypted backups) behind Traefik and Cloudflare Tunnel.
The result
All six planned releases and a custom visual/scripted workout builder are live on private infrastructure, verified with Vitest domain and database suites alongside Playwright mobile E2E tests across WebKit and Chromium.
Where it stands
Intentionally hosted privately for personal use rather than offered as a public SaaS; live URLs are omitted.