# nsmkservices/aagman architecture

> Architecture diagram of the GitHub repository nsmkservices/aagman, 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/nsmkservices/aagman
- Repository: https://github.com/nsmkservices/aagman

## Overview

AAGMAN is a Maharashtra tourism and heritage SPA. Travelers browse destination and cultural content, explore maps and media, and use trip-planning, saved-trip, and account features; administrators authenticate and manage destination, festival, and video content. The graph focuses on the fuller aagman-app implementation. Some page and provider internals are unsampled, so their internal links are omitted; documented product capabilities remain represented.

Main entry points: [`aagman-app/src/routes/AppRoutes.jsx`](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/routes/AppRoutes.jsx) (App Routes), [`aagman-app/src/lib/supabase.js`](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/lib/supabase.js) (Supabase Client), [`aagman-app/src/pages/admin/AdminPlaceManagerPage.jsx`](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/pages/admin/AdminPlaceManagerPage.jsx) (Place Manager), [`aagman-app/src/pages/HomePage.jsx`](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/pages/HomePage.jsx) (Home Experience)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_traveler["Traveler Experience"]
  node_public["Explore &amp; Heritage"]
  node_home["Home Experience<br/>[HomePage.jsx]"]
  node_map["Interactive Map"]
  node_trip["Trip Planning<br/>[PlannerPage.jsx]"]
  node_traveler_accounts["Traveler Accounts<br/>[AuthContext.jsx]"]
  node_saved["Trips &amp; Wishlist<br/>[TripContext.jsx]"]
end

subgraph group_content["Tourism Content"]
  node_destination_data["Destination Catalog<br/>[destinations.js]"]
  node_festival_data["Festival Catalog<br/>[festivals.js]"]
  node_video_data["Video Catalog<br/>[videos.js]"]
  node_content_service["Content Service<br/>[contentService.js]"]
  node_video_service["Video Service<br/>[videoService.js]"]
end

subgraph group_admin["Administration"]
  node_admin_routes["Admin Portal"]
  node_admin_auth["Admin Access"]
  node_place_manager["Place Manager"]
  node_media["Media Manager<br/>[MediaManager.jsx]"]
  node_audit["Audit Service<br/>[auditService.js]"]
end

subgraph group_platform["Shared Platform"]
  node_routes["App Routes<br/>[AppRoutes.jsx]"]
  node_supabase["Supabase Client<br/>[supabase.js]"]
end

node_traveler(("Traveler"))
node_supabase_backend[("Supabase Backend")]
node_object_storage[("Media Storage")]

node_traveler -->|"opens app"| node_routes
node_routes -->|"routes to"| node_public
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_map
node_routes -->|"routes to"| node_trip
node_home -->|"reads catalog"| node_destination_data
node_home -->|"reads catalog"| node_festival_data
node_home -->|"reads catalog"| node_video_data
node_routes -->|"routes to"| node_saved
node_routes -->|"routes to"| node_admin_routes
node_place_manager -->|"manages content"| node_content_service
node_place_manager -->|"manages videos"| node_video_service
node_place_manager -->|"checks access"| node_admin_auth
node_place_manager -->|"opens editor"| node_media
node_content_service -->|"reads and writes"| node_supabase
node_video_service -->|"reads and writes"| node_supabase
node_audit -->|"syncs logs"| node_supabase
node_admin_auth -->|"authenticates"| node_supabase
node_admin_auth -->|"records activity"| node_audit
node_media -->|"uploads files"| node_supabase
node_supabase -.->|"connects to"| node_supabase_backend
node_media -->|"stores media"| node_object_storage

click node_routes "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/routes/AppRoutes.jsx"
click node_public "https://github.com/nsmkservices/aagman/tree/main/aagman-app/src/pages"
click node_home "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/pages/HomePage.jsx"
click node_map "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/pages/InteractiveMapPage.jsx"
click node_trip "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/pages/PlannerPage.jsx"
click node_traveler_accounts "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/context/AuthContext.jsx"
click node_saved "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/context/TripContext.jsx"
click node_destination_data "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/data/destinations.js"
click node_festival_data "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/data/festivals.js"
click node_video_data "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/data/videos.js"
click node_admin_routes "https://github.com/nsmkservices/aagman/tree/main/aagman-app/src/pages/admin"
click node_admin_auth "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/context/AdminAuthContext.jsx"
click node_place_manager "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/pages/admin/AdminPlaceManagerPage.jsx"
click node_media "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/components/admin/MediaManager.jsx"
click node_content_service "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/services/contentService.js"
click node_video_service "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/services/videoService.js"
click node_audit "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/services/auditService.js"
click node_supabase "https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/lib/supabase.js"

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_public,node_home,node_map,node_trip,node_traveler_accounts,node_saved toneBlue
class node_destination_data,node_festival_data,node_video_data,node_content_service,node_video_service,node_supabase_backend,node_object_storage toneAmber
class node_admin_routes,node_admin_auth,node_place_manager,node_media,node_audit toneMint
class node_routes,node_supabase toneRose
class node_traveler toneIndigo
```

## Components

### Traveler Experience

- [Explore & Heritage](https://github.com/nsmkservices/aagman/tree/main/aagman-app/src/pages): `aagman-app/src/pages`
- [Home Experience](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/pages/HomePage.jsx): `aagman-app/src/pages/HomePage.jsx`
- [Interactive Map](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/pages/InteractiveMapPage.jsx): `aagman-app/src/pages/InteractiveMapPage.jsx`
- [Trip Planning](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/pages/PlannerPage.jsx): `aagman-app/src/pages/PlannerPage.jsx`
- [Traveler Accounts](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/context/AuthContext.jsx): `aagman-app/src/context/AuthContext.jsx`
- [Trips & Wishlist](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/context/TripContext.jsx): `aagman-app/src/context/TripContext.jsx`

### Tourism Content

- [Destination Catalog](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/data/destinations.js): `aagman-app/src/data/destinations.js`
- [Festival Catalog](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/data/festivals.js): `aagman-app/src/data/festivals.js`
- [Video Catalog](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/data/videos.js): `aagman-app/src/data/videos.js`
- [Content Service](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/services/contentService.js): `aagman-app/src/services/contentService.js`
- [Video Service](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/services/videoService.js): `aagman-app/src/services/videoService.js`

### Administration

- [Admin Portal](https://github.com/nsmkservices/aagman/tree/main/aagman-app/src/pages/admin): `aagman-app/src/pages/admin`
- [Admin Access](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/context/AdminAuthContext.jsx): `aagman-app/src/context/AdminAuthContext.jsx`
- [Place Manager](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/pages/admin/AdminPlaceManagerPage.jsx): `aagman-app/src/pages/admin/AdminPlaceManagerPage.jsx`
- [Media Manager](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/components/admin/MediaManager.jsx): `aagman-app/src/components/admin/MediaManager.jsx`
- [Audit Service](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/services/auditService.js): `aagman-app/src/services/auditService.js`

### Shared Platform

- [App Routes](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/routes/AppRoutes.jsx): `aagman-app/src/routes/AppRoutes.jsx`
- [Supabase Client](https://github.com/nsmkservices/aagman/blob/main/aagman-app/src/lib/supabase.js): `aagman-app/src/lib/supabase.js`

### Other components

- **Traveler**
- **Supabase Backend**
- **Media Storage**

## Connections

- Traveler → App Routes: opens app (evidence: `aagman-app/src/routes/AppRoutes.jsx`)
- App Routes → Explore & Heritage: routes to (evidence: `aagman-app/src/routes/AppRoutes.jsx`)
- App Routes → Home Experience: routes to (evidence: `aagman-app/src/routes/AppRoutes.jsx`)
- App Routes → Interactive Map: routes to (evidence: `aagman-app/src/routes/AppRoutes.jsx`)
- App Routes → Trip Planning: routes to (evidence: `aagman-app/src/routes/AppRoutes.jsx`)
- Home Experience → Destination Catalog: reads catalog
- Home Experience → Festival Catalog: reads catalog
- Home Experience → Video Catalog: reads catalog
- App Routes → Trips & Wishlist: routes to (evidence: `aagman-app/src/routes/AppRoutes.jsx`)
- App Routes → Admin Portal: routes to (evidence: `aagman-app/src/routes/AppRoutes.jsx`)
- Place Manager → Content Service: manages content (evidence: `aagman-app/src/pages/admin/AdminPlaceManagerPage.jsx`)
- Place Manager → Video Service: manages videos (evidence: `aagman-app/src/pages/admin/AdminPlaceManagerPage.jsx`)
- Place Manager → Admin Access: checks access (evidence: `aagman-app/src/pages/admin/AdminPlaceManagerPage.jsx`)
- Place Manager → Media Manager: opens editor (evidence: `aagman-app/src/pages/admin/AdminPlaceManagerPage.jsx`)
- Content Service → Supabase Client: reads and writes (evidence: `aagman-app/src/services/contentService.js`)
- Video Service → Supabase Client: reads and writes (evidence: `aagman-app/src/services/videoService.js`)
- Audit Service → Supabase Client: syncs logs (evidence: `aagman-app/src/services/auditService.js`)
- Admin Access → Supabase Client: authenticates (evidence: `aagman-app/src/context/AdminAuthContext.jsx`)
- Admin Access → Audit Service: records activity (evidence: `aagman-app/src/context/AdminAuthContext.jsx`)
- Media Manager → Supabase Client: uploads files (evidence: `aagman-app/src/components/admin/MediaManager.jsx`)
- Supabase Client → Supabase Backend: connects to (evidence: `aagman-app/src/lib/supabase.js`)
- Media Manager → Media Storage: stores media (evidence: `aagman-app/src/components/admin/MediaManager.jsx`)
