# vmurali21/readyforlanding architecture

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

- Interactive diagram: https://gitdiagram.com/vmurali21/readyforlanding
- Repository: https://github.com/vmurali21/readyforlanding
- Video tour (about a minute): https://gitdiagram.com/vmurali21/readyforlanding/video

## Overview

Ready for Landing helps someone collecting a flight’s passengers decide when to leave for the destination airport. The browser workflow looks up live flight data, falls back to historic data, resolves the airport, estimates the drive, calculates a departure recommendation, and shows the airport on a map. A separate Express proxy is present, but the sampled browser code uses Vite’s external-service proxies rather than the Express routes. The graph follows the sampled sources; relationships for the separate proxy are based on its route handlers.

Main entry points: [`src/App.tsx`](https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx) (Application workflow), [`src/server.js`](https://github.com/vmurali21/readyforlanding/blob/main/src/server.js) (Express API proxy), [`src/main.tsx`](https://github.com/vmurali21/readyforlanding/blob/main/src/main.tsx) (React entry point), [`public/airportdataset.json`](https://github.com/vmurali21/readyforlanding/blob/main/public/airportdataset.json) (Airport dataset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Pickup planning"]
  node_app["Application workflow<br/>[App.tsx]"]
  node_flightlookup["Flight lookup<br/>[App.tsx]"]
  node_airportlookup["Airport coordinates<br/>[App.tsx]"]
  node_driveestimate["Drive estimate<br/>[App.tsx]"]
  node_departureplan["Departure recommendation<br/>[App.tsx]"]
  node_airportdata[("Airport dataset")]
end

subgraph group_presentation["Browser experience"]
  node_browserentry["React entry point<br/>[main.tsx]"]
  node_pickupform["Flight and address form<br/>[App.tsx]"]
  node_mapview["Airport map<br/>[App.tsx]"]
  node_results["Pickup results<br/>[App.tsx]"]
end

subgraph group_integrations["External services and proxy"]
  node_fr24{{"FlightRadar24"}}
  node_googlemaps{{"Google Maps services"}}
  node_expressproxy["Express API proxy<br/>[server.js]"]
end

node_visitor(("Flight collector"))

node_visitor -->|"enters details"| node_pickupform
node_browserentry -->|"renders"| node_app
node_pickupform -->|"submits"| node_app
node_app -->|"requests flight"| node_flightlookup
node_flightlookup -->|"fetches live or historic"| node_fr24
node_app -->|"resolves destination"| node_airportlookup
node_airportlookup -->|"reads coordinates"| node_airportdata
node_app -->|"requests route estimate"| node_driveestimate
node_driveestimate -->|"queries distance matrix"| node_googlemaps
node_app -->|"calculates timing"| node_departureplan
node_app -->|"sets airport location"| node_mapview
node_mapview -->|"renders map and autocomplete"| node_googlemaps
node_app -->|"updates output"| node_results
node_expressproxy -->|"proxies flight requests"| node_fr24
node_expressproxy -->|"proxies distance requests"| node_googlemaps

click node_app "https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx"
click node_flightlookup "https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx"
click node_airportlookup "https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx"
click node_driveestimate "https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx"
click node_departureplan "https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx"
click node_airportdata "https://github.com/vmurali21/readyforlanding/blob/main/public/airportdataset.json"
click node_browserentry "https://github.com/vmurali21/readyforlanding/blob/main/src/main.tsx"
click node_pickupform "https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx"
click node_mapview "https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx"
click node_results "https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx"
click node_expressproxy "https://github.com/vmurali21/readyforlanding/blob/main/src/server.js"

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_flightlookup,node_airportlookup,node_driveestimate,node_departureplan,node_airportdata toneBlue
class node_browserentry,node_pickupform,node_mapview,node_results toneAmber
class node_fr24,node_googlemaps,node_expressproxy toneMint
class node_visitor toneIndigo
```

## Components

### Pickup planning

- [Application workflow](https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx): `src/App.tsx`
- [Flight lookup](https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx): `src/App.tsx`
- [Airport coordinates](https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx): `src/App.tsx`
- [Drive estimate](https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx): `src/App.tsx`
- [Departure recommendation](https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx): `src/App.tsx`
- [Airport dataset](https://github.com/vmurali21/readyforlanding/blob/main/public/airportdataset.json): `public/airportdataset.json`

### Browser experience

- [React entry point](https://github.com/vmurali21/readyforlanding/blob/main/src/main.tsx): `src/main.tsx`
- [Flight and address form](https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx): `src/App.tsx`
- [Airport map](https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx): `src/App.tsx`
- [Pickup results](https://github.com/vmurali21/readyforlanding/blob/main/src/App.tsx): `src/App.tsx`

### External services and proxy

- **FlightRadar24**
- **Google Maps services**
- [Express API proxy](https://github.com/vmurali21/readyforlanding/blob/main/src/server.js): `src/server.js`

### Other components

- **Flight collector**

## Connections

- Flight collector → Flight and address form: enters details (evidence: `src/App.tsx`)
- React entry point → Application workflow: renders (evidence: `src/main.tsx`)
- Flight and address form → Application workflow: submits (evidence: `src/App.tsx`)
- Application workflow → Flight lookup: requests flight (evidence: `src/App.tsx`)
- Flight lookup → FlightRadar24: fetches live or historic (evidence: `src/App.tsx`)
- Application workflow → Airport coordinates: resolves destination (evidence: `src/App.tsx`)
- Airport coordinates → Airport dataset: reads coordinates (evidence: `src/App.tsx`)
- Application workflow → Drive estimate: requests route estimate (evidence: `src/App.tsx`)
- Drive estimate → Google Maps services: queries distance matrix (evidence: `src/App.tsx`)
- Application workflow → Departure recommendation: calculates timing (evidence: `src/App.tsx`)
- Application workflow → Airport map: sets airport location (evidence: `src/App.tsx`)
- Airport map → Google Maps services: renders map and autocomplete (evidence: `src/App.tsx`)
- Application workflow → Pickup results: updates output (evidence: `src/App.tsx`)
- Express API proxy → FlightRadar24: proxies flight requests (evidence: `src/server.js`)
- Express API proxy → Google Maps services: proxies distance requests (evidence: `src/server.js`)
