How simonoppowa/opennutritracker works
OpenNutriTracker is a private, on-device nutrition and activity tracker. The main workflow is to set up a profile, derive calorie and macro goals, find or scan food, log meals, and review daily and longer-term nutrition. The graph also preserves documented capabilities for recipes, exercise, weight, water, fasting, portability, and theming. Most Flutter feature implementations were not sampled, so those links reflect README statements; the Android workout bridge is supported by the sampled native source.
Main entry points: add_meal Food search and scan · diary Food diary · edit_meal Meal logging · import_workouts_usecase.dart Workout import
Components 24
Goals and setup
- Profile setup
lib/features/onboarding - Goal calculations
lib/core/utils/calc - Profile management
lib/features/profile
Food and diary
- Food search and scan
lib/features/add_meal - Food details
lib/features/meal_detail - Meal logging
lib/features/edit_meal - Food diary
lib/features/diary - Recipes
lib/features/recipes - Daily overview
lib/features/home - Nutrition trends
lib/features/trends
Activity and wellness
- Activities
lib/features/add_activity - Workout import
lib/core/domain/usecase/import_workouts_usecase.dart - Weight history
lib/core/data/repository/weight_log_repository.dart - Water tracking
lib/core/data/repository/water_intake_repository.dart - Fasting timer
lib/features/fasting
Storage and platform
- Android health bridge
android/app/src/main/kotlin/com/opennutritracker/ont/opennutritracker/MainActivity.kt - Health Connect reader
android/app/src/main/kotlin/com/opennutritracker/ont/opennutritracker/HealthConnectWorkoutReader.kt - Import and export
lib/core/utils/csv_data_exporter.dart - Encrypted local data
lib/core/utils/hive_db_provider.dart - Themes and units
lib/core/styles/app_theme.dart
Other components
- User
- Open Food Facts
- USDA FoodData
- German BLS
Connections 25
- User → Profile setup: sets up
README.md - Profile setup → Goal calculations: provides profile
README.md - Goal calculations → Daily overview: sets targets
README.md - User → Food search and scan: finds or scans
README.md - Food search and scan → Open Food Facts: searches
README.md - Food search and scan → USDA FoodData: searches
README.md - Food search and scan → German BLS: searches
README.md - Food search and scan → Food details: opens food
README.md - Food details → Meal logging: logs food
- User → Meal logging: quick-adds
README.md - Meal logging → Food diary: records meals
README.md - Food diary → Daily overview: summarizes day
README.md - Food diary → Nutrition trends: feeds history
README.md - User → Recipes: creates recipes
README.md - User → Activities: logs activity
README.md - User → Workout import: imports workouts
README.md - Workout import → Android health bridge: requests sessions
- Android health bridge → Health Connect reader: calls reader
android/app/src/main/kotlin/com/opennutritracker/ont/opennutritracker/MainActivity.kt - Health Connect reader → Workout import: returns sessions
- User → Weight history: logs weight
README.md - User → Water tracking: logs water
README.md - User → Fasting timer: starts timer
README.md - User → Import and export: imports or exports
README.md - Food diary → Encrypted local data: keeps diary
README.md - User → Themes and units: chooses theme
README.md