# plames90/travel-scheduler architecture

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

- Interactive diagram: https://gitdiagram.com/plames90/travel-scheduler
- Repository: https://github.com/plames90/travel-scheduler

## Overview

WayFlow is a trip-planning application for finding places and organizing them into schedules, with map-based planning, route information, collaboration, saved/shared schedules, and account features. The main user journey runs from authentication and optional onboarding into place search and schedule editing, then schedule saving or sharing. The frontend tree and sampled code show these capabilities, but many substantial pages and components were not excerpted; their internal interactions are therefore represented only where imports or explicit calls establish them.

Main entry points: [`frontend/src/app/routes.tsx`](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/routes.tsx) (Page routes), [`frontend/src/app/pages/ScheduleEditorPage.tsx`](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/ScheduleEditorPage.tsx) (Schedule editor), [`frontend/src/app/pages/HomePage.jsx`](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/HomePage.jsx) (Planning home), [`frontend/src/app/context/AppContext.tsx`](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/context/AppContext.tsx) (App state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_app["App flow<br/>[App.jsx]"]
  node_router["Page routes<br/>[routes.tsx]"]
  node_auth["Account access<br/>[AuthPage.jsx]"]
  node_profile["User profile<br/>[MyPage.jsx]"]
  node_tutorial["Product tutorial<br/>[TutorialPage.jsx]"]
end

subgraph group_planning["Trip planning"]
  node_home["Planning home<br/>[HomePage.jsx]"]
  node_onboarding["Preference survey"]
  node_search["Place search<br/>[SearchBar.tsx]"]
  node_mockplaces["Offline places<br/>[mockPlaces.ts]"]
  node_map["Map display<br/>[MapView.tsx]"]
end

subgraph group_schedules["Schedule lifecycle"]
  node_editor["Schedule editor"]
  node_sidebar["Time planning"]
  node_collaboration["Collaborators"]
  node_share["Share schedule<br/>[ShareModal.tsx]"]
  node_saved["Saved schedules"]
  node_archive["Schedule archive<br/>[ArchivePanel.jsx]"]
  node_shared["Shared schedule"]
end

subgraph group_services["Data services"]
  node_state["App state<br/>[AppContext.tsx]"]
  node_api["API client<br/>[api.js]"]
  node_typedapi["Typed API client<br/>[api.ts]"]
  node_aihandler["AI endpoint<br/>[lambda_function.py]"]
end

node_user(("Traveler"))
node_backend{{"WayFlow backend"}}
node_naver{{"Naver place search"}}
node_ai{{"AI service"}}

node_user -->|"opens"| node_app
node_app -->|"shows"| node_auth
node_app -->|"shows"| node_tutorial
node_app -->|"shows"| node_home
node_user -->|"navigates"| node_router
node_router -->|"routes to"| node_auth
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_editor
node_router -->|"routes to"| node_saved
node_router -->|"routes to"| node_profile
node_router -->|"routes to"| node_shared
node_auth -->|"authenticates via"| node_api
node_home -.->|"offers search"| node_search
node_home -->|"displays places"| node_map
node_home -->|"opens archive"| node_archive
node_home -->|"opens profile"| node_profile
node_search -->|"uses fallback data"| node_mockplaces
node_search -->|"queries places"| node_naver
node_editor -->|"renders"| node_map
node_editor -->|"renders"| node_sidebar
node_editor -->|"renders"| node_search
node_editor -->|"renders"| node_share
node_editor -->|"renders"| node_collaboration
node_editor -->|"uses"| node_state
node_onboarding -->|"updates preferences"| node_state
node_state -->|"loads schedules"| node_typedapi
node_state -->|"requests schedules"| node_backend
node_home -->|"searches places"| node_api
node_api -->|"requests data"| node_backend
node_api -->|"requests transit routes"| node_naver
node_saved -.->|"uses schedules"| node_state
node_shared -.->|"uses schedule data"| node_state
node_aihandler -.->|"invokes"| node_ai

click node_app "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/App.jsx"
click node_router "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/routes.tsx"
click node_auth "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/AuthPage.jsx"
click node_home "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/HomePage.jsx"
click node_onboarding "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/components/OnboardingSurvey.tsx"
click node_search "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/components/SearchBar.tsx"
click node_mockplaces "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/data/mockPlaces.ts"
click node_map "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/components/MapView.tsx"
click node_editor "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/ScheduleEditorPage.tsx"
click node_sidebar "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/components/SchedulingSidebar.tsx"
click node_collaboration "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/components/CollaborationPanel.tsx"
click node_share "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/components/ShareModal.tsx"
click node_saved "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/SavedSchedulesPage.tsx"
click node_archive "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/ArchivePanel.jsx"
click node_shared "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/SharedSchedulePage.tsx"
click node_profile "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/MyPage.jsx"
click node_tutorial "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/TutorialPage.jsx"
click node_state "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/context/AppContext.tsx"
click node_api "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/api.js"
click node_typedapi "https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/services/api.ts"
click node_aihandler "https://github.com/plames90/travel-scheduler/blob/main/cost_ai/wanderflow-ai-api/lambda_function.py"

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_router,node_auth,node_profile,node_tutorial toneBlue
class node_home,node_onboarding,node_search,node_mockplaces,node_map toneAmber
class node_editor,node_sidebar,node_collaboration,node_share,node_saved,node_archive,node_shared toneMint
class node_state,node_api,node_typedapi,node_aihandler toneRose
class node_user,node_backend,node_naver,node_ai toneIndigo
```

## Components

### App entry

- [App flow](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/App.jsx): `frontend/src/app/App.jsx`
- [Page routes](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/routes.tsx): `frontend/src/app/routes.tsx`
- [Account access](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/AuthPage.jsx): `frontend/src/app/pages/AuthPage.jsx`
- [User profile](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/MyPage.jsx): `frontend/src/app/pages/MyPage.jsx`
- [Product tutorial](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/TutorialPage.jsx): `frontend/src/app/pages/TutorialPage.jsx`

### Trip planning

- [Planning home](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/HomePage.jsx): `frontend/src/app/pages/HomePage.jsx`
- [Preference survey](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/components/OnboardingSurvey.tsx): `frontend/src/app/components/OnboardingSurvey.tsx`
- [Place search](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/components/SearchBar.tsx): `frontend/src/app/components/SearchBar.tsx`
- [Offline places](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/data/mockPlaces.ts): `frontend/src/app/data/mockPlaces.ts`
- [Map display](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/components/MapView.tsx): `frontend/src/app/components/MapView.tsx`

### Schedule lifecycle

- [Schedule editor](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/ScheduleEditorPage.tsx): `frontend/src/app/pages/ScheduleEditorPage.tsx`
- [Time planning](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/components/SchedulingSidebar.tsx): `frontend/src/app/components/SchedulingSidebar.tsx`
- [Collaborators](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/components/CollaborationPanel.tsx): `frontend/src/app/components/CollaborationPanel.tsx`
- [Share schedule](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/components/ShareModal.tsx): `frontend/src/app/components/ShareModal.tsx`
- [Saved schedules](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/SavedSchedulesPage.tsx): `frontend/src/app/pages/SavedSchedulesPage.tsx`
- [Schedule archive](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/ArchivePanel.jsx): `frontend/src/app/pages/ArchivePanel.jsx`
- [Shared schedule](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/SharedSchedulePage.tsx): `frontend/src/app/pages/SharedSchedulePage.tsx`

### Data services

- [App state](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/context/AppContext.tsx): `frontend/src/app/context/AppContext.tsx`
- [API client](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/pages/api.js): `frontend/src/app/pages/api.js`
- [Typed API client](https://github.com/plames90/travel-scheduler/blob/main/frontend/src/app/services/api.ts): `frontend/src/app/services/api.ts`
- [AI endpoint](https://github.com/plames90/travel-scheduler/blob/main/cost_ai/wanderflow-ai-api/lambda_function.py): `cost_ai/wanderflow-ai-api/lambda_function.py`

### Other components

- **Traveler**
- **WayFlow backend**
- **Naver place search**
- **AI service**

## Connections

- Traveler → App flow: opens
- App flow → Account access: shows (evidence: `frontend/src/app/App.jsx`)
- App flow → Product tutorial: shows (evidence: `frontend/src/app/App.jsx`)
- App flow → Planning home: shows (evidence: `frontend/src/app/App.jsx`)
- Traveler → Page routes: navigates (evidence: `frontend/src/app/routes.tsx`)
- Page routes → Account access: routes to (evidence: `frontend/src/app/routes.tsx`)
- Page routes → Planning home: routes to (evidence: `frontend/src/app/routes.tsx`)
- Page routes → Schedule editor: routes to (evidence: `frontend/src/app/routes.tsx`)
- Page routes → Saved schedules: routes to (evidence: `frontend/src/app/routes.tsx`)
- Page routes → User profile: routes to (evidence: `frontend/src/app/routes.tsx`)
- Page routes → Shared schedule: routes to (evidence: `frontend/src/app/routes.tsx`)
- Account access → API client: authenticates via (evidence: `frontend/src/app/pages/AuthPage.jsx`)
- Planning home → Place search: offers search
- Planning home → Map display: displays places (evidence: `frontend/src/app/pages/HomePage.jsx`)
- Planning home → Schedule archive: opens archive (evidence: `frontend/src/app/pages/HomePage.jsx`)
- Planning home → User profile: opens profile (evidence: `frontend/src/app/pages/HomePage.jsx`)
- Place search → Offline places: uses fallback data (evidence: `frontend/src/app/components/SearchBar.tsx`)
- Place search → Naver place search: queries places (evidence: `frontend/src/app/components/SearchBar.tsx`)
- Schedule editor → Map display: renders (evidence: `frontend/src/app/pages/ScheduleEditorPage.tsx`)
- Schedule editor → Time planning: renders (evidence: `frontend/src/app/pages/ScheduleEditorPage.tsx`)
- Schedule editor → Place search: renders (evidence: `frontend/src/app/pages/ScheduleEditorPage.tsx`)
- Schedule editor → Share schedule: renders (evidence: `frontend/src/app/pages/ScheduleEditorPage.tsx`)
- Schedule editor → Collaborators: renders (evidence: `frontend/src/app/pages/ScheduleEditorPage.tsx`)
- Schedule editor → App state: uses (evidence: `frontend/src/app/pages/ScheduleEditorPage.tsx`)
- Preference survey → App state: updates preferences (evidence: `frontend/src/app/components/OnboardingSurvey.tsx`)
- App state → Typed API client: loads schedules (evidence: `frontend/src/app/context/AppContext.tsx`)
- App state → WayFlow backend: requests schedules (evidence: `frontend/src/app/context/AppContext.tsx`)
- Planning home → API client: searches places (evidence: `frontend/src/app/pages/HomePage.jsx`)
- API client → WayFlow backend: requests data (evidence: `frontend/src/app/pages/api.js`)
- API client → Naver place search: requests transit routes (evidence: `frontend/src/app/pages/api.js`)
- Saved schedules → App state: uses schedules
- Shared schedule → App state: uses schedule data
- AI endpoint → AI service: invokes
