# chasingsunsets/connectsphere architecture

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

- Interactive diagram: https://gitdiagram.com/chasingsunsets/connectsphere
- Repository: https://github.com/chasingsunsets/connectsphere

## Overview

ConnectSphere is a Singapore event-planning and venue-booking platform serving seven roles. Users work through a Vue application to submit and manage events, assign reviews, assess safety and technical readiness, book venues, and handle attendee registrations; notifications support those workflows. The FastAPI modular monolith exposes domain APIs backed by Supabase. The documented module structure and sampled imports support the backend routing and selected service-to-storage relationships; frontend request wiring and several domain details were not sampled, so those links are omitted or marked unverified.

Main entry points: [`backend/app/main.py`](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/main.py) (FastAPI application), [`backend/app/modules/events/service.py`](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/events/service.py) (Event lifecycle), [`backend/app/modules/venues/service.py`](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/venues/service.py) (Venue suitability and booking), [`backend/app/db/supabase.py`](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/db/supabase.py) (Supabase data and auth)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_frontend["Vue application<br/>[App.vue]"]
  node_frontend_routes["Role-based views<br/>[index.js]"]
  node_frontend_api["API client<br/>[api.js]"]
end

subgraph group_identity["Identity and access"]
  node_auth_api["Authentication API<br/>[router.py]"]
  node_auth_service["Identity and roles<br/>[service.py]"]
end

subgraph group_event_ops["Event operations"]
  node_event_api["Event workflows API<br/>[router.py]"]
  node_event_service["Event lifecycle<br/>[service.py]"]
  node_event_store["Event persistence<br/>[repository.py]"]
  node_registration_api["Registration API<br/>[router.py]"]
  node_registration_service["Public events and registration<br/>[service.py]"]
  node_notifications_api["Notifications API<br/>[router.py]"]
  node_notifications_service["Notification delivery<br/>[service.py]"]
end

subgraph group_resources["Venue and equipment"]
  node_venue_api["Venue and booking API<br/>[router.py]"]
  node_venue_service["Venue suitability and booking<br/>[service.py]"]
  node_venue_search["Venue search<br/>[search.py]"]
  node_venue_store["Venue persistence<br/>[repository.py]"]
  node_equipment_api["Equipment API<br/>[router.py]"]
  node_equipment_service["Technical readiness<br/>[service.py]"]
end

subgraph group_platform["Platform and persistence"]
  node_supabase[("Supabase data and auth<br/>[supabase.py]")]
  node_backend_entry["FastAPI application<br/>[main.py]"]
end

node_users(("Platform roles"))

node_users -->|"use"| node_frontend
node_frontend -.->|"navigates"| node_frontend_routes
node_frontend_routes -.->|"requests data"| node_frontend_api
node_frontend_api -.->|"calls API"| node_backend_entry
node_backend_entry -->|"mounts"| node_auth_api
node_backend_entry -->|"mounts"| node_event_api
node_backend_entry -->|"mounts"| node_registration_api
node_backend_entry -->|"mounts"| node_venue_api
node_backend_entry -->|"mounts"| node_equipment_api
node_backend_entry -->|"mounts"| node_notifications_api
node_auth_api -->|"calls"| node_auth_service
node_auth_service -->|"uses clients"| node_supabase
node_event_api -->|"calls"| node_event_service
node_event_service -->|"reads and writes"| node_event_store
node_event_service -->|"requests venue work"| node_venue_service
node_event_service -->|"coordinates registration"| node_registration_service
node_registration_api -->|"calls"| node_registration_service
node_registration_service -.->|"reads event data"| node_event_store
node_venue_api -->|"calls"| node_venue_service
node_venue_service -->|"reads and writes"| node_venue_store
node_venue_service -->|"searches venues"| node_venue_search
node_venue_service -->|"reads event context"| node_event_service
node_equipment_api -->|"calls"| node_equipment_service
node_equipment_service -->|"reads event context"| node_event_service
node_notifications_api -->|"calls"| node_notifications_service
node_notifications_service -.->|"persists notifications"| node_supabase
node_event_store -->|"uses client"| node_supabase
node_venue_store -->|"uses client"| node_supabase
node_event_service -->|"coordinates technical work"| node_equipment_service

click node_frontend "https://github.com/chasingsunsets/connectsphere/blob/main/frontend/src/App.vue"
click node_frontend_routes "https://github.com/chasingsunsets/connectsphere/blob/main/frontend/src/router/index.js"
click node_frontend_api "https://github.com/chasingsunsets/connectsphere/blob/main/frontend/src/services/api.js"
click node_auth_api "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/auth/router.py"
click node_auth_service "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/auth/service.py"
click node_event_api "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/events/router.py"
click node_event_service "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/events/service.py"
click node_event_store "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/events/repository.py"
click node_registration_api "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/registrations/router.py"
click node_registration_service "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/registrations/service.py"
click node_venue_api "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/venues/router.py"
click node_venue_service "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/venues/service.py"
click node_venue_search "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/venues/search.py"
click node_venue_store "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/venues/repository.py"
click node_equipment_api "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/equipment/router.py"
click node_equipment_service "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/equipment/service.py"
click node_notifications_api "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/notifications/router.py"
click node_notifications_service "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/notifications/service.py"
click node_supabase "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/db/supabase.py"
click node_backend_entry "https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/main.py"

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_frontend,node_frontend_routes,node_frontend_api toneBlue
class node_auth_api,node_auth_service toneAmber
class node_event_api,node_event_service,node_event_store,node_registration_api,node_registration_service,node_notifications_api,node_notifications_service toneMint
class node_venue_api,node_venue_service,node_venue_search,node_venue_store,node_equipment_api,node_equipment_service toneRose
class node_supabase,node_backend_entry,node_users toneIndigo
```

## Components

### User experience

- [Vue application](https://github.com/chasingsunsets/connectsphere/blob/main/frontend/src/App.vue): `frontend/src/App.vue`
- [Role-based views](https://github.com/chasingsunsets/connectsphere/blob/main/frontend/src/router/index.js): `frontend/src/router/index.js`
- [API client](https://github.com/chasingsunsets/connectsphere/blob/main/frontend/src/services/api.js): `frontend/src/services/api.js`

### Identity and access

- [Authentication API](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/auth/router.py): `backend/app/modules/auth/router.py`
- [Identity and roles](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/auth/service.py): `backend/app/modules/auth/service.py`

### Event operations

- [Event workflows API](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/events/router.py): `backend/app/modules/events/router.py`
- [Event lifecycle](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/events/service.py): `backend/app/modules/events/service.py`
- [Event persistence](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/events/repository.py): `backend/app/modules/events/repository.py`
- [Registration API](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/registrations/router.py): `backend/app/modules/registrations/router.py`
- [Public events and registration](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/registrations/service.py): `backend/app/modules/registrations/service.py`
- [Notifications API](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/notifications/router.py): `backend/app/modules/notifications/router.py`
- [Notification delivery](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/notifications/service.py): `backend/app/modules/notifications/service.py`

### Venue and equipment

- [Venue and booking API](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/venues/router.py): `backend/app/modules/venues/router.py`
- [Venue suitability and booking](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/venues/service.py): `backend/app/modules/venues/service.py`
- [Venue search](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/venues/search.py): `backend/app/modules/venues/search.py`
- [Venue persistence](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/venues/repository.py): `backend/app/modules/venues/repository.py`
- [Equipment API](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/equipment/router.py): `backend/app/modules/equipment/router.py`
- [Technical readiness](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/modules/equipment/service.py): `backend/app/modules/equipment/service.py`

### Platform and persistence

- [Supabase data and auth](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/db/supabase.py): `backend/app/db/supabase.py`
- [FastAPI application](https://github.com/chasingsunsets/connectsphere/blob/main/backend/app/main.py): `backend/app/main.py`

### Other components

- **Platform roles**

## Connections

- Platform roles → Vue application: use (evidence: `README.md`)
- Vue application → Role-based views: navigates
- Role-based views → API client: requests data
- API client → FastAPI application: calls API
- FastAPI application → Authentication API: mounts (evidence: `backend/app/main.py`)
- FastAPI application → Event workflows API: mounts (evidence: `backend/app/main.py`)
- FastAPI application → Registration API: mounts (evidence: `backend/app/main.py`)
- FastAPI application → Venue and booking API: mounts (evidence: `backend/app/main.py`)
- FastAPI application → Equipment API: mounts (evidence: `backend/app/main.py`)
- FastAPI application → Notifications API: mounts (evidence: `backend/app/main.py`)
- Authentication API → Identity and roles: calls (evidence: `backend/app/modules/auth/router.py`)
- Identity and roles → Supabase data and auth: uses clients (evidence: `backend/app/modules/auth/service.py`)
- Event workflows API → Event lifecycle: calls (evidence: `backend/app/modules/events/router.py`)
- Event lifecycle → Event persistence: reads and writes (evidence: `backend/app/modules/events/service.py`)
- Event lifecycle → Venue suitability and booking: requests venue work (evidence: `backend/app/modules/events/service.py`)
- Event lifecycle → Public events and registration: coordinates registration (evidence: `backend/app/modules/events/service.py`)
- Registration API → Public events and registration: calls (evidence: `backend/app/modules/registrations/router.py`)
- Public events and registration → Event persistence: reads event data
- Venue and booking API → Venue suitability and booking: calls (evidence: `backend/app/modules/venues/router.py`)
- Venue suitability and booking → Venue persistence: reads and writes (evidence: `backend/app/modules/venues/service.py`)
- Venue suitability and booking → Venue search: searches venues (evidence: `backend/app/modules/venues/service.py`)
- Venue suitability and booking → Event lifecycle: reads event context (evidence: `backend/app/modules/venues/service.py`)
- Equipment API → Technical readiness: calls (evidence: `backend/app/modules/equipment/router.py`)
- Technical readiness → Event lifecycle: reads event context (evidence: `backend/app/modules/equipment/service.py`)
- Notifications API → Notification delivery: calls (evidence: `backend/app/modules/notifications/router.py`)
- Notification delivery → Supabase data and auth: persists notifications
- Event persistence → Supabase data and auth: uses client (evidence: `backend/app/modules/events/repository.py`)
- Venue persistence → Supabase data and auth: uses client (evidence: `backend/app/modules/venues/repository.py`)
- Event lifecycle → Technical readiness: coordinates technical work (evidence: `backend/app/modules/events/service.py`)
