# mindshift30/mandapam architecture

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

- Interactive diagram: https://gitdiagram.com/mindshift30/mandapam
- Repository: https://github.com/mindshift30/mandapam

## Overview

Mandapam is an event marketplace for finding halls and event teams, with account registration, booking, and vendor/admin management. The main customer journey is Home search → Marketplace → listing detail → booking; users also register or log in to reach the dashboard. The React app is launched from `src/main.tsx`, with page routing and shared auth state in `src/App.tsx`. Supabase is the configured external data and authentication service. Some page and server source was not shown, so links requiring unseen calls are omitted.

Main entry points: [`src/App.tsx`](https://github.com/mindshift30/mandapam/blob/main/src/App.tsx) (App and auth), [`src/lib/supabase.ts`](https://github.com/mindshift30/mandapam/blob/main/src/lib/supabase.ts) (Supabase client), [`src/pages/Marketplace.tsx`](https://github.com/mindshift30/mandapam/blob/main/src/pages/Marketplace.tsx) (Marketplace listings), [`src/pages/TeamDetail.tsx`](https://github.com/mindshift30/mandapam/blob/main/src/pages/TeamDetail.tsx) (Team details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_entry["React entry<br/>[main.tsx]"]
  node_router["App and auth<br/>[App.tsx]"]
end

subgraph group_discovery["Marketplace discovery"]
  node_home["Home search<br/>[Home.tsx]"]
  node_marketplace["Marketplace listings<br/>[Marketplace.tsx]"]
  node_hall["Hall details<br/>[HallDetail.tsx]"]
  node_team["Team details<br/>[TeamDetail.tsx]"]
end

subgraph group_accounts["Accounts and operations"]
  node_login["Login<br/>[Login.tsx]"]
  node_register["Registration<br/>[Register.tsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.tsx]"]
end

subgraph group_services["External services"]
  node_supabase_client["Supabase client<br/>[supabase.ts]"]
  node_supabase[("Supabase")]
end

node_visitor(("Visitor or user"))

node_visitor -->|"opens app"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_marketplace
node_router -->|"routes to"| node_hall
node_router -->|"routes to"| node_team
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_register
node_router -->|"routes to"| node_dashboard
node_home -->|"navigates to"| node_marketplace
node_marketplace -->|"links to"| node_hall
node_marketplace -->|"links to"| node_team
node_login -->|"authenticates and reads profile"| node_supabase_client
node_register -->|"creates account profile"| node_supabase_client
node_dashboard -->|"updates bookings"| node_supabase_client
node_team -->|"creates booking"| node_supabase_client
node_supabase_client -->|"connects to"| node_supabase

click node_entry "https://github.com/mindshift30/mandapam/blob/main/src/main.tsx"
click node_router "https://github.com/mindshift30/mandapam/blob/main/src/App.tsx"
click node_home "https://github.com/mindshift30/mandapam/blob/main/src/pages/Home.tsx"
click node_marketplace "https://github.com/mindshift30/mandapam/blob/main/src/pages/Marketplace.tsx"
click node_hall "https://github.com/mindshift30/mandapam/blob/main/src/pages/HallDetail.tsx"
click node_team "https://github.com/mindshift30/mandapam/blob/main/src/pages/TeamDetail.tsx"
click node_login "https://github.com/mindshift30/mandapam/blob/main/src/pages/Login.tsx"
click node_register "https://github.com/mindshift30/mandapam/blob/main/src/pages/Register.tsx"
click node_dashboard "https://github.com/mindshift30/mandapam/blob/main/src/pages/Dashboard.tsx"
click node_supabase_client "https://github.com/mindshift30/mandapam/blob/main/src/lib/supabase.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_entry,node_router,node_visitor toneBlue
class node_home,node_marketplace,node_hall,node_team toneAmber
class node_login,node_register,node_dashboard toneMint
class node_supabase_client,node_supabase toneRose
```

## Components

### App shell

- [React entry](https://github.com/mindshift30/mandapam/blob/main/src/main.tsx): `src/main.tsx`
- [App and auth](https://github.com/mindshift30/mandapam/blob/main/src/App.tsx): `src/App.tsx`

### Marketplace discovery

- [Home search](https://github.com/mindshift30/mandapam/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`
- [Marketplace listings](https://github.com/mindshift30/mandapam/blob/main/src/pages/Marketplace.tsx): `src/pages/Marketplace.tsx`
- [Hall details](https://github.com/mindshift30/mandapam/blob/main/src/pages/HallDetail.tsx): `src/pages/HallDetail.tsx`
- [Team details](https://github.com/mindshift30/mandapam/blob/main/src/pages/TeamDetail.tsx): `src/pages/TeamDetail.tsx`

### Accounts and operations

- [Login](https://github.com/mindshift30/mandapam/blob/main/src/pages/Login.tsx): `src/pages/Login.tsx`
- [Registration](https://github.com/mindshift30/mandapam/blob/main/src/pages/Register.tsx): `src/pages/Register.tsx`
- [Dashboard](https://github.com/mindshift30/mandapam/blob/main/src/pages/Dashboard.tsx): `src/pages/Dashboard.tsx`

### External services

- [Supabase client](https://github.com/mindshift30/mandapam/blob/main/src/lib/supabase.ts): `src/lib/supabase.ts`
- **Supabase**

### Other components

- **Visitor or user**

## Connections

- Visitor or user → React entry: opens app (evidence: `src/main.tsx`)
- React entry → App and auth: renders (evidence: `src/main.tsx`)
- App and auth → Home search: routes to (evidence: `src/App.tsx`)
- App and auth → Marketplace listings: routes to (evidence: `src/App.tsx`)
- App and auth → Hall details: routes to (evidence: `src/App.tsx`)
- App and auth → Team details: routes to (evidence: `src/App.tsx`)
- App and auth → Login: routes to (evidence: `src/App.tsx`)
- App and auth → Registration: routes to (evidence: `src/App.tsx`)
- App and auth → Dashboard: routes to (evidence: `src/App.tsx`)
- Home search → Marketplace listings: navigates to (evidence: `src/pages/Home.tsx`)
- Marketplace listings → Hall details: links to (evidence: `src/pages/Marketplace.tsx`)
- Marketplace listings → Team details: links to (evidence: `src/pages/Marketplace.tsx`)
- Login → Supabase client: authenticates and reads profile (evidence: `src/pages/Login.tsx`)
- Registration → Supabase client: creates account profile (evidence: `src/pages/Register.tsx`)
- Dashboard → Supabase client: updates bookings (evidence: `src/pages/Dashboard.tsx`)
- Team details → Supabase client: creates booking (evidence: `src/pages/TeamDetail.tsx`)
- Supabase client → Supabase: connects to (evidence: `src/lib/supabase.ts`)
