# cheese-20/wandersync architecture

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

- Interactive diagram: https://gitdiagram.com/cheese-20/wandersync
- Repository: https://github.com/cheese-20/wandersync

## Overview

WanderSync is a travel social network and local-guide marketplace. Explorers discover guides and curated places, match with people, message, and book tours; guides publish experiences and manage bookings, while administrators review applications and safety reports. The graph preserves those documented product branches and the sampled backend persistence and booking behavior. Several frontend-to-API links and unsampled feature internals are not visible in the excerpts, so those relationships are shown only as unverified dashed links.

Main entry points: [`backend/Data/WanderSyncDbContext.cs`](https://github.com/cheese-20/wandersync/blob/main/backend/Data/WanderSyncDbContext.cs) (Application database), [`src/App.jsx`](https://github.com/cheese-20/wandersync/blob/main/src/App.jsx) (App routing), [`src/pages/Discover.jsx`](https://github.com/cheese-20/wandersync/blob/main/src/pages/Discover.jsx) (Explore guides), [`backend/Controllers/BookingsController.cs`](https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/BookingsController.cs) (Booking workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web experience"]
  node_explorer["Explorer home<br/>[ExplorerHome.jsx]"]
  node_guidehome["Guide home<br/>[GuideHome.jsx]"]
  node_routing["App routing<br/>[App.jsx]"]
  node_authui["Sign in<br/>[AuthForm.jsx]"]
  node_discover["Explore guides<br/>[Discover.jsx]"]
  node_map["Curated map<br/>[MapModal.jsx]"]
end

subgraph group_identity["Identity and community"]
  node_social["Posts and profiles"]
  node_matching["People matching<br/>[Match.jsx]"]
  node_messaging["Messages<br/>[Messages.jsx]"]
  node_profileapi["Profile service"]
end

subgraph group_market["Guides and bookings"]
  node_guides["Guide services"]
  node_tours["Tour management<br/>[ToursController.cs]"]
  node_bookings["Booking workflow"]
  node_itinerary["Itinerary management"]
end

subgraph group_places["Spot discovery"]
  node_curated["Curated spots"]
  node_spotapi["Spot moderation<br/>[SpotController.cs]"]
end

subgraph group_ops["Platform services"]
  node_admin["Admin dashboard<br/>[AdminHome.jsx]"]
  node_adminapi["Admin services<br/>[AdminController.cs]"]
  node_authapi["Authentication<br/>[AuthController.cs]"]
  node_reminders["Booking reminders"]
  node_database[("Application database")]
end

node_traveler(("Explorer or guide"))

node_traveler -->|"uses"| node_routing
node_routing -->|"routes to"| node_authui
node_routing -->|"routes to"| node_explorer
node_routing -->|"routes to"| node_guidehome
node_routing -->|"routes to"| node_discover
node_explorer -->|"renders"| node_social
node_guidehome -->|"renders"| node_social
node_traveler -.->|"discovers guides"| node_discover
node_traveler -.->|"views spots"| node_map
node_discover -.->|"starts matching"| node_matching
node_traveler -.->|"books tour"| node_bookings
node_itinerary -.->|"manages itinerary"| node_bookings
node_traveler -.->|"reviews reports"| node_admin
node_routing -->|"routes to"| node_admin
node_authui -.->|"authenticates"| node_authapi
node_profileapi -->|"reads and writes"| node_database
node_guides -->|"reads and writes"| node_database
node_bookings -->|"reads and writes"| node_database
node_bookings -.->|"schedules reminders"| node_reminders
node_reminders -->|"reads and writes"| node_database
node_spotapi -->|"reads and writes"| node_database
node_curated -.->|"uses"| node_database
node_adminapi -->|"reads and writes"| node_database
node_admin -.->|"manages safety"| node_adminapi
node_explorer -.->|"loads profile"| node_profileapi
node_discover -.->|"loads guides"| node_guides
node_map -.->|"loads spots"| node_curated
node_traveler -.->|"messages"| node_messaging
node_traveler -.->|"shares posts"| node_social
node_guides -.->|"publishes tours"| node_tours
node_tours -.->|"reads and writes"| node_database

click node_explorer "https://github.com/cheese-20/wandersync/blob/main/src/pages/ExplorerHome.jsx"
click node_guidehome "https://github.com/cheese-20/wandersync/blob/main/src/pages/GuideHome.jsx"
click node_routing "https://github.com/cheese-20/wandersync/blob/main/src/App.jsx"
click node_authui "https://github.com/cheese-20/wandersync/blob/main/src/pages/AuthForm.jsx"
click node_discover "https://github.com/cheese-20/wandersync/blob/main/src/pages/Discover.jsx"
click node_map "https://github.com/cheese-20/wandersync/blob/main/src/components/MapModal.jsx"
click node_social "https://github.com/cheese-20/wandersync/blob/main/src/components/CreatePostModal.jsx"
click node_matching "https://github.com/cheese-20/wandersync/blob/main/src/pages/Match.jsx"
click node_messaging "https://github.com/cheese-20/wandersync/blob/main/src/pages/Messages.jsx"
click node_profileapi "https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/ProfileController.cs"
click node_guides "https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/LocalGuideController.cs"
click node_tours "https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/ToursController.cs"
click node_bookings "https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/BookingsController.cs"
click node_itinerary "https://github.com/cheese-20/wandersync/blob/main/src/pages/ManageItinerary.jsx"
click node_curated "https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/CuratedSpotsController.cs"
click node_spotapi "https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/SpotController.cs"
click node_admin "https://github.com/cheese-20/wandersync/blob/main/src/pages/AdminHome.jsx"
click node_adminapi "https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/AdminController.cs"
click node_authapi "https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/AuthController.cs"
click node_reminders "https://github.com/cheese-20/wandersync/blob/main/backend/Services/BookingReminderService.cs"
click node_database "https://github.com/cheese-20/wandersync/blob/main/backend/Data/WanderSyncDbContext.cs"

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_explorer,node_guidehome,node_routing,node_authui,node_discover,node_map toneBlue
class node_social,node_matching,node_messaging,node_profileapi toneAmber
class node_guides,node_tours,node_bookings,node_itinerary toneMint
class node_curated,node_spotapi toneRose
class node_admin,node_adminapi,node_authapi,node_reminders,node_database,node_traveler toneIndigo
```

## Components

### Web experience

- [Explorer home](https://github.com/cheese-20/wandersync/blob/main/src/pages/ExplorerHome.jsx): `src/pages/ExplorerHome.jsx`
- [Guide home](https://github.com/cheese-20/wandersync/blob/main/src/pages/GuideHome.jsx): `src/pages/GuideHome.jsx`
- [App routing](https://github.com/cheese-20/wandersync/blob/main/src/App.jsx): `src/App.jsx`
- [Sign in](https://github.com/cheese-20/wandersync/blob/main/src/pages/AuthForm.jsx): `src/pages/AuthForm.jsx`
- [Explore guides](https://github.com/cheese-20/wandersync/blob/main/src/pages/Discover.jsx): `src/pages/Discover.jsx`
- [Curated map](https://github.com/cheese-20/wandersync/blob/main/src/components/MapModal.jsx): `src/components/MapModal.jsx`

### Identity and community

- [Posts and profiles](https://github.com/cheese-20/wandersync/blob/main/src/components/CreatePostModal.jsx): `src/components/CreatePostModal.jsx`
- [People matching](https://github.com/cheese-20/wandersync/blob/main/src/pages/Match.jsx): `src/pages/Match.jsx`
- [Messages](https://github.com/cheese-20/wandersync/blob/main/src/pages/Messages.jsx): `src/pages/Messages.jsx`
- [Profile service](https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/ProfileController.cs): `backend/Controllers/ProfileController.cs`

### Guides and bookings

- [Guide services](https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/LocalGuideController.cs): `backend/Controllers/LocalGuideController.cs`
- [Tour management](https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/ToursController.cs): `backend/Controllers/ToursController.cs`
- [Booking workflow](https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/BookingsController.cs): `backend/Controllers/BookingsController.cs`
- [Itinerary management](https://github.com/cheese-20/wandersync/blob/main/src/pages/ManageItinerary.jsx): `src/pages/ManageItinerary.jsx`

### Spot discovery

- [Curated spots](https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/CuratedSpotsController.cs): `backend/Controllers/CuratedSpotsController.cs`
- [Spot moderation](https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/SpotController.cs): `backend/Controllers/SpotController.cs`

### Platform services

- [Admin dashboard](https://github.com/cheese-20/wandersync/blob/main/src/pages/AdminHome.jsx): `src/pages/AdminHome.jsx`
- [Admin services](https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/AdminController.cs): `backend/Controllers/AdminController.cs`
- [Authentication](https://github.com/cheese-20/wandersync/blob/main/backend/Controllers/AuthController.cs): `backend/Controllers/AuthController.cs`
- [Booking reminders](https://github.com/cheese-20/wandersync/blob/main/backend/Services/BookingReminderService.cs): `backend/Services/BookingReminderService.cs`
- [Application database](https://github.com/cheese-20/wandersync/blob/main/backend/Data/WanderSyncDbContext.cs): `backend/Data/WanderSyncDbContext.cs`

### Other components

- **Explorer or guide**

## Connections

- Explorer or guide → App routing: uses (evidence: `src/App.jsx`)
- App routing → Sign in: routes to (evidence: `src/App.jsx`)
- App routing → Explorer home: routes to (evidence: `src/App.jsx`)
- App routing → Guide home: routes to (evidence: `src/App.jsx`)
- App routing → Explore guides: routes to (evidence: `src/App.jsx`)
- Explorer home → Posts and profiles: renders (evidence: `src/pages/ExplorerHome.jsx`)
- Guide home → Posts and profiles: renders (evidence: `src/pages/GuideHome.jsx`)
- Explorer or guide → Explore guides: discovers guides (evidence: `README.md`)
- Explorer or guide → Curated map: views spots (evidence: `README.md`)
- Explore guides → People matching: starts matching (evidence: `README.md`)
- Explorer or guide → Booking workflow: books tour (evidence: `README.md`)
- Itinerary management → Booking workflow: manages itinerary
- Explorer or guide → Admin dashboard: reviews reports (evidence: `README.md`)
- App routing → Admin dashboard: routes to (evidence: `src/App.jsx`)
- Sign in → Authentication: authenticates
- Profile service → Application database: reads and writes (evidence: `backend/Controllers/ProfileController.cs`)
- Guide services → Application database: reads and writes (evidence: `backend/Controllers/LocalGuideController.cs`)
- Booking workflow → Application database: reads and writes (evidence: `backend/Controllers/BookingsController.cs`)
- Booking workflow → Booking reminders: schedules reminders
- Booking reminders → Application database: reads and writes (evidence: `backend/Services/BookingReminderService.cs`)
- Spot moderation → Application database: reads and writes (evidence: `backend/Controllers/SpotController.cs`)
- Curated spots → Application database: uses
- Admin services → Application database: reads and writes (evidence: `backend/Controllers/AdminController.cs`)
- Admin dashboard → Admin services: manages safety (evidence: `README.md`)
- Explorer home → Profile service: loads profile
- Explore guides → Guide services: loads guides
- Curated map → Curated spots: loads spots
- Explorer or guide → Messages: messages (evidence: `README.md`)
- Explorer or guide → Posts and profiles: shares posts
- Guide services → Tour management: publishes tours
- Tour management → Application database: reads and writes
