How mazenabid/tastebud works
TasteBud is a mobile food-and-symptom diary that helps users investigate possible allergy and intolerance triggers. The main workflow is onboarding and allergy declaration, recording meals and reactions, then reviewing suspected foods and cross-reactivity insights; users can also search foods and manage a personalized unsafe-food list. The mobile app calls a Node API backed by MongoDB. The graph captures documented UI, service, and analysis responsibilities; several screen-to-service and API-to-server links are not shown in sampled source and are therefore omitted or marked unverified.
Main entry points: AppNavigator.tsx App navigation · analysisService.js Suspected-food analysis · index.js HTTP server · reactionService.js Reaction analysis
Components 29
Mobile app
- App providers
mobile/App.tsx - App navigation
mobile/src/navigation/AppNavigator.tsx - Onboarding screens
mobile/src/screens/onboarding - Allergy declaration
mobile/src/screens/onboarding/AllergyDeclarationScreen.tsx - Meal diary
mobile/src/screens/home/MealLogScreen.tsx - Food library
mobile/src/screens/home/FoodLibraryScreen.tsx - Cross-reactivity view
mobile/src/screens/home/CrossReactivityScreen.tsx - Symptom insights
mobile/src/screens/home/SymptomAnalysisScreen.tsx - Profile and reports
mobile/src/screens/home/ProfileScreen.tsx - Authenticated API client
mobile/src/services/apiClient.ts - Mobile authentication
mobile/src/services/authService.ts
API and domain
- HTTP server
server/index.js - Authentication routes
server/routes/authRoute.js - Authentication controller
server/controllers/authController.js - Authentication service
server/services/authService.js - Meal log routes
server/routes/mealLogsRoute.js - Meal log controller
server/controllers/mealLogsController.js - Meal log service
server/services/mealLogService.js - Reaction routes
server/routes/reactionRoute.js - User records
server/models/user.js
Analysis and data
- Reaction analysis
server/services/reactionService.js - Suspected-food analysis
server/services/analysisService.js - Pattern detectors
server/services/patternDetectors - Ingredient catalogue
server/models/ingredients.js - Meal records
server/models/mealLogs.js - Reaction records
server/models/reaction.js - Unsafe-food records
server/models/unsafeFoods.js
Other components
- Food diary user
- Verification email
Connections 29
- Food diary user → App providers: uses
- App providers → App navigation: renders
mobile/App.tsx - App navigation → Onboarding screens: routes to
mobile/src/navigation/AppNavigator.tsx - App navigation → Meal diary: routes to
mobile/src/navigation/AppNavigator.tsx - App navigation → Food library: routes to
mobile/src/navigation/AppNavigator.tsx - App navigation → Cross-reactivity view: routes to
mobile/src/navigation/AppNavigator.tsx - App navigation → Symptom insights: routes to
mobile/src/navigation/AppNavigator.tsx - App navigation → Profile and reports: routes to
mobile/src/navigation/AppNavigator.tsx - Mobile authentication → Authenticated API client: sends requests
mobile/src/services/authService.ts - Authenticated API client → HTTP server: calls API
- HTTP server → Authentication routes: mounts routes
server/index.js - HTTP server → Meal log routes: mounts routes
server/index.js - HTTP server → Reaction routes: mounts routes
server/index.js - Authentication routes → Authentication controller: dispatches
server/routes/authRoute.js - Authentication controller → Authentication service: delegates to
server/controllers/authController.js - Authentication service → User records: reads and writes
server/services/authService.js - Authentication service → Verification email: sends verification
server/services/authService.js - Meal log routes → Meal log controller: dispatches
server/routes/mealLogsRoute.js - Meal log controller → Meal log service: delegates to
server/controllers/mealLogsController.js - Meal log service → Meal records: reads and writes
server/services/mealLogService.js - Reaction routes → Reaction analysis: dispatches
server/routes/reactionRoute.js - Reaction analysis → Meal records: reads meals
server/services/reactionService.js - Reaction analysis → Reaction records: reads reactions
server/services/reactionService.js - Reaction analysis → Unsafe-food records: reads unsafe foods
server/services/reactionService.js - Suspected-food analysis → Meal records: reads meals
server/services/analysisService.js - Suspected-food analysis → Reaction records: reads reactions
server/services/analysisService.js - Suspected-food analysis → Unsafe-food records: updates suspected foods
server/services/analysisService.js - Suspected-food analysis → Ingredient catalogue: uses ingredients
server/services/analysisService.js - Suspected-food analysis → Pattern detectors: runs detectors
server/services/analysisService.js