# orsted10/campus-kart architecture

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

- Interactive diagram: https://gitdiagram.com/orsted10/campus-kart
- Repository: https://github.com/orsted10/campus-kart

## Overview

CampusKart is presented in the README as a cinematic public landing experience: visitors move through a campus narrative, explore food, rides and essentials demos, then can join or contact partners. The repository also contains student dashboard, authentication, delivery-dispatch, support and legal experiences. The README documents the landing-page sequence; the SOURCE INDEX and excerpts expose selected app-to-component relationships and Supabase use. Many feature implementations were not sampled, so their internal flows are not inferred here.

Main entry points: [`components/Experience.tsx`](https://github.com/orsted10/campus-kart/blob/main/components/Experience.tsx) (Experience assembly), [`lib/store.tsx`](https://github.com/orsted10/campus-kart/blob/main/lib/store.tsx) (App state), [`app/dashboard/page.tsx`](https://github.com/orsted10/campus-kart/blob/main/app/dashboard/page.tsx) (Student dashboard), [`components/dashboard/shell.tsx`](https://github.com/orsted10/campus-kart/blob/main/components/dashboard/shell.tsx) (Dashboard shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_landing["Landing experience"]
  node_experience["Experience assembly<br/>[Experience.tsx]"]
  node_hero["Campus hero<br/>[Hero.tsx]"]
  node_narrative["Campus narrative<br/>[Chaos.tsx]"]
  node_convergence["Network convergence<br/>[Convergence.tsx]"]
  node_ecosystem["Service demos<br/>[Ecosystem.tsx]"]
  node_journeys["Campus journeys<br/>[Journeys.tsx]"]
  node_map["Campus map<br/>[CampusMap.tsx]"]
  node_stories["Campus stories<br/>[Scenarios.tsx]"]
  node_trust["Trust layer<br/>[Trust.tsx]"]
  node_partner["Partner lead form<br/>[Partner.tsx]"]
end

subgraph group_shared["Shared state and auth"]
  node_state["App state<br/>[store.tsx]"]
  node_chrome["Navigation and theme<br/>[Chrome.tsx]"]
  node_auth["Student authentication<br/>[AuthView.tsx]"]
  node_supabase["Supabase client<br/>[supabase.ts]"]
  node_data["Demo content<br/>[data.ts]"]
end

subgraph group_student["Student services"]
  node_dashboard["Student dashboard<br/>[page.tsx]"]
  node_dashboard_shell["Dashboard shell<br/>[shell.tsx]"]
  node_catalog["Product catalog<br/>[catalog.ts]"]
end

subgraph group_dispatch["Delivery dispatch"]
  node_dispatch["Delivery dispatch<br/>[page.tsx]"]
  node_delivery_map["Dispatch map<br/>[DeliveryMap.tsx]"]
end

subgraph group_info["Support and information"]
  node_support["Help center<br/>[SupportContent.tsx]"]
  node_legal["Legal documents<br/>[LegalLayout.tsx]"]
end

node_visitor(("Campus visitor"))

node_visitor -->|"opens"| node_experience
node_experience -->|"assembles"| node_hero
node_experience -->|"assembles"| node_narrative
node_experience -->|"assembles"| node_convergence
node_experience -->|"assembles"| node_ecosystem
node_experience -->|"assembles"| node_journeys
node_experience -->|"assembles"| node_map
node_experience -->|"assembles"| node_stories
node_experience -->|"assembles"| node_trust
node_experience -->|"assembles"| node_partner
node_experience -->|"uses"| node_state
node_chrome -->|"reads and updates"| node_state
node_auth -->|"requests auth"| node_supabase
node_state -->|"syncs session"| node_supabase
node_dashboard -->|"renders"| node_dashboard_shell
node_dashboard -->|"uses"| node_catalog
node_dashboard_shell -->|"uses"| node_catalog
node_dispatch -->|"loads"| node_delivery_map
node_support -->|"uses"| node_state
node_legal -->|"uses"| node_state
node_experience -.->|"uses demo content"| node_data

click node_experience "https://github.com/orsted10/campus-kart/blob/main/components/Experience.tsx"
click node_hero "https://github.com/orsted10/campus-kart/blob/main/components/Hero.tsx"
click node_narrative "https://github.com/orsted10/campus-kart/blob/main/components/Chaos.tsx"
click node_convergence "https://github.com/orsted10/campus-kart/blob/main/components/Convergence.tsx"
click node_ecosystem "https://github.com/orsted10/campus-kart/blob/main/components/Ecosystem.tsx"
click node_journeys "https://github.com/orsted10/campus-kart/blob/main/components/Journeys.tsx"
click node_map "https://github.com/orsted10/campus-kart/blob/main/components/CampusMap.tsx"
click node_stories "https://github.com/orsted10/campus-kart/blob/main/components/Scenarios.tsx"
click node_trust "https://github.com/orsted10/campus-kart/blob/main/components/Trust.tsx"
click node_partner "https://github.com/orsted10/campus-kart/blob/main/components/Partner.tsx"
click node_state "https://github.com/orsted10/campus-kart/blob/main/lib/store.tsx"
click node_chrome "https://github.com/orsted10/campus-kart/blob/main/components/Chrome.tsx"
click node_auth "https://github.com/orsted10/campus-kart/blob/main/components/AuthView.tsx"
click node_supabase "https://github.com/orsted10/campus-kart/blob/main/lib/supabase.ts"
click node_dashboard "https://github.com/orsted10/campus-kart/blob/main/app/dashboard/page.tsx"
click node_dashboard_shell "https://github.com/orsted10/campus-kart/blob/main/components/dashboard/shell.tsx"
click node_catalog "https://github.com/orsted10/campus-kart/blob/main/lib/catalog.ts"
click node_dispatch "https://github.com/orsted10/campus-kart/blob/main/app/deliverlogin/page.tsx"
click node_delivery_map "https://github.com/orsted10/campus-kart/blob/main/components/DeliveryMap.tsx"
click node_support "https://github.com/orsted10/campus-kart/blob/main/components/support/SupportContent.tsx"
click node_legal "https://github.com/orsted10/campus-kart/blob/main/components/legal/LegalLayout.tsx"
click node_data "https://github.com/orsted10/campus-kart/blob/main/lib/data.ts"

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_experience,node_hero,node_narrative,node_convergence,node_ecosystem,node_journeys,node_map,node_stories,node_trust,node_partner toneBlue
class node_state,node_chrome,node_auth,node_supabase,node_data toneAmber
class node_dashboard,node_dashboard_shell,node_catalog toneMint
class node_dispatch,node_delivery_map toneRose
class node_support,node_legal,node_visitor toneIndigo
```

## Components

### Landing experience

- [Experience assembly](https://github.com/orsted10/campus-kart/blob/main/components/Experience.tsx): `components/Experience.tsx`
- [Campus hero](https://github.com/orsted10/campus-kart/blob/main/components/Hero.tsx): `components/Hero.tsx`
- [Campus narrative](https://github.com/orsted10/campus-kart/blob/main/components/Chaos.tsx): `components/Chaos.tsx`
- [Network convergence](https://github.com/orsted10/campus-kart/blob/main/components/Convergence.tsx): `components/Convergence.tsx`
- [Service demos](https://github.com/orsted10/campus-kart/blob/main/components/Ecosystem.tsx): `components/Ecosystem.tsx`
- [Campus journeys](https://github.com/orsted10/campus-kart/blob/main/components/Journeys.tsx): `components/Journeys.tsx`
- [Campus map](https://github.com/orsted10/campus-kart/blob/main/components/CampusMap.tsx): `components/CampusMap.tsx`
- [Campus stories](https://github.com/orsted10/campus-kart/blob/main/components/Scenarios.tsx): `components/Scenarios.tsx`
- [Trust layer](https://github.com/orsted10/campus-kart/blob/main/components/Trust.tsx): `components/Trust.tsx`
- [Partner lead form](https://github.com/orsted10/campus-kart/blob/main/components/Partner.tsx): `components/Partner.tsx`

### Shared state and auth

- [App state](https://github.com/orsted10/campus-kart/blob/main/lib/store.tsx): `lib/store.tsx`
- [Navigation and theme](https://github.com/orsted10/campus-kart/blob/main/components/Chrome.tsx): `components/Chrome.tsx`
- [Student authentication](https://github.com/orsted10/campus-kart/blob/main/components/AuthView.tsx): `components/AuthView.tsx`
- [Supabase client](https://github.com/orsted10/campus-kart/blob/main/lib/supabase.ts): `lib/supabase.ts`
- [Demo content](https://github.com/orsted10/campus-kart/blob/main/lib/data.ts): `lib/data.ts`

### Student services

- [Student dashboard](https://github.com/orsted10/campus-kart/blob/main/app/dashboard/page.tsx): `app/dashboard/page.tsx`
- [Dashboard shell](https://github.com/orsted10/campus-kart/blob/main/components/dashboard/shell.tsx): `components/dashboard/shell.tsx`
- [Product catalog](https://github.com/orsted10/campus-kart/blob/main/lib/catalog.ts): `lib/catalog.ts`

### Delivery dispatch

- [Delivery dispatch](https://github.com/orsted10/campus-kart/blob/main/app/deliverlogin/page.tsx): `app/deliverlogin/page.tsx`
- [Dispatch map](https://github.com/orsted10/campus-kart/blob/main/components/DeliveryMap.tsx): `components/DeliveryMap.tsx`

### Support and information

- [Help center](https://github.com/orsted10/campus-kart/blob/main/components/support/SupportContent.tsx): `components/support/SupportContent.tsx`
- [Legal documents](https://github.com/orsted10/campus-kart/blob/main/components/legal/LegalLayout.tsx): `components/legal/LegalLayout.tsx`

### Other components

- **Campus visitor**

## Connections

- Campus visitor → Experience assembly: opens (evidence: `README.md`)
- Experience assembly → Campus hero: assembles (evidence: `README.md`)
- Experience assembly → Campus narrative: assembles (evidence: `README.md`)
- Experience assembly → Network convergence: assembles (evidence: `README.md`)
- Experience assembly → Service demos: assembles (evidence: `README.md`)
- Experience assembly → Campus journeys: assembles (evidence: `README.md`)
- Experience assembly → Campus map: assembles (evidence: `README.md`)
- Experience assembly → Campus stories: assembles (evidence: `README.md`)
- Experience assembly → Trust layer: assembles (evidence: `README.md`)
- Experience assembly → Partner lead form: assembles (evidence: `README.md`)
- Experience assembly → App state: uses (evidence: `README.md`)
- Navigation and theme → App state: reads and updates (evidence: `components/Chrome.tsx`)
- Student authentication → Supabase client: requests auth (evidence: `components/AuthView.tsx`)
- App state → Supabase client: syncs session (evidence: `lib/store.tsx`)
- Student dashboard → Dashboard shell: renders (evidence: `app/dashboard/page.tsx`)
- Student dashboard → Product catalog: uses (evidence: `app/dashboard/page.tsx`)
- Dashboard shell → Product catalog: uses (evidence: `components/dashboard/shell.tsx`)
- Delivery dispatch → Dispatch map: loads (evidence: `app/deliverlogin/page.tsx`)
- Help center → App state: uses (evidence: `components/support/SupportContent.tsx`)
- Legal documents → App state: uses (evidence: `components/legal/LegalLayout.tsx`)
- Experience assembly → Demo content: uses demo content (evidence: `README.md`)
