# stuvascript/eventopia-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/stuvascript/eventopia-frontend
- Repository: https://github.com/stuvascript/eventopia-frontend

## Overview

Eventopia’s frontend supports finding local events, browsing and saving them to a personal planner, alongside account registration, login, and password-recovery flows. The main journey is location/date search through event results, then saving an event and viewing saved itinerary items. The README identifies a separately deployed backend; this map shows only the frontend and its documented HTTP boundary. Some page and authentication wiring is visible in the app router, but unsampled page implementations and several API call details are not inferred.

Main entry points: [`src/App.jsx`](https://github.com/stuvascript/eventopia-frontend/blob/main/src/App.jsx) (App router), [`src/Components/NavBar.jsx`](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/NavBar.jsx) (Search navigation), [`src/Components/EventResult.jsx`](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/EventResult.jsx) (Event results), [`src/Components/EventGrid.jsx`](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/EventGrid.jsx) (Home event grid)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_app["App router<br/>[App.jsx]"]
  node_home["Home page<br/>[HomePage.jsx]"]
end

subgraph group_discovery["Event discovery"]
  node_navbar["Search navigation<br/>[NavBar.jsx]"]
  node_locationpicker["Location picker<br/>[LocationPicker.jsx]"]
  node_datepicker["Date picker<br/>[DatePicker.jsx]"]
  node_eventapi["Event search API"]
  node_resultsroute["Results page"]
  node_results["Event results<br/>[EventResult.jsx]"]
  node_eventgrid["Home event grid<br/>[EventGrid.jsx]"]
end

subgraph group_planner["Saved planner"]
  node_planner["My planner<br/>[MyPlanner.jsx]"]
  node_itineraryapi["Itinerary API"]
  node_emptylist["Empty planner view<br/>[EmptyList.jsx]"]
end

subgraph group_accounts["Account access"]
  node_authroutes["Account forms<br/>[SignUp.jsx]"]
  node_login["Login form<br/>[Login.jsx]"]
  node_authcontext["Auth state<br/>[AuthContext.jsx]"]
end

subgraph group_shared["Shared services"]
  node_locationhelper["Location and events<br/>[LocationHelper.jsx]"]
  node_daterange["Date filtering<br/>[daterangefilter.js]"]
  node_normalizer["Event normalization<br/>[normalizeEvent.js]"]
  node_eventcard["Event card<br/>[EventCard.jsx]"]
  node_http["HTTP helpers<br/>[index.js]"]
end

node_visitor(("Event seeker"))
node_backend["Eventopia backend"]
node_geocoder["Reverse geocoder"]
node_ticketmaster["Ticketmaster events"]

node_visitor -->|"uses"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_resultsroute
node_app -->|"routes to"| node_planner
node_app -->|"routes to"| node_authroutes
node_app -->|"routes to"| node_login
node_home -->|"renders"| node_eventgrid
node_navbar -->|"renders"| node_locationpicker
node_navbar -.->|"renders"| node_datepicker
node_navbar -->|"calls"| node_http
node_navbar -->|"requests events"| node_eventapi
node_eventapi -.->|"HTTP request"| node_backend
node_resultsroute -->|"renders"| node_results
node_results -->|"filters with"| node_daterange
node_results -->|"fetches saved items"| node_itineraryapi
node_results -.->|"renders"| node_eventcard
node_eventgrid -->|"renders"| node_eventcard
node_eventgrid -->|"loads events"| node_locationhelper
node_locationhelper -->|"reverse geocodes"| node_geocoder
node_locationhelper -->|"requests events"| node_backend
node_backend -.->|"queries events"| node_ticketmaster
node_eventgrid -->|"normalizes"| node_normalizer
node_eventcard -->|"saves event"| node_itineraryapi
node_planner -->|"calls"| node_http
node_planner -->|"loads itinerary"| node_itineraryapi
node_planner -->|"renders when empty"| node_emptylist
node_itineraryapi -.->|"HTTP request"| node_backend
node_authroutes -->|"posts signup"| node_http
node_authroutes -->|"sets session"| node_authcontext
node_login -->|"sets session"| node_authcontext
node_app -->|"provides"| node_authcontext
node_http -.->|"HTTP requests"| node_backend

click node_app "https://github.com/stuvascript/eventopia-frontend/blob/main/src/App.jsx"
click node_home "https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Pages/HomePage.jsx"
click node_navbar "https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/NavBar.jsx"
click node_locationpicker "https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Shared/LocationPicker.jsx"
click node_datepicker "https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Shared/DatePicker.jsx"
click node_resultsroute "https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Pages/EventResultPage.jsx"
click node_results "https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/EventResult.jsx"
click node_eventgrid "https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/EventGrid.jsx"
click node_locationhelper "https://github.com/stuvascript/eventopia-frontend/blob/main/src/util/LocationHelper.jsx"
click node_daterange "https://github.com/stuvascript/eventopia-frontend/blob/main/src/util/daterangefilter.js"
click node_normalizer "https://github.com/stuvascript/eventopia-frontend/blob/main/src/util/normalizeEvent.js"
click node_eventcard "https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Shared/EventCard.jsx"
click node_planner "https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Pages/MyPlanner.jsx"
click node_emptylist "https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Shared/EmptyList.jsx"
click node_authroutes "https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Authentication/SignUp.jsx"
click node_login "https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Authentication/Login.jsx"
click node_authcontext "https://github.com/stuvascript/eventopia-frontend/blob/main/src/context/AuthContext.jsx"
click node_http "https://github.com/stuvascript/eventopia-frontend/blob/main/src/util/index.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_app,node_home toneBlue
class node_navbar,node_locationpicker,node_datepicker,node_eventapi,node_resultsroute,node_results,node_eventgrid toneAmber
class node_planner,node_itineraryapi,node_emptylist toneMint
class node_authroutes,node_login,node_authcontext toneRose
class node_locationhelper,node_daterange,node_normalizer,node_eventcard,node_http,node_visitor,node_backend,node_geocoder,node_ticketmaster toneIndigo
```

## Components

### App navigation

- [App router](https://github.com/stuvascript/eventopia-frontend/blob/main/src/App.jsx): `src/App.jsx`
- [Home page](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Pages/HomePage.jsx): `src/Components/Pages/HomePage.jsx`

### Event discovery

- [Search navigation](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/NavBar.jsx): `src/Components/NavBar.jsx`
- [Location picker](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Shared/LocationPicker.jsx): `src/Components/Shared/LocationPicker.jsx`
- [Date picker](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Shared/DatePicker.jsx): `src/Components/Shared/DatePicker.jsx`
- **Event search API**
- [Results page](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Pages/EventResultPage.jsx): `src/Components/Pages/EventResultPage.jsx`
- [Event results](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/EventResult.jsx): `src/Components/EventResult.jsx`
- [Home event grid](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/EventGrid.jsx): `src/Components/EventGrid.jsx`

### Saved planner

- [My planner](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Pages/MyPlanner.jsx): `src/Components/Pages/MyPlanner.jsx`
- **Itinerary API**
- [Empty planner view](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Shared/EmptyList.jsx): `src/Components/Shared/EmptyList.jsx`

### Account access

- [Account forms](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Authentication/SignUp.jsx): `src/Components/Authentication/SignUp.jsx`
- [Login form](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Authentication/Login.jsx): `src/Components/Authentication/Login.jsx`
- [Auth state](https://github.com/stuvascript/eventopia-frontend/blob/main/src/context/AuthContext.jsx): `src/context/AuthContext.jsx`

### Shared services

- [Location and events](https://github.com/stuvascript/eventopia-frontend/blob/main/src/util/LocationHelper.jsx): `src/util/LocationHelper.jsx`
- [Date filtering](https://github.com/stuvascript/eventopia-frontend/blob/main/src/util/daterangefilter.js): `src/util/daterangefilter.js`
- [Event normalization](https://github.com/stuvascript/eventopia-frontend/blob/main/src/util/normalizeEvent.js): `src/util/normalizeEvent.js`
- [Event card](https://github.com/stuvascript/eventopia-frontend/blob/main/src/Components/Shared/EventCard.jsx): `src/Components/Shared/EventCard.jsx`
- [HTTP helpers](https://github.com/stuvascript/eventopia-frontend/blob/main/src/util/index.js): `src/util/index.js`

### Other components

- **Event seeker**
- **Eventopia backend**
- **Reverse geocoder**
- **Ticketmaster events**

## Connections

- Event seeker → App router: uses (evidence: `src/App.jsx`)
- App router → Home page: routes to (evidence: `src/App.jsx`)
- App router → Results page: routes to (evidence: `src/App.jsx`)
- App router → My planner: routes to (evidence: `src/App.jsx`)
- App router → Account forms: routes to (evidence: `src/App.jsx`)
- App router → Login form: routes to (evidence: `src/App.jsx`)
- Home page → Home event grid: renders (evidence: `src/Components/Pages/HomePage.jsx`)
- Search navigation → Location picker: renders (evidence: `src/Components/NavBar.jsx`)
- Search navigation → Date picker: renders (evidence: `src/Components/NavBar.jsx`)
- Search navigation → HTTP helpers: calls (evidence: `src/Components/NavBar.jsx`)
- Search navigation → Event search API: requests events (evidence: `src/Components/NavBar.jsx`)
- Event search API → Eventopia backend: HTTP request
- Results page → Event results: renders (evidence: `src/Components/Pages/EventResultPage.jsx`)
- Event results → Date filtering: filters with (evidence: `src/Components/EventResult.jsx`)
- Event results → Itinerary API: fetches saved items (evidence: `src/Components/EventResult.jsx`)
- Event results → Event card: renders
- Home event grid → Event card: renders (evidence: `src/Components/EventGrid.jsx`)
- Home event grid → Location and events: loads events (evidence: `src/Components/EventGrid.jsx`)
- Location and events → Reverse geocoder: reverse geocodes (evidence: `src/util/LocationHelper.jsx`)
- Location and events → Eventopia backend: requests events (evidence: `src/util/LocationHelper.jsx`)
- Eventopia backend → Ticketmaster events: queries events
- Home event grid → Event normalization: normalizes (evidence: `src/Components/EventGrid.jsx`)
- Event card → Itinerary API: saves event (evidence: `src/Components/Shared/EventCard.jsx`)
- My planner → HTTP helpers: calls (evidence: `src/Components/Pages/MyPlanner.jsx`)
- My planner → Itinerary API: loads itinerary (evidence: `src/Components/Pages/MyPlanner.jsx`)
- My planner → Empty planner view: renders when empty (evidence: `src/Components/Pages/MyPlanner.jsx`)
- Itinerary API → Eventopia backend: HTTP request
- Account forms → HTTP helpers: posts signup (evidence: `src/Components/Authentication/SignUp.jsx`)
- Account forms → Auth state: sets session (evidence: `src/Components/Authentication/SignUp.jsx`)
- Login form → Auth state: sets session (evidence: `src/Components/Authentication/Login.jsx`)
- App router → Auth state: provides (evidence: `src/App.jsx`)
- HTTP helpers → Eventopia backend: HTTP requests
