# utkarshdaule11/project architecture

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

## Overview

This is an interactive NH44 road-trip experience: visitors explore a north-to-south journey through an animated introduction, route map, checkpoint chapters and a Kanyakumari finale. The page coordinates checkpoint selection, vehicle choice, audio and saved passport progress. Supporting layers provide route geometry and journey metrics, state/chapter content, and browser-persisted progress. The README is empty; relationships below rely on the supplied source index and excerpts, so unsampled components are included where the tree indicates product features, without asserting unshown internals.

Main entry points: [`src/app/page.tsx`](https://github.com/utkarshdaule11/project/blob/main/src/app/page.tsx) (Page coordinator), [`src/data/journeyProgress.ts`](https://github.com/utkarshdaule11/project/blob/main/src/data/journeyProgress.ts) (Journey metrics), [`src/components/chapters/ChaptersList.tsx`](https://github.com/utkarshdaule11/project/blob/main/src/components/chapters/ChaptersList.tsx) (Checkpoint chapters), [`src/hooks/usePassportProgress.ts`](https://github.com/utkarshdaule11/project/blob/main/src/hooks/usePassportProgress.ts) (Passport progress)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Journey experience"]
  node_home_page["Page coordinator<br/>[page.tsx]"]
  node_intro["Intro sequence<br/>[IntroSequence.tsx]"]
  node_hero["Road-trip hero<br/>[HeroSection.tsx]"]
  node_map_section["Route map section<br/>[MapSection.tsx]"]
  node_route_map["Interactive route map<br/>[RouteMap.tsx]"]
  node_chapters["Checkpoint chapters<br/>[ChaptersList.tsx]"]
  node_chapter_card["State chapter card"]
  node_finale["Kanyakumari finale"]
  node_passport_views["Passport views"]
end

subgraph group_navigation["Navigation and progress"]
  node_navbar["Checkpoint navigation<br/>[Navbar.tsx]"]
  node_cruise_hud["Cruise HUD"]
  node_passport_progress["Passport progress"]
  node_vehicle_choice["Vehicle choice"]
  node_audio["Highway audio<br/>[useHighwayAudio.ts]"]
end

subgraph group_journey_data["Journey data"]
  node_journey_metrics["Journey metrics<br/>[journeyProgress.ts]"]
  node_gis_data["NH44 GIS checkpoints<br/>[nh44GisData.ts]"]
  node_state_content["State content<br/>[states.ts]"]
  node_state_types["Journey types<br/>[state.ts]"]
end

subgraph group_presentation["Shared presentation"]
  node_vehicle_graphic["Vehicle graphic<br/>[VehicleGraphic.tsx]"]
  node_reduced_motion["Reduced-motion hook"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

node_traveler(("Traveler"))

node_traveler -->|"opens"| node_home_page
node_home_page -->|"renders"| node_intro
node_home_page -->|"renders"| node_hero
node_home_page -->|"renders"| node_map_section
node_home_page -->|"renders"| node_chapters
node_home_page -->|"renders"| node_finale
node_home_page -->|"renders"| node_navbar
node_home_page -->|"renders"| node_cruise_hud
node_home_page -->|"renders"| node_footer
node_home_page -->|"loads progress"| node_passport_progress
node_home_page -->|"loads choice"| node_vehicle_choice
node_home_page -->|"loads audio"| node_audio
node_home_page -->|"validates stops"| node_state_types
node_map_section -->|"renders"| node_route_map
node_route_map -->|"reads checkpoints"| node_gis_data
node_route_map -->|"projects stops"| node_state_content
node_route_map -->|"uses types"| node_state_types
node_chapters -->|"renders"| node_chapter_card
node_chapters -->|"uses metrics"| node_journey_metrics
node_chapters -->|"renders"| node_vehicle_graphic
node_chapters -->|"checks motion"| node_reduced_motion
node_chapter_card -->|"uses metrics"| node_journey_metrics
node_chapter_card -->|"checks motion"| node_reduced_motion
node_finale -->|"renders"| node_passport_views
node_finale -->|"checks motion"| node_reduced_motion
node_journey_metrics -->|"reads checkpoints"| node_gis_data
node_journey_metrics -->|"reads stops"| node_state_content
node_journey_metrics -->|"uses types"| node_state_types
node_passport_progress -->|"validates IDs"| node_state_content
node_passport_progress -->|"uses types"| node_state_types
node_passport_progress -->|"persists locally"| node_traveler
node_hero -->|"renders"| node_vehicle_graphic
node_hero -->|"reads choice"| node_vehicle_choice
node_intro -->|"renders"| node_vehicle_graphic
node_intro -->|"reads choice"| node_vehicle_choice
node_cruise_hud -->|"reads metrics"| node_journey_metrics
node_cruise_hud -->|"reads choice"| node_vehicle_choice
node_cruise_hud -->|"renders"| node_vehicle_graphic
node_navbar -->|"reads metrics"| node_journey_metrics
node_home_page -->|"tracks checkpoints"| node_passport_progress
node_home_page -->|"coordinates stops"| node_state_types

click node_home_page "https://github.com/utkarshdaule11/project/blob/main/src/app/page.tsx"
click node_intro "https://github.com/utkarshdaule11/project/blob/main/src/components/intro/IntroSequence.tsx"
click node_hero "https://github.com/utkarshdaule11/project/blob/main/src/components/hero/HeroSection.tsx"
click node_map_section "https://github.com/utkarshdaule11/project/blob/main/src/components/map/MapSection.tsx"
click node_route_map "https://github.com/utkarshdaule11/project/blob/main/src/components/map/RouteMap.tsx"
click node_chapters "https://github.com/utkarshdaule11/project/blob/main/src/components/chapters/ChaptersList.tsx"
click node_chapter_card "https://github.com/utkarshdaule11/project/blob/main/src/components/chapters/StateChapterCard.tsx"
click node_finale "https://github.com/utkarshdaule11/project/blob/main/src/components/finale/KanyakumariFinale.tsx"
click node_passport_views "https://github.com/utkarshdaule11/project/blob/main/src/components/finale/JourneyPassport.tsx"
click node_navbar "https://github.com/utkarshdaule11/project/blob/main/src/components/navigation/Navbar.tsx"
click node_cruise_hud "https://github.com/utkarshdaule11/project/blob/main/src/components/navigation/HighwayCruiseHud.tsx"
click node_passport_progress "https://github.com/utkarshdaule11/project/blob/main/src/hooks/usePassportProgress.ts"
click node_vehicle_choice "https://github.com/utkarshdaule11/project/blob/main/src/hooks/useVehicleChoice.ts"
click node_audio "https://github.com/utkarshdaule11/project/blob/main/src/hooks/useHighwayAudio.ts"
click node_journey_metrics "https://github.com/utkarshdaule11/project/blob/main/src/data/journeyProgress.ts"
click node_gis_data "https://github.com/utkarshdaule11/project/blob/main/src/data/nh44GisData.ts"
click node_state_content "https://github.com/utkarshdaule11/project/blob/main/content/states.ts"
click node_state_types "https://github.com/utkarshdaule11/project/blob/main/src/types/state.ts"
click node_vehicle_graphic "https://github.com/utkarshdaule11/project/blob/main/src/components/ui/VehicleGraphic.tsx"
click node_reduced_motion "https://github.com/utkarshdaule11/project/blob/main/src/hooks/useSafeReducedMotion.ts"
click node_footer "https://github.com/utkarshdaule11/project/blob/main/src/components/footer/Footer.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_page,node_intro,node_hero,node_map_section,node_route_map,node_chapters,node_chapter_card,node_finale,node_passport_views toneBlue
class node_navbar,node_cruise_hud,node_passport_progress,node_vehicle_choice,node_audio toneAmber
class node_journey_metrics,node_gis_data,node_state_content,node_state_types toneMint
class node_vehicle_graphic,node_reduced_motion,node_footer toneRose
class node_traveler toneIndigo
```

## Components

### Journey experience

- [Page coordinator](https://github.com/utkarshdaule11/project/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Intro sequence](https://github.com/utkarshdaule11/project/blob/main/src/components/intro/IntroSequence.tsx): `src/components/intro/IntroSequence.tsx`
- [Road-trip hero](https://github.com/utkarshdaule11/project/blob/main/src/components/hero/HeroSection.tsx): `src/components/hero/HeroSection.tsx`
- [Route map section](https://github.com/utkarshdaule11/project/blob/main/src/components/map/MapSection.tsx): `src/components/map/MapSection.tsx`
- [Interactive route map](https://github.com/utkarshdaule11/project/blob/main/src/components/map/RouteMap.tsx): `src/components/map/RouteMap.tsx`
- [Checkpoint chapters](https://github.com/utkarshdaule11/project/blob/main/src/components/chapters/ChaptersList.tsx): `src/components/chapters/ChaptersList.tsx`
- [State chapter card](https://github.com/utkarshdaule11/project/blob/main/src/components/chapters/StateChapterCard.tsx): `src/components/chapters/StateChapterCard.tsx`
- [Kanyakumari finale](https://github.com/utkarshdaule11/project/blob/main/src/components/finale/KanyakumariFinale.tsx): `src/components/finale/KanyakumariFinale.tsx`
- [Passport views](https://github.com/utkarshdaule11/project/blob/main/src/components/finale/JourneyPassport.tsx): `src/components/finale/JourneyPassport.tsx`

### Navigation and progress

- [Checkpoint navigation](https://github.com/utkarshdaule11/project/blob/main/src/components/navigation/Navbar.tsx): `src/components/navigation/Navbar.tsx`
- [Cruise HUD](https://github.com/utkarshdaule11/project/blob/main/src/components/navigation/HighwayCruiseHud.tsx): `src/components/navigation/HighwayCruiseHud.tsx`
- [Passport progress](https://github.com/utkarshdaule11/project/blob/main/src/hooks/usePassportProgress.ts): `src/hooks/usePassportProgress.ts`
- [Vehicle choice](https://github.com/utkarshdaule11/project/blob/main/src/hooks/useVehicleChoice.ts): `src/hooks/useVehicleChoice.ts`
- [Highway audio](https://github.com/utkarshdaule11/project/blob/main/src/hooks/useHighwayAudio.ts): `src/hooks/useHighwayAudio.ts`

### Journey data

- [Journey metrics](https://github.com/utkarshdaule11/project/blob/main/src/data/journeyProgress.ts): `src/data/journeyProgress.ts`
- [NH44 GIS checkpoints](https://github.com/utkarshdaule11/project/blob/main/src/data/nh44GisData.ts): `src/data/nh44GisData.ts`
- [State content](https://github.com/utkarshdaule11/project/blob/main/content/states.ts): `content/states.ts`
- [Journey types](https://github.com/utkarshdaule11/project/blob/main/src/types/state.ts): `src/types/state.ts`

### Shared presentation

- [Vehicle graphic](https://github.com/utkarshdaule11/project/blob/main/src/components/ui/VehicleGraphic.tsx): `src/components/ui/VehicleGraphic.tsx`
- [Reduced-motion hook](https://github.com/utkarshdaule11/project/blob/main/src/hooks/useSafeReducedMotion.ts): `src/hooks/useSafeReducedMotion.ts`
- [Footer](https://github.com/utkarshdaule11/project/blob/main/src/components/footer/Footer.tsx): `src/components/footer/Footer.tsx`

### Other components

- **Traveler**

## Connections

- Traveler → Page coordinator: opens
- Page coordinator → Intro sequence: renders (evidence: `src/app/page.tsx`)
- Page coordinator → Road-trip hero: renders (evidence: `src/app/page.tsx`)
- Page coordinator → Route map section: renders (evidence: `src/app/page.tsx`)
- Page coordinator → Checkpoint chapters: renders (evidence: `src/app/page.tsx`)
- Page coordinator → Kanyakumari finale: renders (evidence: `src/app/page.tsx`)
- Page coordinator → Checkpoint navigation: renders (evidence: `src/app/page.tsx`)
- Page coordinator → Cruise HUD: renders (evidence: `src/app/page.tsx`)
- Page coordinator → Footer: renders (evidence: `src/app/page.tsx`)
- Page coordinator → Passport progress: loads progress (evidence: `src/app/page.tsx`)
- Page coordinator → Vehicle choice: loads choice (evidence: `src/app/page.tsx`)
- Page coordinator → Highway audio: loads audio (evidence: `src/app/page.tsx`)
- Page coordinator → Journey types: validates stops (evidence: `src/app/page.tsx`)
- Route map section → Interactive route map: renders (evidence: `src/components/map/MapSection.tsx`)
- Interactive route map → NH44 GIS checkpoints: reads checkpoints (evidence: `src/components/map/RouteMap.tsx`)
- Interactive route map → State content: projects stops (evidence: `src/components/map/RouteMap.tsx`)
- Interactive route map → Journey types: uses types (evidence: `src/components/map/RouteMap.tsx`)
- Checkpoint chapters → State chapter card: renders (evidence: `src/components/chapters/ChaptersList.tsx`)
- Checkpoint chapters → Journey metrics: uses metrics (evidence: `src/components/chapters/ChaptersList.tsx`)
- Checkpoint chapters → Vehicle graphic: renders (evidence: `src/components/chapters/ChaptersList.tsx`)
- Checkpoint chapters → Reduced-motion hook: checks motion (evidence: `src/components/chapters/ChaptersList.tsx`)
- State chapter card → Journey metrics: uses metrics (evidence: `src/components/chapters/StateChapterCard.tsx`)
- State chapter card → Reduced-motion hook: checks motion (evidence: `src/components/chapters/StateChapterCard.tsx`)
- Kanyakumari finale → Passport views: renders (evidence: `src/components/finale/KanyakumariFinale.tsx`)
- Kanyakumari finale → Reduced-motion hook: checks motion (evidence: `src/components/finale/KanyakumariFinale.tsx`)
- Journey metrics → NH44 GIS checkpoints: reads checkpoints (evidence: `src/data/journeyProgress.ts`)
- Journey metrics → State content: reads stops (evidence: `src/data/journeyProgress.ts`)
- Journey metrics → Journey types: uses types (evidence: `src/data/journeyProgress.ts`)
- Passport progress → State content: validates IDs (evidence: `src/hooks/usePassportProgress.ts`)
- Passport progress → Journey types: uses types (evidence: `src/hooks/usePassportProgress.ts`)
- Passport progress → Traveler: persists locally (evidence: `src/hooks/usePassportProgress.ts`)
- Road-trip hero → Vehicle graphic: renders (evidence: `src/components/hero/HeroSection.tsx`)
- Road-trip hero → Vehicle choice: reads choice (evidence: `src/components/hero/HeroSection.tsx`)
- Intro sequence → Vehicle graphic: renders (evidence: `src/components/intro/IntroSequence.tsx`)
- Intro sequence → Vehicle choice: reads choice (evidence: `src/components/intro/IntroSequence.tsx`)
- Cruise HUD → Journey metrics: reads metrics (evidence: `src/components/navigation/HighwayCruiseHud.tsx`)
- Cruise HUD → Vehicle choice: reads choice (evidence: `src/components/navigation/HighwayCruiseHud.tsx`)
- Cruise HUD → Vehicle graphic: renders (evidence: `src/components/navigation/HighwayCruiseHud.tsx`)
- Checkpoint navigation → Journey metrics: reads metrics (evidence: `src/components/navigation/Navbar.tsx`)
- Page coordinator → Passport progress: tracks checkpoints (evidence: `src/app/page.tsx`)
- Page coordinator → Journey types: coordinates stops (evidence: `src/app/page.tsx`)
