# araxis07/website-japan architecture

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

- Interactive diagram: https://gitdiagram.com/araxis07/website-japan
- Repository: https://github.com/araxis07/website-japan

## Overview

Japan Travel is a multilingual, browser-based guide for discovering destinations and planning a personal Japan itinerary. Visitors move from introductory and first-visit guidance into prefecture or destination detail pages, where maps, practical facts and suggested journeys support exploration; the trip planner then organizes selected places by day and offers local backup and export options. The README documents mapping, offline/print exports, themes and 3D scenery. Several UI modules were not excerpted, so their documented capabilities are included without speculative implementation links.

Main entry points: [`src/app/[lang]/prefectures/[slug]/page.tsx`](https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/prefectures/%5Bslug%5D/page.tsx) (Prefecture detail), [`src/app/[lang]/destinations/[slug]/page.tsx`](https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/destinations/%5Bslug%5D/page.tsx) (Destination detail), [`src/data/places.ts`](https://github.com/araxis07/website-japan/blob/main/src/data/places.ts) (Place catalogue), [`src/app/[lang]/page.tsx`](https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/page.tsx) (Travel home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Discovery and guides"]
  node_home["Travel home<br/>[page.tsx]"]
  node_firstvisit["First-visit guide<br/>[page.tsx]"]
  node_explore["Explore prefectures<br/>[page.tsx]"]
  node_destination["Destination detail<br/>[page.tsx]"]
  node_prefecture["Prefecture detail<br/>[page.tsx]"]
  node_scene["3D Japan scenery<br/>[JapanDiorama.tsx]"]
end

subgraph group_maps["Places and maps"]
  node_mapbrowse["Map browsing"]
  node_placemap["Place maps<br/>[PlacesMap.tsx]"]
  node_streetmap["Street map<br/>[StreetMap.tsx]"]
  node_osm["OpenStreetMap tiles"]
  node_directions["Google Maps directions"]
end

subgraph group_planning["Trip planning"]
  node_plannerpage["My trip page<br/>[page.tsx]"]
  node_planner["Trip planner<br/>[TripPlanner.tsx]"]
  node_tripprovider["Trip state provider<br/>[TripProvider.tsx]"]
  node_tripmodel["Trip validation and model<br/>[trip.ts]"]
  node_browserstore[("Browser-local storage<br/>[storage-lock.ts]")]
  node_triptools["Backup and exports<br/>[TripTools.tsx]"]
  node_tripextras["Import and calendar tools<br/>[TripExtras.tsx]"]
end

subgraph group_content["Guide content"]
  node_places["Place catalogue<br/>[places.ts]"]
  node_prefplaces["Prefecture places"]
  node_prefectures["Prefecture profiles<br/>[prefectures.ts]"]
  node_guides["Destination guides<br/>[guides.ts]"]
  node_journeys["Suggested journeys<br/>[journeys.ts]"]
  node_travelcontent["Travel information<br/>[travel.ts]"]
  node_visitdetails["Visit details<br/>[visit-details.ts]"]
  node_notices["Travel notices<br/>[TravelNotices.tsx]"]
end

subgraph group_shared["Shared services"]
  node_locales["Locale configuration<br/>[config.ts]"]
  node_translations["Translation dictionaries<br/>[dictionaries.ts]"]
  node_sceneengine["Scene rendering logic<br/>[japan-scene.ts]"]
end

node_traveler(("Traveler"))

node_traveler -->|"opens"| node_home
node_home -->|"shows"| node_journeys
node_home -->|"renders"| node_scene
node_scene -.->|"uses"| node_sceneengine
node_traveler -->|"opens"| node_firstvisit
node_firstvisit -->|"renders"| node_notices
node_traveler -->|"opens"| node_explore
node_explore -->|"renders"| node_mapbrowse
node_traveler -->|"selects destination"| node_destination
node_traveler -->|"selects prefecture"| node_prefecture
node_destination -->|"reads"| node_places
node_destination -->|"reads"| node_guides
node_destination -->|"reads"| node_journeys
node_destination -->|"renders"| node_placemap
node_prefecture -->|"reads"| node_prefectures
node_prefecture -->|"reads"| node_prefplaces
node_prefecture -->|"reads"| node_travelcontent
node_prefecture -->|"reads"| node_visitdetails
node_mapbrowse -->|"searches"| node_places
node_mapbrowse -->|"renders"| node_streetmap
node_placemap -->|"reads"| node_places
node_placemap -->|"renders"| node_streetmap
node_streetmap -->|"loads tiles"| node_osm
node_places -->|"builds direction links"| node_directions
node_traveler -->|"opens"| node_plannerpage
node_plannerpage -->|"renders"| node_planner
node_planner -->|"uses state"| node_tripprovider
node_tripprovider -->|"validates plans"| node_tripmodel
node_tripprovider -->|"writes safely"| node_browserstore
node_planner -->|"uses places"| node_places
node_planner -->|"renders tools"| node_triptools
node_triptools -->|"renders extras"| node_tripextras
node_triptools -->|"exports trip data"| node_tripmodel
node_traveler -->|"opens directions"| node_directions
node_home -->|"loads copy"| node_translations
node_translations -->|"uses locale types"| node_locales
node_firstvisit -->|"loads copy"| node_translations
node_prefecture -->|"loads copy"| node_translations

click node_home "https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/page.tsx"
click node_firstvisit "https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/first-visit/page.tsx"
click node_explore "https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/explore/page.tsx"
click node_destination "https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/destinations/%5Bslug%5D/page.tsx"
click node_prefecture "https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/prefectures/%5Bslug%5D/page.tsx"
click node_mapbrowse "https://github.com/araxis07/website-japan/blob/main/src/components/PrefectureExplorer.tsx"
click node_placemap "https://github.com/araxis07/website-japan/blob/main/src/components/PlacesMap.tsx"
click node_streetmap "https://github.com/araxis07/website-japan/blob/main/src/components/StreetMap.tsx"
click node_plannerpage "https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/my-trip/page.tsx"
click node_planner "https://github.com/araxis07/website-japan/blob/main/src/components/TripPlanner.tsx"
click node_tripprovider "https://github.com/araxis07/website-japan/blob/main/src/components/TripProvider.tsx"
click node_tripmodel "https://github.com/araxis07/website-japan/blob/main/src/lib/trip.ts"
click node_browserstore "https://github.com/araxis07/website-japan/blob/main/src/lib/storage-lock.ts"
click node_triptools "https://github.com/araxis07/website-japan/blob/main/src/components/TripTools.tsx"
click node_tripextras "https://github.com/araxis07/website-japan/blob/main/src/components/TripExtras.tsx"
click node_places "https://github.com/araxis07/website-japan/blob/main/src/data/places.ts"
click node_prefplaces "https://github.com/araxis07/website-japan/blob/main/src/data/prefecture-places.ts"
click node_prefectures "https://github.com/araxis07/website-japan/blob/main/src/data/prefectures.ts"
click node_guides "https://github.com/araxis07/website-japan/blob/main/src/data/guides.ts"
click node_journeys "https://github.com/araxis07/website-japan/blob/main/src/data/journeys.ts"
click node_travelcontent "https://github.com/araxis07/website-japan/blob/main/src/data/travel.ts"
click node_visitdetails "https://github.com/araxis07/website-japan/blob/main/src/data/visit-details.ts"
click node_notices "https://github.com/araxis07/website-japan/blob/main/src/components/TravelNotices.tsx"
click node_locales "https://github.com/araxis07/website-japan/blob/main/src/i18n/config.ts"
click node_translations "https://github.com/araxis07/website-japan/blob/main/src/i18n/dictionaries.ts"
click node_scene "https://github.com/araxis07/website-japan/blob/main/src/components/JapanDiorama.tsx"
click node_sceneengine "https://github.com/araxis07/website-japan/blob/main/src/lib/japan-scene.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_home,node_firstvisit,node_explore,node_destination,node_prefecture,node_scene toneBlue
class node_mapbrowse,node_placemap,node_streetmap,node_osm,node_directions toneAmber
class node_plannerpage,node_planner,node_tripprovider,node_tripmodel,node_browserstore,node_triptools,node_tripextras toneMint
class node_places,node_prefplaces,node_prefectures,node_guides,node_journeys,node_travelcontent,node_visitdetails,node_notices toneRose
class node_locales,node_translations,node_sceneengine,node_traveler toneIndigo
```

## Components

### Discovery and guides

- [Travel home](https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/page.tsx): `src/app/[lang]/page.tsx`
- [First-visit guide](https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/first-visit/page.tsx): `src/app/[lang]/first-visit/page.tsx`
- [Explore prefectures](https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/explore/page.tsx): `src/app/[lang]/explore/page.tsx`
- [Destination detail](https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/destinations/%5Bslug%5D/page.tsx): `src/app/[lang]/destinations/[slug]/page.tsx`
- [Prefecture detail](https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/prefectures/%5Bslug%5D/page.tsx): `src/app/[lang]/prefectures/[slug]/page.tsx`
- [3D Japan scenery](https://github.com/araxis07/website-japan/blob/main/src/components/JapanDiorama.tsx): `src/components/JapanDiorama.tsx`

### Places and maps

- [Map browsing](https://github.com/araxis07/website-japan/blob/main/src/components/PrefectureExplorer.tsx): `src/components/PrefectureExplorer.tsx`
- [Place maps](https://github.com/araxis07/website-japan/blob/main/src/components/PlacesMap.tsx): `src/components/PlacesMap.tsx`
- [Street map](https://github.com/araxis07/website-japan/blob/main/src/components/StreetMap.tsx): `src/components/StreetMap.tsx`
- **OpenStreetMap tiles**
- **Google Maps directions**

### Trip planning

- [My trip page](https://github.com/araxis07/website-japan/blob/main/src/app/%5Blang%5D/my-trip/page.tsx): `src/app/[lang]/my-trip/page.tsx`
- [Trip planner](https://github.com/araxis07/website-japan/blob/main/src/components/TripPlanner.tsx): `src/components/TripPlanner.tsx`
- [Trip state provider](https://github.com/araxis07/website-japan/blob/main/src/components/TripProvider.tsx): `src/components/TripProvider.tsx`
- [Trip validation and model](https://github.com/araxis07/website-japan/blob/main/src/lib/trip.ts): `src/lib/trip.ts`
- [Browser-local storage](https://github.com/araxis07/website-japan/blob/main/src/lib/storage-lock.ts): `src/lib/storage-lock.ts`
- [Backup and exports](https://github.com/araxis07/website-japan/blob/main/src/components/TripTools.tsx): `src/components/TripTools.tsx`
- [Import and calendar tools](https://github.com/araxis07/website-japan/blob/main/src/components/TripExtras.tsx): `src/components/TripExtras.tsx`

### Guide content

- [Place catalogue](https://github.com/araxis07/website-japan/blob/main/src/data/places.ts): `src/data/places.ts`
- [Prefecture places](https://github.com/araxis07/website-japan/blob/main/src/data/prefecture-places.ts): `src/data/prefecture-places.ts`
- [Prefecture profiles](https://github.com/araxis07/website-japan/blob/main/src/data/prefectures.ts): `src/data/prefectures.ts`
- [Destination guides](https://github.com/araxis07/website-japan/blob/main/src/data/guides.ts): `src/data/guides.ts`
- [Suggested journeys](https://github.com/araxis07/website-japan/blob/main/src/data/journeys.ts): `src/data/journeys.ts`
- [Travel information](https://github.com/araxis07/website-japan/blob/main/src/data/travel.ts): `src/data/travel.ts`
- [Visit details](https://github.com/araxis07/website-japan/blob/main/src/data/visit-details.ts): `src/data/visit-details.ts`
- [Travel notices](https://github.com/araxis07/website-japan/blob/main/src/components/TravelNotices.tsx): `src/components/TravelNotices.tsx`

### Shared services

- [Locale configuration](https://github.com/araxis07/website-japan/blob/main/src/i18n/config.ts): `src/i18n/config.ts`
- [Translation dictionaries](https://github.com/araxis07/website-japan/blob/main/src/i18n/dictionaries.ts): `src/i18n/dictionaries.ts`
- [Scene rendering logic](https://github.com/araxis07/website-japan/blob/main/src/lib/japan-scene.ts): `src/lib/japan-scene.ts`

### Other components

- **Traveler**

## Connections

- Traveler → Travel home: opens (evidence: `README.md`)
- Travel home → Suggested journeys: shows (evidence: `src/app/[lang]/page.tsx`)
- Travel home → 3D Japan scenery: renders (evidence: `src/app/[lang]/page.tsx`)
- 3D Japan scenery → Scene rendering logic: uses
- Traveler → First-visit guide: opens (evidence: `README.md`)
- First-visit guide → Travel notices: renders (evidence: `src/app/[lang]/first-visit/page.tsx`)
- Traveler → Explore prefectures: opens (evidence: `README.md`)
- Explore prefectures → Map browsing: renders (evidence: `src/app/[lang]/explore/page.tsx`)
- Traveler → Destination detail: selects destination (evidence: `README.md`)
- Traveler → Prefecture detail: selects prefecture (evidence: `README.md`)
- Destination detail → Place catalogue: reads (evidence: `src/app/[lang]/destinations/[slug]/page.tsx`)
- Destination detail → Destination guides: reads (evidence: `src/app/[lang]/destinations/[slug]/page.tsx`)
- Destination detail → Suggested journeys: reads (evidence: `src/app/[lang]/destinations/[slug]/page.tsx`)
- Destination detail → Place maps: renders (evidence: `src/app/[lang]/destinations/[slug]/page.tsx`)
- Prefecture detail → Prefecture profiles: reads (evidence: `src/app/[lang]/prefectures/[slug]/page.tsx`)
- Prefecture detail → Prefecture places: reads (evidence: `src/app/[lang]/prefectures/[slug]/page.tsx`)
- Prefecture detail → Travel information: reads (evidence: `src/app/[lang]/prefectures/[slug]/page.tsx`)
- Prefecture detail → Visit details: reads (evidence: `src/app/[lang]/prefectures/[slug]/page.tsx`)
- Map browsing → Place catalogue: searches (evidence: `src/components/PrefectureExplorer.tsx`)
- Map browsing → Street map: renders (evidence: `src/components/PrefectureExplorer.tsx`)
- Place maps → Place catalogue: reads (evidence: `src/components/PlacesMap.tsx`)
- Place maps → Street map: renders (evidence: `src/components/PlacesMap.tsx`)
- Street map → OpenStreetMap tiles: loads tiles (evidence: `README.md`)
- Place catalogue → Google Maps directions: builds direction links (evidence: `src/data/places.ts`)
- Traveler → My trip page: opens (evidence: `README.md`)
- My trip page → Trip planner: renders (evidence: `src/app/[lang]/my-trip/page.tsx`)
- Trip planner → Trip state provider: uses state (evidence: `src/components/TripPlanner.tsx`)
- Trip state provider → Trip validation and model: validates plans (evidence: `src/components/TripProvider.tsx`)
- Trip state provider → Browser-local storage: writes safely (evidence: `src/components/TripProvider.tsx`)
- Trip planner → Place catalogue: uses places (evidence: `src/components/TripPlanner.tsx`)
- Trip planner → Backup and exports: renders tools (evidence: `src/components/TripPlanner.tsx`)
- Backup and exports → Import and calendar tools: renders extras (evidence: `src/components/TripTools.tsx`)
- Backup and exports → Trip validation and model: exports trip data (evidence: `src/components/TripTools.tsx`)
- Traveler → Google Maps directions: opens directions (evidence: `README.md`)
- Travel home → Translation dictionaries: loads copy (evidence: `src/app/[lang]/page.tsx`)
- Translation dictionaries → Locale configuration: uses locale types (evidence: `src/i18n/dictionaries.ts`)
- First-visit guide → Translation dictionaries: loads copy (evidence: `src/app/[lang]/first-visit/page.tsx`)
- Prefecture detail → Translation dictionaries: loads copy (evidence: `src/app/[lang]/prefectures/[slug]/page.tsx`)
