How noeylovecatholy/well-buddy works
WellBuddy is a React Native family wellness app with a small OTP/password backend. The main user flow enters through the app navigator, completes authentication and a health profile, then uses nutrition, hydration, family, and notification features backed by Firebase. The graph preserves major capabilities visible in the tree and README; some screen-to-service wiring and backend internals are not shown, so those relationships are omitted rather than inferred.
Main entry points: app.js App navigation · firebase.js Firebase services · foodLogService.js Food logs · notificationCenterService.js Notification center
Components 33
App and access
- App navigation
app.js - Authentication screens
- Authentication service
authservice.js - Health profile flow
- Survey profiles
surveyService.js
Health tracking
- Food and scan screens
- Nutrition insights
InsightsScreen.js - Food logs
foodLogService.js - Water tracking
waterLogService.js - Nutrition calculations
nutritionCalculator.js - Pantry and recipes
PantryScreen.js - Recipe details
RecipeDetailScreen.js - Fridge inventory
fridgeService.js - Menu service
menuService.js - Ingredient photos
ingredientPhotoService.js - Food analysis
geminiService.js
Family and alerts
- Family screens
- Family management
familyService.js - Notifications
NotificationScreen.js - Notification center
notificationCenterService.js - Notification rules
notificationRules.js - Device notifications
notificationService.js
Data and services
- Firebase services
firebase.js - Language context
LanguageContext.js - Translations
appI18n.js - OTP client
otpService.js - OTP backend
backend/index.js
Administration
- Admin screens
AdminDashboard.js - Admin web tools
admin/js - Seed data
seedService.js
Other components
- App user
- Resend email
- Firebase Admin SDK
Connections 39
- App user → App navigation: opens app
app.js - App navigation → Authentication screens: routes to
app.js - App navigation → Health profile flow: routes to
app.js - App navigation → Family screens: routes to
app.js - App navigation → Recipe details: routes to
app.js - App navigation → Notifications: routes to
app.js - App navigation → Language context: provides context
app.js - Authentication screens → Authentication service: calls
- Authentication screens → Survey profiles: checks profile
- Health profile flow → Survey profiles: saves profile
surveyService.js - Family screens → Family management: calls
- Family screens → Family management: loads details
- Family screens → Food logs: loads member logs
- Family screens → Survey profiles: loads profile
- Recipe details → Food logs: records food
RecipeDetailScreen.js - Recipe details → Menu service: uses menu
RecipeDetailScreen.js - Recipe details → Fridge inventory: uses inventory
RecipeDetailScreen.js - Recipe details → Ingredient photos: loads photos
RecipeDetailScreen.js - Nutrition insights → Food logs: reads nutrition
- Food logs → Water tracking: gets water stats
foodLogService.js - Notification center → Family management: reads family data
notificationCenterService.js - Notification center → Food logs: reads daily logs
notificationCenterService.js - Notification center → Notification rules: uses rules
notificationCenterService.js - Device notifications → Notification rules: uses rules
notificationService.js - App navigation → Device notifications: configures alerts
app.js - Language context → Translations: translates
LanguageContext.js - Notification center → Translations: translates messages
notificationCenterService.js - Authentication service → Firebase services: uses auth and data
authservice.js - Survey profiles → Firebase services: reads and writes
surveyService.js - Family management → Firebase services: reads and writes
familyService.js - Food logs → Firebase services: reads and writes
foodLogService.js - Water tracking → Firebase services: reads and writes
waterLogService.js - Fridge inventory → Firebase services: stores inventory
fridgeService.js - Notification center → Firebase services: stores alerts
notificationCenterService.js - OTP client → OTP backend: calls API
- OTP backend → Resend email: sends OTP email
README.md - OTP backend → Firebase Admin SDK: changes password
README.md - Admin screens → Firebase services: uses backend data
AdminDashboard.js - Seed data → Firebase services: writes sample data
seedService.js