# tharun-7733/traveladvisor architecture

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

## Overview

Voyaura is a multi-agent travel-planning application with both a web interface and an interactive CLI. The web workflow takes a trip request through the planning form, streams specialist-agent progress from the API, and displays the compiled guide; the CLI invokes the graph workflow directly. The README documents destination research, itinerary planning, budget estimates, hotels, weather, and guide compilation. Backend implementation excerpts were not provided, so backend relationships below rely on README statements; UI route wiring and the CLI’s graph import are supported by the source index.

Main entry points: [`agents/supervisor.py`](https://github.com/tharun-7733/traveladvisor/blob/master/agents/supervisor.py) (Supervisor and compiler), [`wanderful-ui/src/App.tsx`](https://github.com/tharun-7733/traveladvisor/blob/master/wanderful-ui/src/App.tsx) (Page router), [`LLM.py`](https://github.com/tharun-7733/traveladvisor/blob/master/LLM.py) (LLM configuration), [`api.py`](https://github.com/tharun-7733/traveladvisor/blob/master/api.py) (SSE planning API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_app["Page router<br/>[App.tsx]"]
  node_landing["Landing page<br/>[HeroPage.tsx]"]
  node_tripform["Trip form<br/>[PlanPage.tsx]"]
  node_guideview["Guide results<br/>[ResultPage.tsx]"]
  node_about["About page<br/>[AboutPage.tsx]"]
end

subgraph group_backend["Planning workflow"]
  node_api["SSE planning API<br/>[api.py]"]
  node_workflow{{"LangGraph workflow<br/>[graph.py]"}}
  node_llm["LLM configuration<br/>[LLM.py]"]
end

subgraph group_agents["Travel specialists"]
  node_supervisor["Supervisor and compiler<br/>[supervisor.py]"]
  node_destination["Destination research"]
  node_itinerary["Itinerary planning<br/>[itinerary_agent.py]"]
  node_budget["Budget analysis<br/>[budget_agent.py]"]
  node_hotel["Hotel scouting<br/>[hotel_agent.py]"]
  node_weather["Weather advice<br/>[weather_agent.py]"]
  node_weatherdata["Weather provider"]
end

subgraph group_runtime["Runtime entrypoints"]
  node_cli["Terminal CLI<br/>[main.py]"]
end

node_traveler(("Traveler"))

node_traveler -->|"opens"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_tripform
node_app -->|"routes to"| node_guideview
node_app -->|"routes to"| node_about
node_tripform -->|"submits plan"| node_api
node_api -->|"starts workflow"| node_workflow
node_workflow -->|"dispatches"| node_supervisor
node_supervisor -->|"coordinates"| node_destination
node_supervisor -->|"coordinates"| node_itinerary
node_supervisor -->|"coordinates"| node_budget
node_supervisor -->|"coordinates"| node_hotel
node_supervisor -->|"coordinates"| node_weather
node_api -->|"streams progress"| node_tripform
node_api -->|"streams guide"| node_guideview
node_cli -->|"invokes"| node_workflow
node_weather -.->|"uses provider"| node_weatherdata
node_destination -.->|"uses model"| node_llm
node_itinerary -.->|"uses model"| node_llm
node_budget -.->|"uses model"| node_llm
node_hotel -.->|"uses model"| node_llm
node_weather -.->|"uses model"| node_llm

click node_app "https://github.com/tharun-7733/traveladvisor/blob/master/wanderful-ui/src/App.tsx"
click node_landing "https://github.com/tharun-7733/traveladvisor/blob/master/wanderful-ui/src/pages/HeroPage.tsx"
click node_tripform "https://github.com/tharun-7733/traveladvisor/blob/master/wanderful-ui/src/pages/PlanPage.tsx"
click node_guideview "https://github.com/tharun-7733/traveladvisor/blob/master/wanderful-ui/src/pages/ResultPage.tsx"
click node_about "https://github.com/tharun-7733/traveladvisor/blob/master/wanderful-ui/src/pages/AboutPage.tsx"
click node_api "https://github.com/tharun-7733/traveladvisor/blob/master/api.py"
click node_workflow "https://github.com/tharun-7733/traveladvisor/blob/master/graph.py"
click node_supervisor "https://github.com/tharun-7733/traveladvisor/blob/master/agents/supervisor.py"
click node_destination "https://github.com/tharun-7733/traveladvisor/blob/master/agents/destination_agent.py"
click node_itinerary "https://github.com/tharun-7733/traveladvisor/blob/master/agents/itinerary_agent.py"
click node_budget "https://github.com/tharun-7733/traveladvisor/blob/master/agents/budget_agent.py"
click node_hotel "https://github.com/tharun-7733/traveladvisor/blob/master/agents/hotel_agent.py"
click node_weather "https://github.com/tharun-7733/traveladvisor/blob/master/agents/weather_agent.py"
click node_weatherdata "https://github.com/tharun-7733/traveladvisor/blob/master/agents/weather_provider.py"
click node_llm "https://github.com/tharun-7733/traveladvisor/blob/master/LLM.py"
click node_cli "https://github.com/tharun-7733/traveladvisor/blob/master/main.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_landing,node_tripform,node_guideview,node_about toneBlue
class node_api,node_workflow,node_llm toneAmber
class node_supervisor,node_destination,node_itinerary,node_budget,node_hotel,node_weather,node_weatherdata toneMint
class node_cli toneRose
class node_traveler toneIndigo
```

## Components

### Web experience

- [Page router](https://github.com/tharun-7733/traveladvisor/blob/master/wanderful-ui/src/App.tsx): `wanderful-ui/src/App.tsx`
- [Landing page](https://github.com/tharun-7733/traveladvisor/blob/master/wanderful-ui/src/pages/HeroPage.tsx): `wanderful-ui/src/pages/HeroPage.tsx`
- [Trip form](https://github.com/tharun-7733/traveladvisor/blob/master/wanderful-ui/src/pages/PlanPage.tsx): `wanderful-ui/src/pages/PlanPage.tsx`
- [Guide results](https://github.com/tharun-7733/traveladvisor/blob/master/wanderful-ui/src/pages/ResultPage.tsx): `wanderful-ui/src/pages/ResultPage.tsx`
- [About page](https://github.com/tharun-7733/traveladvisor/blob/master/wanderful-ui/src/pages/AboutPage.tsx): `wanderful-ui/src/pages/AboutPage.tsx`

### Planning workflow

- [SSE planning API](https://github.com/tharun-7733/traveladvisor/blob/master/api.py): `api.py`
- [LangGraph workflow](https://github.com/tharun-7733/traveladvisor/blob/master/graph.py): `graph.py`
- [LLM configuration](https://github.com/tharun-7733/traveladvisor/blob/master/LLM.py): `LLM.py`

### Travel specialists

- [Supervisor and compiler](https://github.com/tharun-7733/traveladvisor/blob/master/agents/supervisor.py): `agents/supervisor.py`
- [Destination research](https://github.com/tharun-7733/traveladvisor/blob/master/agents/destination_agent.py): `agents/destination_agent.py`
- [Itinerary planning](https://github.com/tharun-7733/traveladvisor/blob/master/agents/itinerary_agent.py): `agents/itinerary_agent.py`
- [Budget analysis](https://github.com/tharun-7733/traveladvisor/blob/master/agents/budget_agent.py): `agents/budget_agent.py`
- [Hotel scouting](https://github.com/tharun-7733/traveladvisor/blob/master/agents/hotel_agent.py): `agents/hotel_agent.py`
- [Weather advice](https://github.com/tharun-7733/traveladvisor/blob/master/agents/weather_agent.py): `agents/weather_agent.py`
- [Weather provider](https://github.com/tharun-7733/traveladvisor/blob/master/agents/weather_provider.py): `agents/weather_provider.py`

### Runtime entrypoints

- [Terminal CLI](https://github.com/tharun-7733/traveladvisor/blob/master/main.py): `main.py`

### Other components

- **Traveler**

## Connections

- Traveler → Page router: opens (evidence: `wanderful-ui/src/App.tsx`)
- Page router → Landing page: routes to (evidence: `wanderful-ui/src/App.tsx`)
- Page router → Trip form: routes to (evidence: `wanderful-ui/src/App.tsx`)
- Page router → Guide results: routes to (evidence: `wanderful-ui/src/App.tsx`)
- Page router → About page: routes to (evidence: `wanderful-ui/src/App.tsx`)
- Trip form → SSE planning API: submits plan (evidence: `README.md`)
- SSE planning API → LangGraph workflow: starts workflow (evidence: `README.md`)
- LangGraph workflow → Supervisor and compiler: dispatches (evidence: `README.md`)
- Supervisor and compiler → Destination research: coordinates (evidence: `README.md`)
- Supervisor and compiler → Itinerary planning: coordinates (evidence: `README.md`)
- Supervisor and compiler → Budget analysis: coordinates (evidence: `README.md`)
- Supervisor and compiler → Hotel scouting: coordinates (evidence: `README.md`)
- Supervisor and compiler → Weather advice: coordinates (evidence: `README.md`)
- SSE planning API → Trip form: streams progress (evidence: `README.md`)
- SSE planning API → Guide results: streams guide (evidence: `README.md`)
- Terminal CLI → LangGraph workflow: invokes (evidence: `main.py`)
- Weather advice → Weather provider: uses provider (evidence: `agents/weather_agent.py`)
- Destination research → LLM configuration: uses model
- Itinerary planning → LLM configuration: uses model
- Budget analysis → LLM configuration: uses model
- Hotel scouting → LLM configuration: uses model
- Weather advice → LLM configuration: uses model (evidence: `agents/weather_agent.py`)
