# rohithprem18/skypass architecture

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

- Interactive diagram: https://gitdiagram.com/rohithprem18/skypass
- Repository: https://github.com/rohithprem18/skypass

## Overview

SkyPass turns orbital elements and weather forecasts into satellite-pass predictions, optical-visibility assessments, and conflict-free observation schedules. Users initiate planning through the CLI or web console; results include explanations and practical exports. The graph preserves the documented cloud-camera and learned-brightness options, plus the observation and research console. Core pipeline calls are supported by the pipeline excerpt and source index; some interface and optional-integration links are documented capabilities rather than inspected call sites, so those links are marked unverified.

Main entry points: [`skypass/pipeline.py`](https://github.com/rohithprem18/skypass/blob/main/skypass/pipeline.py) (Planning pipeline), [`webapp/ui/src/App.tsx`](https://github.com/rohithprem18/skypass/blob/main/webapp/ui/src/App.tsx) (Web console), [`skypass/passes.py`](https://github.com/rohithprem18/skypass/blob/main/skypass/passes.py) (Pass extraction), [`skypass/weather.py`](https://github.com/rohithprem18/skypass/blob/main/skypass/weather.py) (Forecast calibration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orbit["Orbit and passes"]
  node_tle["Element archive<br/>[tle.py]"]
  node_spacetrack["Element provider<br/>[spacetrack.py]"]
  node_geometry["Orbital geometry<br/>[geometry.py]"]
  node_passes["Pass extraction<br/>[passes.py]"]
end

subgraph group_planning["Planning and forecasts"]
  node_pipeline["Planning pipeline<br/>[pipeline.py]"]
  node_config["Site and planner config<br/>[config.py]"]
  node_scoring["Visibility scoring<br/>[scoring.py]"]
  node_weather["Forecast calibration<br/>[weather.py]"]
  node_scheduler["Conflict scheduling<br/>[scheduler.py]"]
  node_report["Plan exports<br/>[report.py]"]
  node_paths["Local data paths<br/>[paths.py]"]
  node_timeutil["Time utilities<br/>[timeutil.py]"]
end

subgraph group_interfaces["User interfaces"]
  node_cli["CLI<br/>[cli.py]"]
  node_console["Web console<br/>[App.tsx]"]
  node_api["Web API<br/>[server.py]"]
  node_api_entry["API entry<br/>[index.py]"]
  node_context["Observing context<br/>[context.py]"]
end

subgraph group_learning["Learning and research"]
  node_cloudcam["Sky-image nowcast<br/>[cloudcam.py]"]
  node_brightness["Brightness model<br/>[brightness.py]"]
  node_research["Research results<br/>[research.ts]"]
end

node_observer(("Observer"))
node_openmeteo["Open-Meteo"]
node_celestrak["CelesTrak"]
node_skyimage["Sky-camera image"]

node_observer -.->|"runs planning"| node_cli
node_observer -.->|"uses console"| node_console
node_cli -.->|"invokes plan"| node_pipeline
node_console -.->|"requests plans"| node_api
node_api_entry -.->|"builds plans"| node_pipeline
node_pipeline -->|"uses settings"| node_config
node_pipeline -->|"loads elements"| node_tle
node_pipeline -->|"extracts passes"| node_passes
node_pipeline -->|"gets forecasts"| node_weather
node_pipeline -->|"scores visibility"| node_scoring
node_pipeline -->|"selects schedule"| node_scheduler
node_passes -->|"uses geometry"| node_geometry
node_spacetrack -.->|"fetches elements"| node_celestrak
node_weather -.->|"fetches forecasts"| node_openmeteo
node_pipeline -.->|"exports timetable"| node_report
node_context -.->|"adds observation context"| node_pipeline
node_cloudcam -.->|"reads image"| node_skyimage
node_pipeline -.->|"uses optional nowcast"| node_cloudcam
node_pipeline -.->|"uses optional model"| node_brightness
node_console -->|"shows findings"| node_research

click node_cli "https://github.com/rohithprem18/skypass/blob/main/skypass/cli.py"
click node_console "https://github.com/rohithprem18/skypass/blob/main/webapp/ui/src/App.tsx"
click node_api "https://github.com/rohithprem18/skypass/blob/main/webapp/server.py"
click node_api_entry "https://github.com/rohithprem18/skypass/blob/main/api/index.py"
click node_context "https://github.com/rohithprem18/skypass/blob/main/webapp/context.py"
click node_pipeline "https://github.com/rohithprem18/skypass/blob/main/skypass/pipeline.py"
click node_config "https://github.com/rohithprem18/skypass/blob/main/skypass/config.py"
click node_tle "https://github.com/rohithprem18/skypass/blob/main/skypass/tle.py"
click node_spacetrack "https://github.com/rohithprem18/skypass/blob/main/skypass/spacetrack.py"
click node_geometry "https://github.com/rohithprem18/skypass/blob/main/skypass/geometry.py"
click node_passes "https://github.com/rohithprem18/skypass/blob/main/skypass/passes.py"
click node_scoring "https://github.com/rohithprem18/skypass/blob/main/skypass/scoring.py"
click node_weather "https://github.com/rohithprem18/skypass/blob/main/skypass/weather.py"
click node_scheduler "https://github.com/rohithprem18/skypass/blob/main/skypass/scheduler.py"
click node_report "https://github.com/rohithprem18/skypass/blob/main/skypass/report.py"
click node_paths "https://github.com/rohithprem18/skypass/blob/main/skypass/paths.py"
click node_timeutil "https://github.com/rohithprem18/skypass/blob/main/skypass/timeutil.py"
click node_cloudcam "https://github.com/rohithprem18/skypass/blob/main/skypass/ml/cloudcam.py"
click node_brightness "https://github.com/rohithprem18/skypass/blob/main/skypass/ml/brightness.py"
click node_research "https://github.com/rohithprem18/skypass/blob/main/webapp/ui/src/lib/research.ts"

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_tle,node_spacetrack,node_geometry,node_passes toneBlue
class node_pipeline,node_config,node_scoring,node_weather,node_scheduler,node_report,node_paths,node_timeutil toneAmber
class node_cli,node_console,node_api,node_api_entry,node_context,node_observer toneMint
class node_cloudcam,node_brightness,node_research toneRose
class node_openmeteo,node_celestrak,node_skyimage toneIndigo
```

## Components

### Orbit and passes

- [Element archive](https://github.com/rohithprem18/skypass/blob/main/skypass/tle.py): `skypass/tle.py`
- [Element provider](https://github.com/rohithprem18/skypass/blob/main/skypass/spacetrack.py): `skypass/spacetrack.py`
- [Orbital geometry](https://github.com/rohithprem18/skypass/blob/main/skypass/geometry.py): `skypass/geometry.py`
- [Pass extraction](https://github.com/rohithprem18/skypass/blob/main/skypass/passes.py): `skypass/passes.py`

### Planning and forecasts

- [Planning pipeline](https://github.com/rohithprem18/skypass/blob/main/skypass/pipeline.py): `skypass/pipeline.py`
- [Site and planner config](https://github.com/rohithprem18/skypass/blob/main/skypass/config.py): `skypass/config.py`
- [Visibility scoring](https://github.com/rohithprem18/skypass/blob/main/skypass/scoring.py): `skypass/scoring.py`
- [Forecast calibration](https://github.com/rohithprem18/skypass/blob/main/skypass/weather.py): `skypass/weather.py`
- [Conflict scheduling](https://github.com/rohithprem18/skypass/blob/main/skypass/scheduler.py): `skypass/scheduler.py`
- [Plan exports](https://github.com/rohithprem18/skypass/blob/main/skypass/report.py): `skypass/report.py`
- [Local data paths](https://github.com/rohithprem18/skypass/blob/main/skypass/paths.py): `skypass/paths.py`
- [Time utilities](https://github.com/rohithprem18/skypass/blob/main/skypass/timeutil.py): `skypass/timeutil.py`

### User interfaces

- [CLI](https://github.com/rohithprem18/skypass/blob/main/skypass/cli.py): `skypass/cli.py`
- [Web console](https://github.com/rohithprem18/skypass/blob/main/webapp/ui/src/App.tsx): `webapp/ui/src/App.tsx`
- [Web API](https://github.com/rohithprem18/skypass/blob/main/webapp/server.py): `webapp/server.py`
- [API entry](https://github.com/rohithprem18/skypass/blob/main/api/index.py): `api/index.py`
- [Observing context](https://github.com/rohithprem18/skypass/blob/main/webapp/context.py): `webapp/context.py`

### Learning and research

- [Sky-image nowcast](https://github.com/rohithprem18/skypass/blob/main/skypass/ml/cloudcam.py): `skypass/ml/cloudcam.py`
- [Brightness model](https://github.com/rohithprem18/skypass/blob/main/skypass/ml/brightness.py): `skypass/ml/brightness.py`
- [Research results](https://github.com/rohithprem18/skypass/blob/main/webapp/ui/src/lib/research.ts): `webapp/ui/src/lib/research.ts`

### Other components

- **Observer**
- **Open-Meteo**
- **CelesTrak**
- **Sky-camera image**

## Connections

- Observer → CLI: runs planning (evidence: `README.md`)
- Observer → Web console: uses console (evidence: `README.md`)
- CLI → Planning pipeline: invokes plan
- Web console → Web API: requests plans
- API entry → Planning pipeline: builds plans
- Planning pipeline → Site and planner config: uses settings (evidence: `skypass/pipeline.py`)
- Planning pipeline → Element archive: loads elements (evidence: `skypass/pipeline.py`)
- Planning pipeline → Pass extraction: extracts passes (evidence: `skypass/pipeline.py`)
- Planning pipeline → Forecast calibration: gets forecasts (evidence: `skypass/pipeline.py`)
- Planning pipeline → Visibility scoring: scores visibility (evidence: `skypass/pipeline.py`)
- Planning pipeline → Conflict scheduling: selects schedule (evidence: `skypass/pipeline.py`)
- Pass extraction → Orbital geometry: uses geometry (evidence: `skypass/passes.py`)
- Element provider → CelesTrak: fetches elements (evidence: `README.md`)
- Forecast calibration → Open-Meteo: fetches forecasts (evidence: `README.md`)
- Planning pipeline → Plan exports: exports timetable (evidence: `README.md`)
- Observing context → Planning pipeline: adds observation context (evidence: `webapp/context.py`)
- Sky-image nowcast → Sky-camera image: reads image (evidence: `README.md`)
- Planning pipeline → Sky-image nowcast: uses optional nowcast (evidence: `README.md`)
- Planning pipeline → Brightness model: uses optional model (evidence: `README.md`)
- Web console → Research results: shows findings
