# onerberk/wander architecture

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

- Interactive diagram: https://gitdiagram.com/onerberk/wander
- Repository: https://github.com/onerberk/wander

## Overview

Wander is a Paris discovery app: people browse events in a list or interactive map, filter results, and open marker or event details. Its API serves event, Vélib, weather, and AI capabilities; scheduled ingestion refreshes event data into Redis. The README also describes map layers for transit and Space Invaders, which are represented as product capabilities although their runtime wiring was not sampled. Edges follow shown source references or README statements; unsampled integrations are omitted where their caller is unclear.

Main entry points: [`apps/api/src/paris-events/paris-events.service.ts`](https://github.com/onerberk/wander/blob/main/apps/api/src/paris-events/paris-events.service.ts) (Event source adapter), [`apps/api/src/redis/redis.service.ts`](https://github.com/onerberk/wander/blob/main/apps/api/src/redis/redis.service.ts) (Redis cache), [`apps/web/src/pages/routes.tsx`](https://github.com/onerberk/wander/blob/main/apps/web/src/pages/routes.tsx) (App routes), [`apps/api/src/events/events.controller.ts`](https://github.com/onerberk/wander/blob/main/apps/api/src/events/events.controller.ts) (Events endpoint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web discovery"]
  node_webapp["Web app<br/>[App.tsx]"]
  node_routes["App routes<br/>[routes.tsx]"]
  node_eventlist["Event browsing<br/>[list-page.tsx]"]
  node_map["Interactive map<br/>[wander-map.tsx]"]
  node_maplayers["Map layers<br/>[event-layers.ts]"]
  node_filters["Event filters"]
  node_details["Event details"]
  node_webapi["API queries<br/>[client.ts]"]
  node_weatherui["Weather display<br/>[weather-mobile.tsx]"]
end

subgraph group_events["Event platform"]
  node_eventsapi["Events endpoint"]
  node_eventservice["Event queries<br/>[events.service.ts]"]
  node_filtersdto["Query validation"]
  node_ingestion["Event ingestion"]
  node_parisevents["Event source adapter"]
end

subgraph group_live["Live data"]
  node_redis[("Redis cache<br/>[redis.service.ts]")]
  node_velib["Vélib service<br/>[velib.service.ts]"]
  node_weather["Weather service<br/>[weather.service.ts]"]
end

subgraph group_assist["AI assistance"]
  node_aiendpoint["AI chat endpoint<br/>[ai.controller.ts]"]
  node_aiservice["AI assistant<br/>[ai.service.ts]"]
  node_aitools["AI tools"]
end

subgraph group_shared["Shared contracts"]
  node_types["Shared data types<br/>[event.types.ts]"]
end

node_visitor(("Visitor"))
node_eventsource["Que Faire à Paris"]
node_geocoder["Address geocoder"]
node_claude["Claude API"]

node_visitor -->|"browses"| node_webapp
node_webapp -->|"loads routes"| node_routes
node_routes -->|"routes to"| node_eventlist
node_routes -->|"routes to"| node_map
node_routes -->|"routes to"| node_details
node_visitor -->|"explores"| node_map
node_map -->|"displays layers"| node_maplayers
node_visitor -->|"sets filters"| node_filters
node_visitor -->|"opens details"| node_details
node_eventlist -.->|"loads event data"| node_webapi
node_webapi -.->|"requests events"| node_eventsapi
node_eventsapi -->|"delegates"| node_eventservice
node_eventservice -->|"queries events"| node_parisevents
node_eventservice -->|"reads cache"| node_redis
node_eventsapi -->|"validates query"| node_filtersdto
node_ingestion -->|"fetches by zone"| node_parisevents
node_ingestion -->|"swaps event data"| node_redis
node_parisevents -->|"fetches events"| node_eventsource
node_parisevents -->|"reads and caches geocodes"| node_redis
node_parisevents -->|"geocodes addresses"| node_geocoder
node_velib -->|"uses cache"| node_redis
node_weather -->|"uses cache"| node_redis
node_weatherui -.->|"shows forecast"| node_weather
node_aiendpoint -->|"delegates chat"| node_aiservice
node_aiservice -->|"uses tools"| node_aitools
node_aiservice -.->|"requests suggestions"| node_claude

click node_webapp "https://github.com/onerberk/wander/blob/main/apps/web/src/App.tsx"
click node_routes "https://github.com/onerberk/wander/blob/main/apps/web/src/pages/routes.tsx"
click node_eventlist "https://github.com/onerberk/wander/blob/main/apps/web/src/pages/list-page.tsx"
click node_map "https://github.com/onerberk/wander/blob/main/apps/web/src/components/map/wander-map.tsx"
click node_maplayers "https://github.com/onerberk/wander/blob/main/apps/web/src/components/map/event-layers.ts"
click node_filters "https://github.com/onerberk/wander/blob/main/apps/web/src/hooks/use-event-filters.ts"
click node_details "https://github.com/onerberk/wander/blob/main/apps/web/src/pages/event-details-page.tsx"
click node_webapi "https://github.com/onerberk/wander/blob/main/apps/web/src/api/client.ts"
click node_eventsapi "https://github.com/onerberk/wander/blob/main/apps/api/src/events/events.controller.ts"
click node_eventservice "https://github.com/onerberk/wander/blob/main/apps/api/src/events/events.service.ts"
click node_filtersdto "https://github.com/onerberk/wander/blob/main/apps/api/src/filters/dtos/query-filter.dto.ts"
click node_ingestion "https://github.com/onerberk/wander/blob/main/apps/api/src/ingestion/ingestion.service.ts"
click node_parisevents "https://github.com/onerberk/wander/blob/main/apps/api/src/paris-events/paris-events.service.ts"
click node_redis "https://github.com/onerberk/wander/blob/main/apps/api/src/redis/redis.service.ts"
click node_velib "https://github.com/onerberk/wander/blob/main/apps/api/src/velib/velib.service.ts"
click node_weather "https://github.com/onerberk/wander/blob/main/apps/api/src/weather/weather.service.ts"
click node_weatherui "https://github.com/onerberk/wander/blob/main/apps/web/src/components/weather/weather-mobile.tsx"
click node_aiendpoint "https://github.com/onerberk/wander/blob/main/apps/api/src/A.I/ai.controller.ts"
click node_aiservice "https://github.com/onerberk/wander/blob/main/apps/api/src/A.I/ai.service.ts"
click node_aitools "https://github.com/onerberk/wander/blob/main/apps/api/src/A.I/ai-tools.service.ts"
click node_types "https://github.com/onerberk/wander/blob/main/packages/types/event.types.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_webapp,node_routes,node_eventlist,node_map,node_maplayers,node_filters,node_details,node_webapi,node_weatherui toneBlue
class node_eventsapi,node_eventservice,node_filtersdto,node_ingestion,node_parisevents toneAmber
class node_redis,node_velib,node_weather,node_claude toneMint
class node_aiendpoint,node_aiservice,node_aitools toneRose
class node_types,node_visitor,node_eventsource,node_geocoder toneIndigo
```

## Components

### Web discovery

- [Web app](https://github.com/onerberk/wander/blob/main/apps/web/src/App.tsx): `apps/web/src/App.tsx`
- [App routes](https://github.com/onerberk/wander/blob/main/apps/web/src/pages/routes.tsx): `apps/web/src/pages/routes.tsx`
- [Event browsing](https://github.com/onerberk/wander/blob/main/apps/web/src/pages/list-page.tsx): `apps/web/src/pages/list-page.tsx`
- [Interactive map](https://github.com/onerberk/wander/blob/main/apps/web/src/components/map/wander-map.tsx): `apps/web/src/components/map/wander-map.tsx`
- [Map layers](https://github.com/onerberk/wander/blob/main/apps/web/src/components/map/event-layers.ts): `apps/web/src/components/map/event-layers.ts`
- [Event filters](https://github.com/onerberk/wander/blob/main/apps/web/src/hooks/use-event-filters.ts): `apps/web/src/hooks/use-event-filters.ts`
- [Event details](https://github.com/onerberk/wander/blob/main/apps/web/src/pages/event-details-page.tsx): `apps/web/src/pages/event-details-page.tsx`
- [API queries](https://github.com/onerberk/wander/blob/main/apps/web/src/api/client.ts): `apps/web/src/api/client.ts`
- [Weather display](https://github.com/onerberk/wander/blob/main/apps/web/src/components/weather/weather-mobile.tsx): `apps/web/src/components/weather/weather-mobile.tsx`

### Event platform

- [Events endpoint](https://github.com/onerberk/wander/blob/main/apps/api/src/events/events.controller.ts): `apps/api/src/events/events.controller.ts`
- [Event queries](https://github.com/onerberk/wander/blob/main/apps/api/src/events/events.service.ts): `apps/api/src/events/events.service.ts`
- [Query validation](https://github.com/onerberk/wander/blob/main/apps/api/src/filters/dtos/query-filter.dto.ts): `apps/api/src/filters/dtos/query-filter.dto.ts`
- [Event ingestion](https://github.com/onerberk/wander/blob/main/apps/api/src/ingestion/ingestion.service.ts): `apps/api/src/ingestion/ingestion.service.ts`
- [Event source adapter](https://github.com/onerberk/wander/blob/main/apps/api/src/paris-events/paris-events.service.ts): `apps/api/src/paris-events/paris-events.service.ts`

### Live data

- [Redis cache](https://github.com/onerberk/wander/blob/main/apps/api/src/redis/redis.service.ts): `apps/api/src/redis/redis.service.ts`
- [Vélib service](https://github.com/onerberk/wander/blob/main/apps/api/src/velib/velib.service.ts): `apps/api/src/velib/velib.service.ts`
- [Weather service](https://github.com/onerberk/wander/blob/main/apps/api/src/weather/weather.service.ts): `apps/api/src/weather/weather.service.ts`

### AI assistance

- [AI chat endpoint](https://github.com/onerberk/wander/blob/main/apps/api/src/A.I/ai.controller.ts): `apps/api/src/A.I/ai.controller.ts`
- [AI assistant](https://github.com/onerberk/wander/blob/main/apps/api/src/A.I/ai.service.ts): `apps/api/src/A.I/ai.service.ts`
- [AI tools](https://github.com/onerberk/wander/blob/main/apps/api/src/A.I/ai-tools.service.ts): `apps/api/src/A.I/ai-tools.service.ts`

### Shared contracts

- [Shared data types](https://github.com/onerberk/wander/blob/main/packages/types/event.types.ts): `packages/types/event.types.ts`

### Other components

- **Visitor**
- **Que Faire à Paris**
- **Address geocoder**
- **Claude API**

## Connections

- Visitor → Web app: browses (evidence: `README.md`)
- Web app → App routes: loads routes (evidence: `apps/web/src/pages/routes.tsx`)
- App routes → Event browsing: routes to (evidence: `apps/web/src/pages/routes.tsx`)
- App routes → Interactive map: routes to (evidence: `apps/web/src/pages/routes.tsx`)
- App routes → Event details: routes to (evidence: `apps/web/src/pages/routes.tsx`)
- Visitor → Interactive map: explores (evidence: `README.md`)
- Interactive map → Map layers: displays layers (evidence: `README.md`)
- Visitor → Event filters: sets filters (evidence: `README.md`)
- Visitor → Event details: opens details (evidence: `README.md`)
- Event browsing → API queries: loads event data
- API queries → Events endpoint: requests events
- Events endpoint → Event queries: delegates (evidence: `apps/api/src/events/events.controller.ts`)
- Event queries → Event source adapter: queries events (evidence: `apps/api/src/events/events.service.ts`)
- Event queries → Redis cache: reads cache (evidence: `apps/api/src/events/events.service.ts`)
- Events endpoint → Query validation: validates query (evidence: `apps/api/src/events/events.controller.ts`)
- Event ingestion → Event source adapter: fetches by zone (evidence: `apps/api/src/ingestion/ingestion.service.ts`)
- Event ingestion → Redis cache: swaps event data (evidence: `apps/api/src/ingestion/ingestion.service.ts`)
- Event source adapter → Que Faire à Paris: fetches events (evidence: `apps/api/src/paris-events/paris-events.service.ts`)
- Event source adapter → Redis cache: reads and caches geocodes (evidence: `apps/api/src/paris-events/paris-events.service.ts`)
- Event source adapter → Address geocoder: geocodes addresses (evidence: `apps/api/src/paris-events/paris-events.service.ts`)
- Vélib service → Redis cache: uses cache (evidence: `apps/api/src/velib/velib.service.ts`)
- Weather service → Redis cache: uses cache (evidence: `apps/api/src/weather/weather.service.ts`)
- Weather display → Weather service: shows forecast
- AI chat endpoint → AI assistant: delegates chat (evidence: `apps/api/src/A.I/ai.controller.ts`)
- AI assistant → AI tools: uses tools (evidence: `apps/api/src/A.I/ai.service.ts`)
- AI assistant → Claude API: requests suggestions (evidence: `README.md`)
