# ibrahimakhalilfaye6-a11y/guide-joj architecture

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

- Interactive diagram: https://gitdiagram.com/ibrahimakhalilfaye6-a11y/guide-joj
- Repository: https://github.com/ibrahimakhalilfaye6-a11y/guide-joj

## Overview

JOJ Guide is a public guide to Dakar 2026 youth Olympic sessions and venues. Visitors browse a live-aware daily schedule or the full programme, filter sessions, and open session details for ticketing, directions and calendar actions; venue pages and a map provide a location-oriented view. Shared data, time and presentation modules support these routes, while live-status and social/SEO features supplement them. The README is empty; some capabilities are supported by the source index rather than excerpts, so uncertain runtime links are omitted.

Main entry points: [`src/lib/data.ts`](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/data.ts) (Guide data), [`src/app/programme/page.tsx`](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/programme/page.tsx) (Full programme), [`src/app/session/[id]/page.tsx`](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/session/%5Bid%5D/page.tsx) (Session detail), [`src/components/SessionCard.tsx`](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/SessionCard.tsx) (Session cards)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browse["Schedule browsing"]
  node_home["Today view<br/>[page.tsx]"]
  node_today["Today controls<br/>[TodayView.tsx]"]
  node_programme["Full programme<br/>[page.tsx]"]
  node_controls["Programme filters"]
  node_filterchips["Filter chips<br/>[FilterChips.tsx]"]
  node_sessioncard["Session cards<br/>[SessionCard.tsx]"]
end

subgraph group_details["Sessions and venues"]
  node_sessionpage["Session detail<br/>[page.tsx]"]
  node_actions["Session actions<br/>[SessionActions.tsx]"]
  node_ics["Calendar export<br/>[ics.ts]"]
  node_sitespage["Venue directory<br/>[page.tsx]"]
  node_sitepage["Venue detail<br/>[page.tsx]"]
  node_map["Venue map<br/>[SitesMap.tsx]"]
  node_sitesview["Venue view<br/>[SitesView.tsx]"]
end

subgraph group_shared["Shared guide services"]
  node_data["Guide data<br/>[data.ts]"]
  node_schema["Data validation<br/>[schema.ts]"]
  node_cards["Card shaping<br/>[cards.ts]"]
  node_filters["Filter logic<br/>[filters.ts]"]
  node_time["Dakar time<br/>[time.ts]"]
  node_clock["Browser clock<br/>[useNow.ts]"]
  node_timeaware["Time-aware view<br/>[TimeAware.tsx]"]
  node_siteconfig["Site configuration<br/>[site.ts]"]
  node_seo["SEO metadata<br/>[seo.tsx]"]
end

subgraph group_live["Live and discovery"]
  node_livebanner["Live banner<br/>[LiveBanner.tsx]"]
  node_liveservice["Live status<br/>[live.ts]"]
  node_liveroute["Live endpoint<br/>[route.ts]"]
  node_og["Social images<br/>[og.tsx]"]
end

node_visitor(("Visitor"))
node_visitor_service(("Ticketing and maps"))

node_visitor -->|"opens"| node_home
node_home -->|"reads"| node_data
node_home -->|"renders"| node_today
node_today -->|"renders"| node_sessioncard
node_today -->|"filters"| node_filters
node_today -->|"reads time"| node_clock
node_visitor -->|"opens"| node_programme
node_programme -->|"reads"| node_data
node_programme -->|"renders"| node_controls
node_programme -->|"renders"| node_sessioncard
node_controls -->|"renders"| node_filterchips
node_controls -->|"uses"| node_filters
node_sessioncard -->|"uses"| node_cards
node_sessioncard -->|"formats"| node_time
node_visitor -->|"opens"| node_sessionpage
node_sessionpage -->|"looks up"| node_data
node_sessionpage -->|"renders"| node_actions
node_actions -->|"generates"| node_ics
node_sessionpage -->|"links to ticketing"| node_visitor_service
node_sessionpage -->|"links directions"| node_visitor_service
node_visitor -->|"opens"| node_sitespage
node_sitespage -->|"reads"| node_data
node_sitespage -->|"renders"| node_map
node_sitespage -->|"renders"| node_sitesview
node_sitesview -->|"uses"| node_map
node_visitor -->|"opens"| node_sitepage
node_sitepage -->|"looks up"| node_data
node_data -->|"validates"| node_schema
node_data -->|"builds cards"| node_cards
node_data -->|"derives days"| node_time
node_map -->|"renders"| node_sessioncard
node_map -->|"renders"| node_timeaware
node_timeaware -->|"reads time"| node_clock
node_timeaware -->|"uses"| node_time
node_programme -->|"configures"| node_seo
node_seo -->|"reads"| node_data
node_seo -->|"uses URLs"| node_siteconfig
node_liveroute -->|"calls"| node_liveservice
node_livebanner -->|"reads status"| node_liveservice
node_og -->|"uses URLs"| node_siteconfig

click node_home "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/page.tsx"
click node_today "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/TodayView.tsx"
click node_programme "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/programme/page.tsx"
click node_controls "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/ProgrammeControls.tsx"
click node_filterchips "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/FilterChips.tsx"
click node_sessioncard "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/SessionCard.tsx"
click node_sessionpage "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/session/%5Bid%5D/page.tsx"
click node_actions "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/SessionActions.tsx"
click node_ics "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/ics.ts"
click node_sitespage "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/sites/page.tsx"
click node_sitepage "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/sites/%5Bid%5D/page.tsx"
click node_map "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/SitesMap.tsx"
click node_sitesview "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/SitesView.tsx"
click node_data "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/data.ts"
click node_schema "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/schema.ts"
click node_cards "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/cards.ts"
click node_filters "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/filters.ts"
click node_time "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/time.ts"
click node_clock "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/useNow.ts"
click node_timeaware "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/TimeAware.tsx"
click node_siteconfig "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/site.ts"
click node_seo "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/seo.tsx"
click node_livebanner "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/LiveBanner.tsx"
click node_liveservice "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/live.ts"
click node_liveroute "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/api/live/route.ts"
click node_og "https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/og.tsx"

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_home,node_today,node_programme,node_controls,node_filterchips,node_sessioncard toneBlue
class node_sessionpage,node_actions,node_ics,node_sitespage,node_sitepage,node_map,node_sitesview toneAmber
class node_data,node_schema,node_cards,node_filters,node_time,node_clock,node_timeaware,node_siteconfig,node_seo toneMint
class node_livebanner,node_liveservice,node_liveroute,node_og toneRose
class node_visitor,node_visitor_service toneIndigo
```

## Components

### Schedule browsing

- [Today view](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Today controls](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/TodayView.tsx): `src/components/TodayView.tsx`
- [Full programme](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/programme/page.tsx): `src/app/programme/page.tsx`
- [Programme filters](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/ProgrammeControls.tsx): `src/components/ProgrammeControls.tsx`
- [Filter chips](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/FilterChips.tsx): `src/components/FilterChips.tsx`
- [Session cards](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/SessionCard.tsx): `src/components/SessionCard.tsx`

### Sessions and venues

- [Session detail](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/session/%5Bid%5D/page.tsx): `src/app/session/[id]/page.tsx`
- [Session actions](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/SessionActions.tsx): `src/components/SessionActions.tsx`
- [Calendar export](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/ics.ts): `src/lib/ics.ts`
- [Venue directory](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/sites/page.tsx): `src/app/sites/page.tsx`
- [Venue detail](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/sites/%5Bid%5D/page.tsx): `src/app/sites/[id]/page.tsx`
- [Venue map](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/SitesMap.tsx): `src/components/SitesMap.tsx`
- [Venue view](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/SitesView.tsx): `src/components/SitesView.tsx`

### Shared guide services

- [Guide data](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/data.ts): `src/lib/data.ts`
- [Data validation](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/schema.ts): `src/lib/schema.ts`
- [Card shaping](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/cards.ts): `src/lib/cards.ts`
- [Filter logic](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/filters.ts): `src/lib/filters.ts`
- [Dakar time](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/time.ts): `src/lib/time.ts`
- [Browser clock](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/useNow.ts): `src/lib/useNow.ts`
- [Time-aware view](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/TimeAware.tsx): `src/components/TimeAware.tsx`
- [Site configuration](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/site.ts): `src/lib/site.ts`
- [SEO metadata](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/seo.tsx): `src/lib/seo.tsx`

### Live and discovery

- [Live banner](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/components/LiveBanner.tsx): `src/components/LiveBanner.tsx`
- [Live status](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/live.ts): `src/lib/live.ts`
- [Live endpoint](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/app/api/live/route.ts): `src/app/api/live/route.ts`
- [Social images](https://github.com/ibrahimakhalilfaye6-a11y/guide-joj/blob/main/src/lib/og.tsx): `src/lib/og.tsx`

### Other components

- **Visitor**
- **Ticketing and maps**

## Connections

- Visitor → Today view: opens (evidence: `src/app/page.tsx`)
- Today view → Guide data: reads (evidence: `src/app/page.tsx`)
- Today view → Today controls: renders (evidence: `src/app/page.tsx`)
- Today controls → Session cards: renders (evidence: `src/components/TodayView.tsx`)
- Today controls → Filter logic: filters (evidence: `src/components/TodayView.tsx`)
- Today controls → Browser clock: reads time (evidence: `src/components/TodayView.tsx`)
- Visitor → Full programme: opens (evidence: `src/app/programme/page.tsx`)
- Full programme → Guide data: reads (evidence: `src/app/programme/page.tsx`)
- Full programme → Programme filters: renders (evidence: `src/app/programme/page.tsx`)
- Full programme → Session cards: renders (evidence: `src/app/programme/page.tsx`)
- Programme filters → Filter chips: renders (evidence: `src/components/ProgrammeControls.tsx`)
- Programme filters → Filter logic: uses (evidence: `src/components/ProgrammeControls.tsx`)
- Session cards → Card shaping: uses (evidence: `src/components/SessionCard.tsx`)
- Session cards → Dakar time: formats (evidence: `src/components/SessionCard.tsx`)
- Visitor → Session detail: opens
- Session detail → Guide data: looks up (evidence: `src/app/session/[id]/page.tsx`)
- Session detail → Session actions: renders (evidence: `src/app/session/[id]/page.tsx`)
- Session actions → Calendar export: generates (evidence: `src/components/SessionActions.tsx`)
- Session detail → Ticketing and maps: links to ticketing (evidence: `src/app/session/[id]/page.tsx`)
- Session detail → Ticketing and maps: links directions (evidence: `src/app/session/[id]/page.tsx`)
- Visitor → Venue directory: opens (evidence: `src/app/sites/page.tsx`)
- Venue directory → Guide data: reads (evidence: `src/app/sites/page.tsx`)
- Venue directory → Venue map: renders (evidence: `src/app/sites/page.tsx`)
- Venue directory → Venue view: renders (evidence: `src/app/sites/page.tsx`)
- Venue view → Venue map: uses (evidence: `src/components/SitesView.tsx`)
- Visitor → Venue detail: opens (evidence: `src/app/sites/[id]/page.tsx`)
- Venue detail → Guide data: looks up (evidence: `src/app/sites/[id]/page.tsx`)
- Guide data → Data validation: validates (evidence: `src/lib/data.ts`)
- Guide data → Card shaping: builds cards (evidence: `src/lib/data.ts`)
- Guide data → Dakar time: derives days (evidence: `src/lib/data.ts`)
- Venue map → Session cards: renders (evidence: `src/components/SitesMap.tsx`)
- Venue map → Time-aware view: renders (evidence: `src/components/SitesMap.tsx`)
- Time-aware view → Browser clock: reads time (evidence: `src/components/TimeAware.tsx`)
- Time-aware view → Dakar time: uses (evidence: `src/components/TimeAware.tsx`)
- Full programme → SEO metadata: configures (evidence: `src/app/programme/page.tsx`)
- SEO metadata → Guide data: reads (evidence: `src/lib/seo.tsx`)
- SEO metadata → Site configuration: uses URLs (evidence: `src/lib/seo.tsx`)
- Live endpoint → Live status: calls (evidence: `src/app/api/live/route.ts`)
- Live banner → Live status: reads status (evidence: `src/components/LiveBanner.tsx`)
- Social images → Site configuration: uses URLs (evidence: `src/lib/og.tsx`)
