# simonimonov-spec/astro-archive architecture

> Architecture diagram of the GitHub repository simonimonov-spec/astro-archive, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/simonimonov-spec/astro-archive
- Repository: https://github.com/simonimonov-spec/astro-archive

## Overview

Astro Archive is a Windows desktop application for managing local astronomy archives, viewing FITS images, analyzing frames, and preparing copies for external processing. The user configures archive folders in the browser-based local interface, indexes and browses files, opens images or runs analysis, then can export or track work in an external program. Optional plugins add capabilities; the README also documents in-app updates and a GitHub plugin catalog. The service-to-domain links are supported by the source index; UI transport details are not fully sampled, so those links are documented at the product level.

Main entry points: [`Bridge/Core/service.py`](https://github.com/simonimonov-spec/astro-archive/blob/main/Bridge/Core/service.py) (Command service), [`Backend/Analysis/quality.py`](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Analysis/quality.py) (Quality analysis), [`Backend/Archive/catalog.py`](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Archive/catalog.py) (Archive catalog), [`Backend/Fits/images.py`](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Fits/images.py) (FITS and images)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Desktop interface"]
  node_web_ui["Browser UI<br/>[app.js]"]
  node_analysis_ui["Analysis workbench<br/>[analysis.js]"]
  node_archive_ui["Archive navigation<br/>[navigation.js]"]
  node_prep_ui["Preparation UI<br/>[preparation.js]"]
  node_desktop_host["Desktop host<br/>[host.py]"]
  node_service["Command service<br/>[service.py]"]
end

subgraph group_archive["Archive and imaging"]
  node_catalog["Archive catalog<br/>[catalog.py]"]
  node_archive_structure["Archive structure<br/>[structure.py]"]
  node_fits["FITS and images<br/>[images.py]"]
  node_viewer["Image viewer<br/>[viewer.py]"]
end

subgraph group_analysis["Frame analysis"]
  node_quality["Quality analysis<br/>[quality.py]"]
  node_alignment["Frame alignment<br/>[alignment.py]"]
  node_psf["Star measurements<br/>[psf.py]"]
  node_timeseries["Time series<br/>[timeseries.py]"]
  node_coverage["Coverage products"]
end

subgraph group_preparation["Processing preparation"]
  node_workflow["Processing workflow<br/>[workflow.py]"]
  node_exchange["External exchange<br/>[exchange.py]"]
end

subgraph group_platform["Platform and extensions"]
  node_runtime[("Runtime and settings<br/>[runtime.py]")]
  node_plugin_manager["Plugin manager<br/>[manager.py]"]
  node_plugin_catalog["Plugin downloads<br/>[downloads.py]"]
  node_updates["App updates<br/>[updates.py]"]
end

node_user(("Astronomy user"))
node_github["GitHub"]
node_external_program["External program"]

node_user -->|"uses"| node_web_ui
node_web_ui -->|"opens locally"| node_desktop_host
node_web_ui -.->|"sends commands"| node_service
node_analysis_ui -.->|"requests analysis"| node_service
node_archive_ui -.->|"requests archive actions"| node_service
node_prep_ui -.->|"requests preparation"| node_service
node_desktop_host -->|"hosts"| node_service
node_service -->|"routes archive actions"| node_catalog
node_service -->|"routes analysis"| node_quality
node_service -->|"routes analysis"| node_timeseries
node_service -->|"routes viewer actions"| node_viewer
node_service -->|"routes preparation"| node_workflow
node_service -->|"routes exchange"| node_exchange
node_service -->|"dispatches plugin calls"| node_plugin_manager
node_catalog -->|"reads metadata"| node_fits
node_catalog -->|"uses layouts"| node_archive_structure
node_quality -->|"reads pixels"| node_fits
node_quality -->|"computes registration"| node_alignment
node_quality -->|"measures stars"| node_psf
node_quality -->|"builds coverage"| node_coverage
node_viewer -->|"loads images"| node_fits
node_workflow -->|"reads source files"| node_fits
node_workflow -->|"launches work"| node_external_program
node_exchange -.->|"returns results"| node_catalog
node_plugin_manager -.->|"offers catalog"| node_github
node_user -->|"chooses update"| node_updates
node_updates -.->|"downloads release"| node_github
node_service -->|"uses persistence and jobs"| node_runtime
node_catalog -->|"stores index"| node_runtime

click node_web_ui "https://github.com/simonimonov-spec/astro-archive/blob/main/UI/Shared/Web/app.js"
click node_analysis_ui "https://github.com/simonimonov-spec/astro-archive/blob/main/UI/Analysis/Web/analysis.js"
click node_archive_ui "https://github.com/simonimonov-spec/astro-archive/blob/main/UI/Archive/Web/navigation.js"
click node_prep_ui "https://github.com/simonimonov-spec/astro-archive/blob/main/UI/Processing/Web/preparation.js"
click node_desktop_host "https://github.com/simonimonov-spec/astro-archive/blob/main/Bridge/Desktop/host.py"
click node_service "https://github.com/simonimonov-spec/astro-archive/blob/main/Bridge/Core/service.py"
click node_catalog "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Archive/catalog.py"
click node_archive_structure "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Archive/structure.py"
click node_fits "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Fits/images.py"
click node_viewer "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Imaging/viewer.py"
click node_quality "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Analysis/quality.py"
click node_alignment "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Analysis/alignment.py"
click node_psf "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Analysis/psf.py"
click node_timeseries "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Analysis/timeseries.py"
click node_coverage "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Analysis/coverage_products.py"
click node_workflow "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Preparation/workflow.py"
click node_exchange "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Preparation/exchange.py"
click node_runtime "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Foundation/runtime.py"
click node_plugin_manager "https://github.com/simonimonov-spec/astro-archive/blob/main/Bridge/Plugins/manager.py"
click node_plugin_catalog "https://github.com/simonimonov-spec/astro-archive/blob/main/Bridge/Plugins/downloads.py"
click node_updates "https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Foundation/updates.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_web_ui,node_analysis_ui,node_archive_ui,node_prep_ui,node_desktop_host,node_service,node_user toneBlue
class node_catalog,node_archive_structure,node_fits,node_viewer toneAmber
class node_quality,node_alignment,node_psf,node_timeseries,node_coverage toneMint
class node_workflow,node_exchange toneRose
class node_runtime,node_plugin_manager,node_plugin_catalog,node_updates,node_github,node_external_program toneIndigo
```

## Components

### Desktop interface

- [Browser UI](https://github.com/simonimonov-spec/astro-archive/blob/main/UI/Shared/Web/app.js): `UI/Shared/Web/app.js`
- [Analysis workbench](https://github.com/simonimonov-spec/astro-archive/blob/main/UI/Analysis/Web/analysis.js): `UI/Analysis/Web/analysis.js`
- [Archive navigation](https://github.com/simonimonov-spec/astro-archive/blob/main/UI/Archive/Web/navigation.js): `UI/Archive/Web/navigation.js`
- [Preparation UI](https://github.com/simonimonov-spec/astro-archive/blob/main/UI/Processing/Web/preparation.js): `UI/Processing/Web/preparation.js`
- [Desktop host](https://github.com/simonimonov-spec/astro-archive/blob/main/Bridge/Desktop/host.py): `Bridge/Desktop/host.py`
- [Command service](https://github.com/simonimonov-spec/astro-archive/blob/main/Bridge/Core/service.py): `Bridge/Core/service.py`

### Archive and imaging

- [Archive catalog](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Archive/catalog.py): `Backend/Archive/catalog.py`
- [Archive structure](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Archive/structure.py): `Backend/Archive/structure.py`
- [FITS and images](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Fits/images.py): `Backend/Fits/images.py`
- [Image viewer](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Imaging/viewer.py): `Backend/Imaging/viewer.py`

### Frame analysis

- [Quality analysis](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Analysis/quality.py): `Backend/Analysis/quality.py`
- [Frame alignment](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Analysis/alignment.py): `Backend/Analysis/alignment.py`
- [Star measurements](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Analysis/psf.py): `Backend/Analysis/psf.py`
- [Time series](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Analysis/timeseries.py): `Backend/Analysis/timeseries.py`
- [Coverage products](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Analysis/coverage_products.py): `Backend/Analysis/coverage_products.py`

### Processing preparation

- [Processing workflow](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Preparation/workflow.py): `Backend/Preparation/workflow.py`
- [External exchange](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Preparation/exchange.py): `Backend/Preparation/exchange.py`

### Platform and extensions

- [Runtime and settings](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Foundation/runtime.py): `Backend/Foundation/runtime.py`
- [Plugin manager](https://github.com/simonimonov-spec/astro-archive/blob/main/Bridge/Plugins/manager.py): `Bridge/Plugins/manager.py`
- [Plugin downloads](https://github.com/simonimonov-spec/astro-archive/blob/main/Bridge/Plugins/downloads.py): `Bridge/Plugins/downloads.py`
- [App updates](https://github.com/simonimonov-spec/astro-archive/blob/main/Backend/Foundation/updates.py): `Backend/Foundation/updates.py`

### Other components

- **Astronomy user**
- **GitHub**
- **External program**

## Connections

- Astronomy user → Browser UI: uses (evidence: `README.md`)
- Browser UI → Desktop host: opens locally (evidence: `README.md`)
- Browser UI → Command service: sends commands
- Analysis workbench → Command service: requests analysis
- Archive navigation → Command service: requests archive actions
- Preparation UI → Command service: requests preparation
- Desktop host → Command service: hosts (evidence: `Bridge/Desktop/host.py`)
- Command service → Archive catalog: routes archive actions (evidence: `Bridge/Core/service.py`)
- Command service → Quality analysis: routes analysis (evidence: `Bridge/Core/service.py`)
- Command service → Time series: routes analysis (evidence: `Bridge/Core/service.py`)
- Command service → Image viewer: routes viewer actions (evidence: `Bridge/Core/service.py`)
- Command service → Processing workflow: routes preparation (evidence: `Bridge/Core/service.py`)
- Command service → External exchange: routes exchange (evidence: `Bridge/Core/service.py`)
- Command service → Plugin manager: dispatches plugin calls (evidence: `Bridge/Core/service.py`)
- Archive catalog → FITS and images: reads metadata (evidence: `Backend/Archive/catalog.py`)
- Archive catalog → Archive structure: uses layouts (evidence: `Backend/Archive/catalog.py`)
- Quality analysis → FITS and images: reads pixels (evidence: `Backend/Analysis/quality.py`)
- Quality analysis → Frame alignment: computes registration (evidence: `Backend/Analysis/quality.py`)
- Quality analysis → Star measurements: measures stars (evidence: `Backend/Analysis/quality.py`)
- Quality analysis → Coverage products: builds coverage (evidence: `Backend/Analysis/quality.py`)
- Image viewer → FITS and images: loads images (evidence: `Backend/Imaging/viewer.py`)
- Processing workflow → FITS and images: reads source files (evidence: `Backend/Preparation/workflow.py`)
- Processing workflow → External program: launches work (evidence: `README.md`)
- External exchange → Archive catalog: returns results
- Plugin manager → GitHub: offers catalog (evidence: `README.md`)
- Astronomy user → App updates: chooses update (evidence: `README.md`)
- App updates → GitHub: downloads release (evidence: `README.md`)
- Command service → Runtime and settings: uses persistence and jobs (evidence: `Bridge/Core/service.py`)
- Archive catalog → Runtime and settings: stores index (evidence: `Backend/Archive/catalog.py`)
