# ryancjc/aetherplan architecture

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

- Interactive diagram: https://gitdiagram.com/ryancjc/aetherplan
- Repository: https://github.com/ryancjc/aetherplan

## Overview

Altas is a trip-planning product with a React frontend and a Python API backend. The primary journey runs from creating a trip, through generated and editable itinerary planning, to review and payment; explore, archive, group invitations, and flight/accommodation changes are additional capabilities. The frontend manages trip views and local schedule edits, while the backend exposes planning, chat, travel-search, and payment functionality. Source excerpts are incomplete, so some frontend-to-backend and external-provider links are marked unverified or omitted.

Main entry points: [`Altas_FE/src/App.tsx`](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/App.tsx) (Trip workspace), [`Altas_hackathon/api.py`](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/api.py) (HTTP API), [`Altas_hackathon/tools.py`](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/tools.py) (Travel provider tools), [`Altas_hackathon/itineraryPlanner.py`](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/itineraryPlanner.py) (Itinerary generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Trip frontend"]
  node_app["Trip workspace<br/>[App.tsx]"]
  node_tripgen["Trip generation"]
  node_timeline["Timeline editor<br/>[TimelineView.tsx]"]
  node_schedule["Schedule recalculation"]
  node_map["Map view<br/>[MapView.tsx]"]
  node_copilot["AI copilot<br/>[AICoPilot.tsx]"]
  node_explore["Featured trips<br/>[featuredTrips.ts]"]
  node_archive["Trip archive<br/>[ArchiveView.tsx]"]
  node_changes["Trip change dialogs"]
  node_checkout["Payment review"]
  node_costs["Trip cost calculation<br/>[costs.ts]"]
  node_api_client["API client config<br/>[api.ts]"]
end

subgraph group_planning["Itinerary planning"]
  node_chat["Conversational planner<br/>[chat_agent.py]"]
  node_agent["Planning agent<br/>[agent.py]"]
  node_planner["Itinerary generation"]
end

subgraph group_travel["Travel services"]
  node_flights["Flight search<br/>[flights.py]"]
  node_hotels["Hotel search<br/>[hotels.py]"]
  node_activities["Activity search<br/>[activities.py]"]
  node_tools["Travel provider tools<br/>[tools.py]"]
end

subgraph group_platform["Backend platform"]
  node_api["HTTP API<br/>[api.py]"]
  node_schemas["Trip data schemas<br/>[schemas.py]"]
  node_payment["Payment service<br/>[payment.py]"]
  node_repo["Itinerary repository<br/>[itinerary_repo.py]"]
  node_database[("MongoDB<br/>[database.py]")]
end

node_traveler(("Traveler"))

node_traveler -->|"uses"| node_app
node_app -->|"opens"| node_tripgen
node_app -->|"renders"| node_timeline
node_app -->|"renders"| node_map
node_app -->|"renders"| node_copilot
node_app -.->|"loads"| node_explore
node_app -.->|"renders"| node_archive
node_app -->|"opens"| node_checkout
node_app -.->|"opens"| node_changes
node_timeline -->|"recalculates"| node_schedule
node_explore -->|"provides trips"| node_app
node_checkout -->|"calculates totals"| node_costs
node_app -.->|"configures API"| node_api_client
node_api_client -.->|"targets"| node_api
node_api -->|"dispatches"| node_chat
node_api -->|"dispatches"| node_agent
node_api -->|"invokes"| node_planner
node_api -->|"routes requests"| node_flights
node_api -->|"routes requests"| node_hotels
node_api -->|"routes requests"| node_activities
node_api -->|"routes payments"| node_payment
node_api -->|"reads and writes"| node_repo
node_chat -->|"uses planner"| node_planner
node_agent -->|"uses tools"| node_tools
node_planner -.->|"uses tools"| node_tools
node_flights -->|"uses tools"| node_tools
node_hotels -->|"uses tools"| node_tools
node_activities -->|"uses tools"| node_tools
node_repo -->|"accesses"| node_database
node_api -->|"validates data"| node_schemas

click node_app "https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/App.tsx"
click node_tripgen "https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/TripGenerationPage.tsx"
click node_timeline "https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/TimelineView.tsx"
click node_schedule "https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/utils/recalculateSchedule.ts"
click node_map "https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/MapView.tsx"
click node_copilot "https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/AICoPilot.tsx"
click node_explore "https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/data/featuredTrips.ts"
click node_archive "https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/ArchiveView.tsx"
click node_changes "https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/ChangeAccommodationModal.tsx"
click node_checkout "https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/FinalizePayView.tsx"
click node_costs "https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/utils/costs.ts"
click node_api_client "https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/api.ts"
click node_api "https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/api.py"
click node_chat "https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/chat_agent.py"
click node_agent "https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/agent.py"
click node_planner "https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/itineraryPlanner.py"
click node_schemas "https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/schemas.py"
click node_flights "https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/flights.py"
click node_hotels "https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/hotels.py"
click node_activities "https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/activities.py"
click node_tools "https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/tools.py"
click node_payment "https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/payment.py"
click node_repo "https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/itinerary_repo.py"
click node_database "https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/database.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_tripgen,node_timeline,node_schedule,node_map,node_copilot,node_explore,node_archive,node_changes,node_checkout,node_costs,node_api_client toneBlue
class node_chat,node_agent,node_planner toneAmber
class node_flights,node_hotels,node_activities,node_tools toneMint
class node_api,node_schemas,node_payment,node_repo,node_database toneRose
class node_traveler toneIndigo
```

## Components

### Trip frontend

- [Trip workspace](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/App.tsx): `Altas_FE/src/App.tsx`
- [Trip generation](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/TripGenerationPage.tsx): `Altas_FE/src/components/TripGenerationPage.tsx`
- [Timeline editor](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/TimelineView.tsx): `Altas_FE/src/components/TimelineView.tsx`
- [Schedule recalculation](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/utils/recalculateSchedule.ts): `Altas_FE/src/utils/recalculateSchedule.ts`
- [Map view](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/MapView.tsx): `Altas_FE/src/components/MapView.tsx`
- [AI copilot](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/AICoPilot.tsx): `Altas_FE/src/components/AICoPilot.tsx`
- [Featured trips](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/data/featuredTrips.ts): `Altas_FE/src/data/featuredTrips.ts`
- [Trip archive](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/ArchiveView.tsx): `Altas_FE/src/components/ArchiveView.tsx`
- [Trip change dialogs](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/ChangeAccommodationModal.tsx): `Altas_FE/src/components/ChangeAccommodationModal.tsx`
- [Payment review](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/components/FinalizePayView.tsx): `Altas_FE/src/components/FinalizePayView.tsx`
- [Trip cost calculation](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/utils/costs.ts): `Altas_FE/src/utils/costs.ts`
- [API client config](https://github.com/ryancjc/aetherplan/blob/main/Altas_FE/src/api.ts): `Altas_FE/src/api.ts`

### Itinerary planning

- [Conversational planner](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/chat_agent.py): `Altas_hackathon/chat_agent.py`
- [Planning agent](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/agent.py): `Altas_hackathon/agent.py`
- [Itinerary generation](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/itineraryPlanner.py): `Altas_hackathon/itineraryPlanner.py`

### Travel services

- [Flight search](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/flights.py): `Altas_hackathon/flights.py`
- [Hotel search](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/hotels.py): `Altas_hackathon/hotels.py`
- [Activity search](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/activities.py): `Altas_hackathon/activities.py`
- [Travel provider tools](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/tools.py): `Altas_hackathon/tools.py`

### Backend platform

- [HTTP API](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/api.py): `Altas_hackathon/api.py`
- [Trip data schemas](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/schemas.py): `Altas_hackathon/schemas.py`
- [Payment service](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/payment.py): `Altas_hackathon/payment.py`
- [Itinerary repository](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/itinerary_repo.py): `Altas_hackathon/itinerary_repo.py`
- [MongoDB](https://github.com/ryancjc/aetherplan/blob/main/Altas_hackathon/database.py): `Altas_hackathon/database.py`

### Other components

- **Traveler**

## Connections

- Traveler → Trip workspace: uses (evidence: `Altas_FE/src/App.tsx`)
- Trip workspace → Trip generation: opens (evidence: `Altas_FE/src/App.tsx`)
- Trip workspace → Timeline editor: renders (evidence: `Altas_FE/src/App.tsx`)
- Trip workspace → Map view: renders (evidence: `Altas_FE/src/App.tsx`)
- Trip workspace → AI copilot: renders (evidence: `Altas_FE/src/App.tsx`)
- Trip workspace → Featured trips: loads
- Trip workspace → Trip archive: renders (evidence: `Altas_FE/src/App.tsx`)
- Trip workspace → Payment review: opens (evidence: `Altas_FE/src/App.tsx`)
- Trip workspace → Trip change dialogs: opens (evidence: `Altas_FE/src/App.tsx`)
- Timeline editor → Schedule recalculation: recalculates (evidence: `Altas_FE/src/components/TimelineView.tsx`)
- Featured trips → Trip workspace: provides trips
- Payment review → Trip cost calculation: calculates totals (evidence: `Altas_FE/src/components/FinalizePayView.tsx`)
- Trip workspace → API client config: configures API (evidence: `Altas_FE/src/App.tsx`)
- API client config → HTTP API: targets
- HTTP API → Conversational planner: dispatches (evidence: `Altas_hackathon/api.py`)
- HTTP API → Planning agent: dispatches (evidence: `Altas_hackathon/api.py`)
- HTTP API → Itinerary generation: invokes (evidence: `Altas_hackathon/api.py`)
- HTTP API → Flight search: routes requests (evidence: `Altas_hackathon/api.py`)
- HTTP API → Hotel search: routes requests (evidence: `Altas_hackathon/api.py`)
- HTTP API → Activity search: routes requests (evidence: `Altas_hackathon/api.py`)
- HTTP API → Payment service: routes payments (evidence: `Altas_hackathon/api.py`)
- HTTP API → Itinerary repository: reads and writes (evidence: `Altas_hackathon/api.py`)
- Conversational planner → Itinerary generation: uses planner (evidence: `Altas_hackathon/chat_agent.py`)
- Planning agent → Travel provider tools: uses tools (evidence: `Altas_hackathon/agent.py`)
- Itinerary generation → Travel provider tools: uses tools (evidence: `Altas_hackathon/tools.py`)
- Flight search → Travel provider tools: uses tools (evidence: `Altas_hackathon/flights.py`)
- Hotel search → Travel provider tools: uses tools (evidence: `Altas_hackathon/hotels.py`)
- Activity search → Travel provider tools: uses tools (evidence: `Altas_hackathon/activities.py`)
- Itinerary repository → MongoDB: accesses (evidence: `Altas_hackathon/itinerary_repo.py`)
- HTTP API → Trip data schemas: validates data (evidence: `Altas_hackathon/api.py`)
