Native SwiftUI iOS app for tracking daily nutrition, workouts, and body measurements — with Claude AI food/label recognition, OpenFoodFacts barcode scanning, Apple HealthKit sync, and Dynamic Island Live Activities.
- Meal logging (4 input paths)
- Photo recognition: snap a meal to identify the food and estimate portion weight via Claude vision (
AIService). - Nutrition label OCR: photograph package labels in English or German (
Eiweiß/Fett/Kohlenhydrate), auto-normalising kJ → kcal and per-serving → per-100g. - Free-text parsing: enter descriptions like
"3 eggs, 2 tomatoes, splash of olive oil"to split into macro-scored items. - Barcode & search: camera barcode scanner backed by OpenFoodFacts (3M+ EU/DE products), Edamam search, and a Saved Products library.
- Photo recognition: snap a meal to identify the food and estimate portion weight via Claude vision (
- Daily dashboard: calorie ring, tap-to-inspect Protein / Fat / Carbs macro rings with per-food breakdown sheets, Apple Watch TDEE energy balance, and hydration tracking.
- Gym & body tracking: active workout timer, sets/reps/weights with formatted clipboard export, body measurements (weight, body fat %, chest/waist/hips/neck/bicep/thigh), and weekly history charts.
- Apple ecosystem:
ActivityKitDynamic Island & Lock Screen Live Activity showing live calories, macros, and water.WidgetKitHome Screen widgets sharing theSwiftDatastore via App Groups.AppIntentsSiri Shortcuts ("Log food in NutriSnap").- Bidirectional
HealthKitsync (writes nutrition, water, weight, body fat; reads active + basal calories burned).
- Cloud sync: optional multi-user persistence with Supabase (
profiles,daily_logs,saved_products,body_measurements,gym_sessions).
NutriSnap/ Main SwiftUI app (Views, ViewModels, Services, AppIntents)
NutriSnapShared/ Shared SwiftData models, NutritionCalculator, ActivityAttributes
NutriSnapWidget/ WidgetKit + Dynamic Island Live Activity extension
Config.swift.example API keys template (copy to NutriSnap/Config.swift)
Requires macOS with Xcode.
git clone https://github.com/chilldanil/NutriSnap.git
cd NutriSnap
cp Config.swift.example NutriSnap/Config.swift
open NutriSnap.xcodeproj- Fill in your Claude, Edamam, and Supabase keys in
NutriSnap/Config.swift(gitignored). Barcode scanning via OpenFoodFacts and local SwiftData tracking work without API keys. - Select your Development Team under Signing & Capabilities for
NutriSnapandNutriSnapWidget(and update the App Group identifier if needed). - Build and run (
⌘R) on Simulator or device.