# hillxryg/event-registration-system architecture

> Architecture diagram of the GitHub repository hillxryg/event-registration-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hillxryg/event-registration-system
- Repository: https://github.com/hillxryg/event-registration-system

## Overview

PassFlow is an event registration and QR check-in application. Attendees browse events, register or request approval, receive and manage passes, and present QR codes for check-in; organizers manage events, guests, approvals, and attendance. The graph preserves the documented email and scanner capabilities, though excerpts do not show all page-level operations. Dashed links mark relationships whose runtime wiring is described at a high level but not verified in the sampled source.

Main entry points: [`src/App.tsx`](https://github.com/hillxryg/event-registration-system/blob/main/src/App.tsx) (Routes and Access), [`src/lib/supabase.ts`](https://github.com/hillxryg/event-registration-system/blob/main/src/lib/supabase.ts) (Supabase Client), [`src/pages/RegisterPage.tsx`](https://github.com/hillxryg/event-registration-system/blob/main/src/pages/RegisterPage.tsx) (Event Registration), [`src/pages/AdminDashboardPage.tsx`](https://github.com/hillxryg/event-registration-system/blob/main/src/pages/AdminDashboardPage.tsx) (Organizer Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_routes["Routes and Access<br/>[App.tsx]"]
  node_shell["Navigation Shell<br/>[AppShell.tsx]"]
  node_feedback["Confirm and Receipt<br/>[ConfirmModal.tsx]"]
  node_loading["Loading View<br/>[LoadingScreen.tsx]"]
  node_fallback["Not Found<br/>[NotFoundPage.tsx]"]
end

subgraph group_attendee["Attendee Journey"]
  node_auth["Authentication<br/>[AuthPage.tsx]"]
  node_directory["Event Directory"]
  node_registration["Event Registration<br/>[RegisterPage.tsx]"]
  node_wallet["Pass Wallet<br/>[MyPassesPage.tsx]"]
  node_scanner["QR Check-In<br/>[ScannerPage.tsx]"]
end

subgraph group_organizer["Organizer Tools"]
  node_admin["Organizer Dashboard"]
  node_management["Event and Guest CRUD<br/>[AdminCrudPage.tsx]"]
end

subgraph group_platform["Data and Delivery"]
  node_supabase_client["Supabase Client<br/>[supabase.ts]"]
  node_contracts["Database Contracts<br/>[database.ts]"]
  node_schema["Database Schema<br/>[schema.sql]"]
  node_supabase_service[("Supabase Backend")]
  node_ticket_email["QR Ticket Email<br/>[index.ts]"]
end

node_visitor(("Visitor or Organizer"))

node_visitor -->|"opens app"| node_routes
node_routes -->|"routes to"| node_auth
node_routes -->|"routes to"| node_directory
node_routes -->|"routes to"| node_registration
node_routes -->|"routes to"| node_wallet
node_routes -->|"routes to"| node_scanner
node_routes -->|"routes to"| node_admin
node_routes -->|"routes to"| node_management
node_routes -->|"routes to"| node_fallback
node_routes -->|"hydrates profile"| node_supabase_client
node_routes -->|"shows while loading"| node_loading
node_routes -->|"wraps pages"| node_shell
node_directory -.->|"opens event signup"| node_registration
node_auth -->|"authenticates and loads profile"| node_supabase_client
node_registration -.->|"uses backend"| node_supabase_client
node_wallet -.->|"uses backend"| node_supabase_client
node_scanner -.->|"uses backend"| node_supabase_client
node_admin -.->|"uses backend"| node_supabase_client
node_management -.->|"uses backend"| node_supabase_client
node_supabase_client -.->|"connects to"| node_supabase_service
node_schema -.->|"defines data policies"| node_supabase_service
node_registration -.->|"requests ticket delivery"| node_ticket_email
node_admin -.->|"dispatches ticket email"| node_ticket_email
node_ticket_email -.->|"uses edge backend"| node_supabase_service
node_routes -->|"shows receipts"| node_feedback
node_shell -->|"confirms sign-out"| node_feedback
node_registration -->|"uses domain types"| node_contracts
node_supabase_client -->|"types profiles"| node_contracts

click node_routes "https://github.com/hillxryg/event-registration-system/blob/main/src/App.tsx"
click node_shell "https://github.com/hillxryg/event-registration-system/blob/main/src/components/AppShell.tsx"
click node_feedback "https://github.com/hillxryg/event-registration-system/blob/main/src/components/ConfirmModal.tsx"
click node_loading "https://github.com/hillxryg/event-registration-system/blob/main/src/components/LoadingScreen.tsx"
click node_auth "https://github.com/hillxryg/event-registration-system/blob/main/src/pages/AuthPage.tsx"
click node_directory "https://github.com/hillxryg/event-registration-system/blob/main/src/pages/PublicEventsPage.tsx"
click node_registration "https://github.com/hillxryg/event-registration-system/blob/main/src/pages/RegisterPage.tsx"
click node_wallet "https://github.com/hillxryg/event-registration-system/blob/main/src/pages/MyPassesPage.tsx"
click node_scanner "https://github.com/hillxryg/event-registration-system/blob/main/src/pages/ScannerPage.tsx"
click node_admin "https://github.com/hillxryg/event-registration-system/blob/main/src/pages/AdminDashboardPage.tsx"
click node_management "https://github.com/hillxryg/event-registration-system/blob/main/src/pages/AdminCrudPage.tsx"
click node_fallback "https://github.com/hillxryg/event-registration-system/blob/main/src/pages/NotFoundPage.tsx"
click node_supabase_client "https://github.com/hillxryg/event-registration-system/blob/main/src/lib/supabase.ts"
click node_contracts "https://github.com/hillxryg/event-registration-system/blob/main/src/types/database.ts"
click node_schema "https://github.com/hillxryg/event-registration-system/blob/main/supabase/schema.sql"
click node_ticket_email "https://github.com/hillxryg/event-registration-system/blob/main/supabase/functions/send-ticket-email/index.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_routes,node_shell,node_feedback,node_loading,node_fallback toneBlue
class node_auth,node_directory,node_registration,node_wallet,node_scanner toneAmber
class node_admin,node_management toneMint
class node_supabase_client,node_contracts,node_schema,node_supabase_service,node_ticket_email toneRose
class node_visitor toneIndigo
```

## Components

### Application Shell

- [Routes and Access](https://github.com/hillxryg/event-registration-system/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation Shell](https://github.com/hillxryg/event-registration-system/blob/main/src/components/AppShell.tsx): `src/components/AppShell.tsx`
- [Confirm and Receipt](https://github.com/hillxryg/event-registration-system/blob/main/src/components/ConfirmModal.tsx): `src/components/ConfirmModal.tsx`
- [Loading View](https://github.com/hillxryg/event-registration-system/blob/main/src/components/LoadingScreen.tsx): `src/components/LoadingScreen.tsx`
- [Not Found](https://github.com/hillxryg/event-registration-system/blob/main/src/pages/NotFoundPage.tsx): `src/pages/NotFoundPage.tsx`

### Attendee Journey

- [Authentication](https://github.com/hillxryg/event-registration-system/blob/main/src/pages/AuthPage.tsx): `src/pages/AuthPage.tsx`
- [Event Directory](https://github.com/hillxryg/event-registration-system/blob/main/src/pages/PublicEventsPage.tsx): `src/pages/PublicEventsPage.tsx`
- [Event Registration](https://github.com/hillxryg/event-registration-system/blob/main/src/pages/RegisterPage.tsx): `src/pages/RegisterPage.tsx`
- [Pass Wallet](https://github.com/hillxryg/event-registration-system/blob/main/src/pages/MyPassesPage.tsx): `src/pages/MyPassesPage.tsx`
- [QR Check-In](https://github.com/hillxryg/event-registration-system/blob/main/src/pages/ScannerPage.tsx): `src/pages/ScannerPage.tsx`

### Organizer Tools

- [Organizer Dashboard](https://github.com/hillxryg/event-registration-system/blob/main/src/pages/AdminDashboardPage.tsx): `src/pages/AdminDashboardPage.tsx`
- [Event and Guest CRUD](https://github.com/hillxryg/event-registration-system/blob/main/src/pages/AdminCrudPage.tsx): `src/pages/AdminCrudPage.tsx`

### Data and Delivery

- [Supabase Client](https://github.com/hillxryg/event-registration-system/blob/main/src/lib/supabase.ts): `src/lib/supabase.ts`
- [Database Contracts](https://github.com/hillxryg/event-registration-system/blob/main/src/types/database.ts): `src/types/database.ts`
- [Database Schema](https://github.com/hillxryg/event-registration-system/blob/main/supabase/schema.sql): `supabase/schema.sql`
- **Supabase Backend**
- [QR Ticket Email](https://github.com/hillxryg/event-registration-system/blob/main/supabase/functions/send-ticket-email/index.ts): `supabase/functions/send-ticket-email/index.ts`

### Other components

- **Visitor or Organizer**

## Connections

- Visitor or Organizer → Routes and Access: opens app (evidence: `README.md`)
- Routes and Access → Authentication: routes to (evidence: `src/App.tsx`)
- Routes and Access → Event Directory: routes to (evidence: `src/App.tsx`)
- Routes and Access → Event Registration: routes to (evidence: `src/App.tsx`)
- Routes and Access → Pass Wallet: routes to (evidence: `src/App.tsx`)
- Routes and Access → QR Check-In: routes to (evidence: `src/App.tsx`)
- Routes and Access → Organizer Dashboard: routes to (evidence: `src/App.tsx`)
- Routes and Access → Event and Guest CRUD: routes to (evidence: `src/App.tsx`)
- Routes and Access → Not Found: routes to (evidence: `src/App.tsx`)
- Routes and Access → Supabase Client: hydrates profile (evidence: `src/App.tsx`)
- Routes and Access → Loading View: shows while loading (evidence: `src/App.tsx`)
- Routes and Access → Navigation Shell: wraps pages (evidence: `src/App.tsx`)
- Event Directory → Event Registration: opens event signup (evidence: `README.md`)
- Authentication → Supabase Client: authenticates and loads profile (evidence: `src/pages/AuthPage.tsx`)
- Event Registration → Supabase Client: uses backend (evidence: `README.md`)
- Pass Wallet → Supabase Client: uses backend (evidence: `README.md`)
- QR Check-In → Supabase Client: uses backend (evidence: `README.md`)
- Organizer Dashboard → Supabase Client: uses backend (evidence: `README.md`)
- Event and Guest CRUD → Supabase Client: uses backend (evidence: `README.md`)
- Supabase Client → Supabase Backend: connects to
- Database Schema → Supabase Backend: defines data policies (evidence: `README.md`)
- Event Registration → QR Ticket Email: requests ticket delivery (evidence: `README.md`)
- Organizer Dashboard → QR Ticket Email: dispatches ticket email (evidence: `README.md`)
- QR Ticket Email → Supabase Backend: uses edge backend (evidence: `README.md`)
- Routes and Access → Confirm and Receipt: shows receipts (evidence: `src/App.tsx`)
- Navigation Shell → Confirm and Receipt: confirms sign-out (evidence: `src/components/AppShell.tsx`)
- Event Registration → Database Contracts: uses domain types (evidence: `src/pages/RegisterPage.tsx`)
- Supabase Client → Database Contracts: types profiles (evidence: `src/lib/supabase.ts`)
