Apple Health Food Logging
Conversational food tracking that syncs to Apple Health. Log meals through Claude Code, data flows to Supabase, then automatically syncs nutrition data to Apple Health via iOS Shortcuts.
The Challenge
Existing food tracking apps are tedious—searching databases, scanning barcodes, manually entering portions. I wanted to just say what I ate and have it tracked.
The Approach
Built a conversational interface through Claude Code that logs food to a Supabase database. Created a Supabase Edge Function to calculate macro totals, then built an iOS Shortcut that pulls unsynced entries and logs them to Apple Health.
The Outcome
Natural language food logging that flows seamlessly into Apple Health. Say "bacon egg and cheese on a bagel" and it shows up in the Health app with accurate macros.
Key Details
- Supabase database with foods reference table and daily food log
- Edge Function calculates totals and handles sync state
- iOS Shortcut fetches unsynced entries via REST API
- Logs calories, protein, carbs, and fat to Apple Health
- Automated daily sync via iOS Shortcuts automation
- Built entirely through conversation with Claude Code