# c0der8627/snap-foodd architecture

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

- Interactive diagram: https://gitdiagram.com/c0der8627/snap-foodd
- Repository: https://github.com/c0der8627/snap-foodd

## Overview

Snap Food is a design-first specification for a cross-platform food-delivery client, not an implemented application: the supplied tree contains documentation and visual references, but no Flutter source. The graph therefore captures the documented customer, restaurant, and delivery-partner surfaces plus the target frontend architecture—not verified runtime wiring. README.md documents the screen capabilities and mock-to-production plan; the specific calls among screens, controllers, and repositories remain unspecified.

Main entry points: [`README.md`](https://github.com/c0der8627/snap-foodd/blob/main/README.md) (Repository Interface), [`stitch_snap_food_design_system.zip`](https://github.com/c0der8627/snap-foodd/blob/main/stitch_snap_food_design_system.zip) (Visual References)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer"]
  node_customer_browse["Browse &amp; Menu<br/>[README.md]"]
  node_customer_cart["Cart &amp; Checkout<br/>[README.md]"]
  node_customer_tracking["Live Tracking<br/>[README.md]"]
  node_customer_profile["Customer Profile<br/>[README.md]"]
end

subgraph group_restaurant["Restaurant Partner"]
  node_restaurant_dashboard["Dashboard &amp; KDS<br/>[README.md]"]
  node_restaurant_ticket["Order Ticket<br/>[README.md]"]
  node_restaurant_menu["Menu &amp; Stock<br/>[README.md]"]
end

subgraph group_delivery["Delivery Partner"]
  node_delivery_onboard["Login &amp; Onboarding<br/>[README.md]"]
  node_delivery_requests["Delivery Requests<br/>[README.md]"]
  node_delivery_trip["Pickup &amp; Delivery<br/>[README.md]"]
  node_delivery_earnings["Earnings &amp; History<br/>[README.md]"]
end

subgraph group_architecture["Target Architecture"]
  node_visual_refs["Visual References"]
  node_screen["Screen / Widget<br/>[README.md]"]
  node_controller["ViewModel / Controller<br/>[README.md]"]
  node_repository_interface["Repository Interface<br/>[README.md]"]
  node_mock_repository["Mock Repository<br/>[README.md]"]
  node_production_repository["Production Repository<br/>[README.md]"]
  node_backend_sources["API / Local / Realtime<br/>[README.md]"]
end

node_customer_actor(("Customer"))
node_restaurant_actor(("Restaurant Partner"))
node_delivery_actor(("Delivery Partner"))

node_customer_actor -->|"uses"| node_customer_browse
node_customer_actor -->|"uses"| node_customer_cart
node_customer_actor -->|"uses"| node_customer_tracking
node_customer_actor -->|"uses"| node_customer_profile
node_restaurant_actor -->|"uses"| node_restaurant_dashboard
node_restaurant_actor -->|"uses"| node_restaurant_ticket
node_restaurant_actor -->|"uses"| node_restaurant_menu
node_delivery_actor -->|"uses"| node_delivery_onboard
node_delivery_actor -->|"uses"| node_delivery_requests
node_delivery_actor -->|"uses"| node_delivery_trip
node_delivery_actor -->|"uses"| node_delivery_earnings
node_visual_refs -->|"specifies"| node_screen
node_screen -->|"forwards UI events"| node_controller
node_controller -->|"uses"| node_repository_interface
node_repository_interface -->|"Phase 1 implementation"| node_mock_repository
node_repository_interface -.->|"later implementation"| node_production_repository
node_production_repository -.->|"uses"| node_backend_sources

click node_customer_browse "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_customer_cart "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_customer_tracking "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_customer_profile "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_restaurant_dashboard "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_restaurant_ticket "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_restaurant_menu "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_delivery_onboard "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_delivery_requests "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_delivery_trip "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_delivery_earnings "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_visual_refs "https://github.com/c0der8627/snap-foodd/blob/main/stitch_snap_food_design_system.zip"
click node_screen "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_controller "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_repository_interface "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_mock_repository "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_production_repository "https://github.com/c0der8627/snap-foodd/blob/main/README.md"
click node_backend_sources "https://github.com/c0der8627/snap-foodd/blob/main/README.md"

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_customer_browse,node_customer_cart,node_customer_tracking,node_customer_profile toneBlue
class node_restaurant_dashboard,node_restaurant_ticket,node_restaurant_menu toneAmber
class node_delivery_onboard,node_delivery_requests,node_delivery_trip,node_delivery_earnings toneMint
class node_visual_refs,node_screen,node_controller,node_repository_interface,node_mock_repository,node_production_repository,node_backend_sources toneRose
class node_customer_actor,node_restaurant_actor,node_delivery_actor toneIndigo
```

## Components

### Customer

- [Browse & Menu](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [Cart & Checkout](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [Live Tracking](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [Customer Profile](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`

### Restaurant Partner

- [Dashboard & KDS](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [Order Ticket](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [Menu & Stock](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`

### Delivery Partner

- [Login & Onboarding](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [Delivery Requests](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [Pickup & Delivery](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [Earnings & History](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`

### Target Architecture

- [Visual References](https://github.com/c0der8627/snap-foodd/blob/main/stitch_snap_food_design_system.zip): `stitch_snap_food_design_system.zip`
- [Screen / Widget](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [ViewModel / Controller](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [Repository Interface](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [Mock Repository](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [Production Repository](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`
- [API / Local / Realtime](https://github.com/c0der8627/snap-foodd/blob/main/README.md): `README.md`

### Other components

- **Customer**
- **Restaurant Partner**
- **Delivery Partner**

## Connections

- Customer → Browse & Menu: uses
- Customer → Cart & Checkout: uses
- Customer → Live Tracking: uses
- Customer → Customer Profile: uses
- Restaurant Partner → Dashboard & KDS: uses
- Restaurant Partner → Order Ticket: uses
- Restaurant Partner → Menu & Stock: uses
- Delivery Partner → Login & Onboarding: uses
- Delivery Partner → Delivery Requests: uses
- Delivery Partner → Pickup & Delivery: uses
- Delivery Partner → Earnings & History: uses
- Visual References → Screen / Widget: specifies
- Screen / Widget → ViewModel / Controller: forwards UI events
- ViewModel / Controller → Repository Interface: uses
- Repository Interface → Mock Repository: Phase 1 implementation
- Repository Interface → Production Repository: later implementation
- Production Repository → API / Local / Realtime: uses
