How sitialiani/lamakin-web-app works
LamakIn is a health-focused recipe assistant. Users authenticate, set a health profile, submit recipe text or a food photo for AI analysis, then review and save healthier recipe results. The app also offers fridge-ingredient suggestions and a recipe library with a cloud menu calendar, aggregated shopping list, and print-friendly views. The graph follows the sampled router, context, and service calls; calendar and shopping-list details are documented in the README but their implementation was not sampled.
Main entry points: GlobalContext.jsx Session and profile state · App.jsx Route and guard · supabase.js Cloud client · Library.jsx Saved recipes
Components 22
Application flow
- Route and guard
src/App.jsx - App layout
src/components/Layout.jsx - Navigation controls
src/components/Navbar.jsx - Accessibility settings
src/components/AccessibilityWidget.jsx
Recipe features
- Recipe input
src/pages/AnalyzeRecipe.jsx - Analysis results
src/pages/AnalysisResult.jsx - Fridge suggestions
src/pages/Fridge.jsx - Recipe dashboard
src/pages/Dashboard.jsx - Saved recipes
src/pages/Library.jsx - Menu calendar
src/pages/Library.jsx - Shopping list
src/pages/Library.jsx
Account and preferences
- Sign in
src/pages/Auth.jsx - Health setup
src/pages/SetupProfile.jsx - Health profile
src/pages/Profile.jsx - Session and profile state
src/context/GlobalContext.jsx - Language selection
src/hooks/useTranslation.js - Translation dictionaries
src/utils/translations.js
External services
- Recipe AI
src/services/gemini.js - Cloud client
src/services/supabase.js
Other components
- User
- Google Gemini
- Supabase cloud
Connections 37
- User → Route and guard: opens app
src/App.jsx - Route and guard → Session and profile state: provides state
src/App.jsx - Route and guard → Sign in: routes to
src/App.jsx - Route and guard → Health setup: routes to
src/App.jsx - Route and guard → App layout: wraps pages
src/App.jsx - Route and guard → Recipe input: routes to
src/App.jsx - Route and guard → Analysis results: routes to
src/App.jsx - Route and guard → Fridge suggestions: routes to
src/App.jsx - Route and guard → Recipe dashboard: routes to
src/App.jsx - Route and guard → Saved recipes: routes to
src/App.jsx - Route and guard → Health profile: routes to
src/App.jsx - App layout → Navigation controls: renders
src/components/Layout.jsx - App layout → Accessibility settings: renders
src/components/Layout.jsx - Sign in → Cloud client: uses auth
src/pages/Auth.jsx - Session and profile state → Cloud client: reads session
src/context/GlobalContext.jsx - Session and profile state → Cloud client: updates profile
src/context/GlobalContext.jsx - Cloud client → Supabase cloud: connects to
- Health setup → Session and profile state: saves profile
src/pages/SetupProfile.jsx - Health profile → Session and profile state: uses profile
src/pages/Profile.jsx - Accessibility settings → Session and profile state: saves settings
src/components/AccessibilityWidget.jsx - Recipe input → Recipe AI: requests analysis
src/pages/AnalyzeRecipe.jsx - Recipe AI → Google Gemini: generates response
- Recipe input → Session and profile state: uses profile state
src/pages/AnalyzeRecipe.jsx - Analysis results → Session and profile state: uses analysis state
src/pages/AnalysisResult.jsx - Analysis results → Cloud client: persists recipes
src/pages/AnalysisResult.jsx - Fridge suggestions → Recipe AI: requests suggestions
src/pages/Fridge.jsx - Fridge suggestions → Session and profile state: uses profile state
src/pages/Fridge.jsx - Recipe dashboard → Cloud client: loads recipes
src/pages/Dashboard.jsx - Recipe dashboard → Session and profile state: uses profile state
src/pages/Dashboard.jsx - Saved recipes → Cloud client: manages recipes
src/pages/Library.jsx - Saved recipes → Menu calendar: includes calendar
README.md - Saved recipes → Shopping list: aggregates ingredients
README.md - Saved recipes → Session and profile state: uses profile state
src/pages/Library.jsx - Language selection → Session and profile state: reads language
src/hooks/useTranslation.js - Language selection → Translation dictionaries: selects strings
src/hooks/useTranslation.js - Navigation controls → Session and profile state: uses session profile
src/components/Navbar.jsx - Navigation controls → Language selection: translates labels
src/components/Navbar.jsx