# rudyp30/yummeze architecture

> Architecture diagram of the GitHub repository rudyp30/yummeze, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rudyp30/yummeze
- Repository: https://github.com/rudyp30/yummeze

## Overview

Yummeze is an iOS meal-journaling app: a user records categorized meals with photos and captions, then browses them in a feed or calendar and views profile statistics. The app also supports email-code sign-in, profile onboarding, avatar management, and appearance settings. Meals and their image files are local in the shown implementation, while identity and profile data use Supabase. Some domain views and service implementations are unsampled; edges below are limited to relationships visible in excerpts, the source index, or its documented implementation notes.

Main entry points: [`Meal/SessionStore.swift`](https://github.com/rudyp30/yummeze/blob/main/Meal/SessionStore.swift) (Session State), [`Meal/RootTabView.swift`](https://github.com/rudyp30/yummeze/blob/main/Meal/RootTabView.swift) (Tab Shell), [`Meal/RootView.swift`](https://github.com/rudyp30/yummeze/blob/main/Meal/RootView.swift) (Root Routing), [`Meal/MealCard.swift`](https://github.com/rudyp30/yummeze/blob/main/Meal/MealCard.swift) (Meal Card)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App Flow"]
  node_app["App Bootstrap<br/>[YummezeApp.swift]"]
  node_routing["Root Routing<br/>[RootView.swift]"]
  node_tabs["Tab Shell<br/>[RootTabView.swift]"]
end

subgraph group_meals["Meal Journaling"]
  node_capture["Meal Capture"]
  node_camera["Camera Picker<br/>[CameraPicker.swift]"]
  node_mealmodel["Meal Model<br/>[Meal.swift]"]
  node_feed["Meal Feed<br/>[MealFeedView.swift]"]
  node_card["Meal Card<br/>[MealCard.swift]"]
  node_calendar["Meal Calendar<br/>[CalendarView.swift]"]
end

subgraph group_identity["Identity"]
  node_profileview["Profile Screen<br/>[ProfileView.swift]"]
  node_settings["Settings<br/>[SettingsView.swift]"]
  node_session["Session State<br/>[SessionStore.swift]"]
  node_welcome["Welcome Screen<br/>[WelcomeView.swift]"]
  node_codeentry["Code Entry"]
  node_onboarding["Profile Onboarding"]
  node_authui["Auth UI<br/>[AuthUI.swift]"]
  node_authservice["Auth Service<br/>[AuthService.swift]"]
  node_profileservice["Profile Service"]
  node_profilemodel["Profile Model<br/>[Profile.swift]"]
end

subgraph group_platform["Data and Presentation"]
  node_images[("Image Store<br/>[ImageStore.swift]")]
  node_loadedimage["Loaded Image<br/>[LoadedImage.swift]"]
  node_supabase["Supabase Client"]
  node_theme["Theme System<br/>[Theme.swift]"]
  node_mealicon["Meal Type Icon<br/>[MealTypeIcon.swift]"]
end

node_user(("User"))
node_cloud[("Supabase")]

node_user -->|"launches"| node_app
node_app -->|"shows"| node_routing
node_routing -->|"resolves state"| node_session
node_routing -->|"shows signed-out"| node_welcome
node_routing -->|"shows onboarding"| node_onboarding
node_routing -->|"shows ready"| node_tabs
node_user -->|"uses tabs"| node_tabs
node_tabs -->|"opens capture"| node_capture
node_tabs -->|"shows feed"| node_feed
node_tabs -->|"shows calendar"| node_calendar
node_tabs -->|"shows profile"| node_profileview
node_capture -->|"presents camera"| node_camera
node_capture -.->|"saves photos"| node_images
node_capture -.->|"creates meals"| node_mealmodel
node_feed -->|"renders meals"| node_card
node_card -->|"displays meal"| node_mealmodel
node_card -->|"renders photos"| node_loadedimage
node_loadedimage -->|"loads image"| node_images
node_calendar -->|"reads meals"| node_mealmodel
node_calendar -->|"renders meals"| node_card
node_profileview -->|"opens settings"| node_settings
node_profileview -->|"queries meals"| node_mealmodel
node_profileview -->|"reads identity"| node_session
node_settings -->|"updates account"| node_session
node_welcome -->|"opens code entry"| node_codeentry
node_codeentry -->|"verifies code"| node_session
node_onboarding -->|"completes profile"| node_session
node_onboarding -->|"prepares avatar"| node_images
node_session -->|"loads profile"| node_profileservice
node_session -->|"holds profile"| node_profilemodel
node_authservice -->|"uses client"| node_supabase
node_profileservice -->|"reads and writes"| node_supabase
node_profileservice -->|"decodes profile"| node_profilemodel
node_supabase -->|"queries and uploads"| node_cloud
node_app -->|"configures appearance"| node_theme
node_card -->|"shows category"| node_mealicon

click node_app "https://github.com/rudyp30/yummeze/blob/main/Meal/YummezeApp.swift"
click node_routing "https://github.com/rudyp30/yummeze/blob/main/Meal/RootView.swift"
click node_tabs "https://github.com/rudyp30/yummeze/blob/main/Meal/RootTabView.swift"
click node_capture "https://github.com/rudyp30/yummeze/blob/main/Meal/MealCaptureView.swift"
click node_camera "https://github.com/rudyp30/yummeze/blob/main/Meal/CameraPicker.swift"
click node_mealmodel "https://github.com/rudyp30/yummeze/blob/main/Meal/Meal.swift"
click node_images "https://github.com/rudyp30/yummeze/blob/main/Meal/ImageStore.swift"
click node_feed "https://github.com/rudyp30/yummeze/blob/main/Meal/MealFeedView.swift"
click node_card "https://github.com/rudyp30/yummeze/blob/main/Meal/MealCard.swift"
click node_loadedimage "https://github.com/rudyp30/yummeze/blob/main/Meal/LoadedImage.swift"
click node_calendar "https://github.com/rudyp30/yummeze/blob/main/Meal/CalendarView.swift"
click node_profileview "https://github.com/rudyp30/yummeze/blob/main/Meal/ProfileView.swift"
click node_settings "https://github.com/rudyp30/yummeze/blob/main/Meal/SettingsView.swift"
click node_session "https://github.com/rudyp30/yummeze/blob/main/Meal/SessionStore.swift"
click node_welcome "https://github.com/rudyp30/yummeze/blob/main/Meal/WelcomeView.swift"
click node_codeentry "https://github.com/rudyp30/yummeze/blob/main/Meal/CodeEntryView.swift"
click node_onboarding "https://github.com/rudyp30/yummeze/blob/main/Meal/OnboardingView.swift"
click node_authui "https://github.com/rudyp30/yummeze/blob/main/Meal/AuthUI.swift"
click node_authservice "https://github.com/rudyp30/yummeze/blob/main/Meal/AuthService.swift"
click node_profileservice "https://github.com/rudyp30/yummeze/blob/main/Meal/ProfileService.swift"
click node_profilemodel "https://github.com/rudyp30/yummeze/blob/main/Meal/Profile.swift"
click node_supabase "https://github.com/rudyp30/yummeze/blob/main/Meal/SupabaseManager.swift"
click node_theme "https://github.com/rudyp30/yummeze/blob/main/Meal/Theme.swift"
click node_mealicon "https://github.com/rudyp30/yummeze/blob/main/Meal/MealTypeIcon.swift"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_routing,node_tabs,node_user toneBlue
class node_capture,node_camera,node_mealmodel,node_feed,node_card,node_calendar,node_cloud toneAmber
class node_profileview,node_settings,node_session,node_welcome,node_codeentry,node_onboarding,node_authui,node_authservice,node_profileservice,node_profilemodel toneMint
class node_images,node_loadedimage,node_supabase,node_theme,node_mealicon toneRose
```

## Components

### App Flow

- [App Bootstrap](https://github.com/rudyp30/yummeze/blob/main/Meal/YummezeApp.swift): `Meal/YummezeApp.swift`
- [Root Routing](https://github.com/rudyp30/yummeze/blob/main/Meal/RootView.swift): `Meal/RootView.swift`
- [Tab Shell](https://github.com/rudyp30/yummeze/blob/main/Meal/RootTabView.swift): `Meal/RootTabView.swift`

### Meal Journaling

- [Meal Capture](https://github.com/rudyp30/yummeze/blob/main/Meal/MealCaptureView.swift): `Meal/MealCaptureView.swift`
- [Camera Picker](https://github.com/rudyp30/yummeze/blob/main/Meal/CameraPicker.swift): `Meal/CameraPicker.swift`
- [Meal Model](https://github.com/rudyp30/yummeze/blob/main/Meal/Meal.swift): `Meal/Meal.swift`
- [Meal Feed](https://github.com/rudyp30/yummeze/blob/main/Meal/MealFeedView.swift): `Meal/MealFeedView.swift`
- [Meal Card](https://github.com/rudyp30/yummeze/blob/main/Meal/MealCard.swift): `Meal/MealCard.swift`
- [Meal Calendar](https://github.com/rudyp30/yummeze/blob/main/Meal/CalendarView.swift): `Meal/CalendarView.swift`

### Identity

- [Profile Screen](https://github.com/rudyp30/yummeze/blob/main/Meal/ProfileView.swift): `Meal/ProfileView.swift`
- [Settings](https://github.com/rudyp30/yummeze/blob/main/Meal/SettingsView.swift): `Meal/SettingsView.swift`
- [Session State](https://github.com/rudyp30/yummeze/blob/main/Meal/SessionStore.swift): `Meal/SessionStore.swift`
- [Welcome Screen](https://github.com/rudyp30/yummeze/blob/main/Meal/WelcomeView.swift): `Meal/WelcomeView.swift`
- [Code Entry](https://github.com/rudyp30/yummeze/blob/main/Meal/CodeEntryView.swift): `Meal/CodeEntryView.swift`
- [Profile Onboarding](https://github.com/rudyp30/yummeze/blob/main/Meal/OnboardingView.swift): `Meal/OnboardingView.swift`
- [Auth UI](https://github.com/rudyp30/yummeze/blob/main/Meal/AuthUI.swift): `Meal/AuthUI.swift`
- [Auth Service](https://github.com/rudyp30/yummeze/blob/main/Meal/AuthService.swift): `Meal/AuthService.swift`
- [Profile Service](https://github.com/rudyp30/yummeze/blob/main/Meal/ProfileService.swift): `Meal/ProfileService.swift`
- [Profile Model](https://github.com/rudyp30/yummeze/blob/main/Meal/Profile.swift): `Meal/Profile.swift`

### Data and Presentation

- [Image Store](https://github.com/rudyp30/yummeze/blob/main/Meal/ImageStore.swift): `Meal/ImageStore.swift`
- [Loaded Image](https://github.com/rudyp30/yummeze/blob/main/Meal/LoadedImage.swift): `Meal/LoadedImage.swift`
- [Supabase Client](https://github.com/rudyp30/yummeze/blob/main/Meal/SupabaseManager.swift): `Meal/SupabaseManager.swift`
- [Theme System](https://github.com/rudyp30/yummeze/blob/main/Meal/Theme.swift): `Meal/Theme.swift`
- [Meal Type Icon](https://github.com/rudyp30/yummeze/blob/main/Meal/MealTypeIcon.swift): `Meal/MealTypeIcon.swift`

### Other components

- **User**
- **Supabase**

## Connections

- User → App Bootstrap: launches (evidence: `Meal/YummezeApp.swift`)
- App Bootstrap → Root Routing: shows (evidence: `Meal/YummezeApp.swift`)
- Root Routing → Session State: resolves state (evidence: `Meal/RootView.swift`)
- Root Routing → Welcome Screen: shows signed-out (evidence: `Meal/RootView.swift`)
- Root Routing → Profile Onboarding: shows onboarding (evidence: `Meal/RootView.swift`)
- Root Routing → Tab Shell: shows ready (evidence: `Meal/RootView.swift`)
- User → Tab Shell: uses tabs (evidence: `Meal/RootTabView.swift`)
- Tab Shell → Meal Capture: opens capture (evidence: `Meal/RootTabView.swift`)
- Tab Shell → Meal Feed: shows feed (evidence: `Meal/RootTabView.swift`)
- Tab Shell → Meal Calendar: shows calendar (evidence: `Meal/RootTabView.swift`)
- Tab Shell → Profile Screen: shows profile (evidence: `Meal/RootTabView.swift`)
- Meal Capture → Camera Picker: presents camera (evidence: `Meal/MealCaptureView.swift`)
- Meal Capture → Image Store: saves photos (evidence: `Meal/MealCaptureView.swift`)
- Meal Capture → Meal Model: creates meals (evidence: `Meal/MealCaptureView.swift`)
- Meal Feed → Meal Card: renders meals (evidence: `Meal/MealFeedView.swift`)
- Meal Card → Meal Model: displays meal (evidence: `Meal/MealCard.swift`)
- Meal Card → Loaded Image: renders photos (evidence: `Meal/MealCard.swift`)
- Loaded Image → Image Store: loads image (evidence: `Meal/LoadedImage.swift`)
- Meal Calendar → Meal Model: reads meals (evidence: `Meal/CalendarView.swift`)
- Meal Calendar → Meal Card: renders meals (evidence: `Meal/CalendarView.swift`)
- Profile Screen → Settings: opens settings (evidence: `Meal/ProfileView.swift`)
- Profile Screen → Meal Model: queries meals (evidence: `Meal/ProfileView.swift`)
- Profile Screen → Session State: reads identity (evidence: `Meal/ProfileView.swift`)
- Settings → Session State: updates account (evidence: `Meal/SettingsView.swift`)
- Welcome Screen → Code Entry: opens code entry (evidence: `Meal/WelcomeView.swift`)
- Code Entry → Session State: verifies code (evidence: `Meal/CodeEntryView.swift`)
- Profile Onboarding → Session State: completes profile (evidence: `Meal/OnboardingView.swift`)
- Profile Onboarding → Image Store: prepares avatar (evidence: `Meal/OnboardingView.swift`)
- Session State → Profile Service: loads profile (evidence: `Meal/SessionStore.swift`)
- Session State → Profile Model: holds profile (evidence: `Meal/SessionStore.swift`)
- Auth Service → Supabase Client: uses client (evidence: `Meal/AuthService.swift`)
- Profile Service → Supabase Client: reads and writes (evidence: `Meal/ProfileService.swift`)
- Profile Service → Profile Model: decodes profile (evidence: `Meal/ProfileService.swift`)
- Supabase Client → Supabase: queries and uploads (evidence: `Meal/SupabaseManager.swift`)
- App Bootstrap → Theme System: configures appearance (evidence: `Meal/YummezeApp.swift`)
- Meal Card → Meal Type Icon: shows category (evidence: `Meal/MealCard.swift`)
