# charpignyn/flyover-tracker architecture

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

- Interactive diagram: https://gitdiagram.com/charpignyn/flyover-tracker
- Repository: https://github.com/charpignyn/flyover-tracker

## Overview

Flyover Tracker is a browser app for finding satellite passes over a user’s home location. The documented workflow is address geocoding, catalog enrichment, then worker-based pass detection and display, with catalog scope and search precision as user settings. The excerpts show the worker algorithm and local CelesTrak proxy; index.html was not sampled, so its internal UI details and several browser-to-service connections are represented only where the README supports them.

Main entry points: [`index.html`](https://github.com/charpignyn/flyover-tracker/blob/main/index.html) (Flyover interface), [`worker.js`](https://github.com/charpignyn/flyover-tracker/blob/main/worker.js) (Pass detection worker), [`server.py`](https://github.com/charpignyn/flyover-tracker/blob/main/server.py) (Local HTTP and cache proxy)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Browser experience"]
  node_app["Flyover interface<br/>[index.html]"]
  node_location["Address geocoding<br/>[index.html]"]
  node_map["Map display<br/>[index.html]"]
end

subgraph group_catalog["Catalog preparation"]
  node_catalog_fetch["TLE catalog retrieval<br/>[index.html]"]
  node_nationality["Nationality lookup<br/>[index.html]"]
  node_classification["Function classification<br/>[index.html]"]
end

subgraph group_analysis["Pass analysis"]
  node_worker["Pass detection worker<br/>[worker.js]"]
  node_orbital["Orbital propagation<br/>[worker.js]"]
  node_refinement["Closest-approach refinement<br/>[worker.js]"]
end

subgraph group_services["External services"]
  node_local_server["Local HTTP and cache proxy<br/>[server.py]"]
end

node_user(("User"))
node_nominatim{{"Nominatim geocoder"}}
node_celestrak[("CelesTrak catalog")]
node_satcat[("CelesTrak SATCAT")]
node_esri{{"Esri map tiles"}}
node_satellitejs["satellite.js"]

node_user -->|"uses"| node_app
node_app -->|"geocodes address"| node_location
node_location -->|"requests coordinates"| node_nominatim
node_app -->|"retrieves TLEs"| node_catalog_fetch
node_catalog_fetch -.->|"requests proxy"| node_local_server
node_local_server -->|"fetches and caches"| node_celestrak
node_catalog_fetch -->|"cross-references"| node_nationality
node_nationality -->|"looks up NORAD numbers"| node_satcat
node_catalog_fetch -->|"classifies satellites"| node_classification
node_app -->|"sends catalog and settings"| node_worker
node_worker -->|"propagates satellites"| node_orbital
node_orbital -->|"uses SGP4"| node_satellitejs
node_worker -->|"refines minima"| node_refinement
node_worker -->|"returns pass results"| node_app
node_app -.->|"displays location"| node_map
node_map -.->|"loads tiles"| node_esri

click node_app "https://github.com/charpignyn/flyover-tracker/blob/main/index.html"
click node_location "https://github.com/charpignyn/flyover-tracker/blob/main/index.html"
click node_map "https://github.com/charpignyn/flyover-tracker/blob/main/index.html"
click node_catalog_fetch "https://github.com/charpignyn/flyover-tracker/blob/main/index.html"
click node_nationality "https://github.com/charpignyn/flyover-tracker/blob/main/index.html"
click node_classification "https://github.com/charpignyn/flyover-tracker/blob/main/index.html"
click node_worker "https://github.com/charpignyn/flyover-tracker/blob/main/worker.js"
click node_orbital "https://github.com/charpignyn/flyover-tracker/blob/main/worker.js"
click node_refinement "https://github.com/charpignyn/flyover-tracker/blob/main/worker.js"
click node_local_server "https://github.com/charpignyn/flyover-tracker/blob/main/server.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_location,node_map,node_user toneBlue
class node_catalog_fetch,node_nationality,node_classification,node_celestrak,node_satcat toneAmber
class node_worker,node_orbital,node_refinement toneMint
class node_local_server toneRose
class node_nominatim,node_esri,node_satellitejs toneIndigo
```

## Components

### Browser experience

- [Flyover interface](https://github.com/charpignyn/flyover-tracker/blob/main/index.html): `index.html`
- [Address geocoding](https://github.com/charpignyn/flyover-tracker/blob/main/index.html): `index.html`
- [Map display](https://github.com/charpignyn/flyover-tracker/blob/main/index.html): `index.html`

### Catalog preparation

- [TLE catalog retrieval](https://github.com/charpignyn/flyover-tracker/blob/main/index.html): `index.html`
- [Nationality lookup](https://github.com/charpignyn/flyover-tracker/blob/main/index.html): `index.html`
- [Function classification](https://github.com/charpignyn/flyover-tracker/blob/main/index.html): `index.html`

### Pass analysis

- [Pass detection worker](https://github.com/charpignyn/flyover-tracker/blob/main/worker.js): `worker.js`
- [Orbital propagation](https://github.com/charpignyn/flyover-tracker/blob/main/worker.js): `worker.js`
- [Closest-approach refinement](https://github.com/charpignyn/flyover-tracker/blob/main/worker.js): `worker.js`

### External services

- [Local HTTP and cache proxy](https://github.com/charpignyn/flyover-tracker/blob/main/server.py): `server.py`

### Other components

- **User**
- **Nominatim geocoder**
- **CelesTrak catalog**
- **CelesTrak SATCAT**
- **Esri map tiles**
- **satellite.js**

## Connections

- User → Flyover interface: uses (evidence: `README.md`)
- Flyover interface → Address geocoding: geocodes address (evidence: `README.md`)
- Address geocoding → Nominatim geocoder: requests coordinates (evidence: `README.md`)
- Flyover interface → TLE catalog retrieval: retrieves TLEs (evidence: `README.md`)
- TLE catalog retrieval → Local HTTP and cache proxy: requests proxy
- Local HTTP and cache proxy → CelesTrak catalog: fetches and caches (evidence: `server.py`)
- TLE catalog retrieval → Nationality lookup: cross-references (evidence: `README.md`)
- Nationality lookup → CelesTrak SATCAT: looks up NORAD numbers (evidence: `README.md`)
- TLE catalog retrieval → Function classification: classifies satellites (evidence: `README.md`)
- Flyover interface → Pass detection worker: sends catalog and settings (evidence: `README.md`)
- Pass detection worker → Orbital propagation: propagates satellites (evidence: `worker.js`)
- Orbital propagation → satellite.js: uses SGP4 (evidence: `worker.js`)
- Pass detection worker → Closest-approach refinement: refines minima (evidence: `worker.js`)
- Pass detection worker → Flyover interface: returns pass results (evidence: `worker.js`)
- Flyover interface → Map display: displays location
- Map display → Esri map tiles: loads tiles
