# sirisaritharani-droid/satellite-change-detection architecture

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

- Interactive diagram: https://gitdiagram.com/sirisaritharani-droid/satellite-change-detection
- Repository: https://github.com/sirisaritharani-droid/satellite-change-detection

## Overview

This is a satellite change-detection prototype with a React dashboard and a separate FastAPI computer-vision API. The dashboard workflow selects a region and time period, displays map and temporal views, and presents comparisons and insights; demo imagery and analysis data are generated in the frontend. The backend accepts paired base64 images, decodes them, and computes categorized change maps and area metrics. The excerpts do not establish a connection from the frontend to the API, so none is drawn; map tile providers are external integrations.

Main entry points: [`frontend/src/App.jsx`](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/App.jsx) (Dashboard App), [`frontend/src/main.jsx`](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/main.jsx) (React Entry), [`frontend/src/components/MapView.jsx`](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/MapView.jsx) (Map and Area), [`frontend/src/components/ResultsView.jsx`](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/ResultsView.jsx) (Image Comparison)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_entry["React Entry<br/>[main.jsx]"]
  node_app["Dashboard App<br/>[App.jsx]"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_map["Map and Area<br/>[MapView.jsx]"]
  node_timeline["Year Timeline<br/>[TimelineBar.jsx]"]
  node_about["About Modal<br/>[AboutModal.jsx]"]
  node_how["Workflow Guide<br/>[HowItWorks.jsx]"]
end

subgraph group_visualization["Change Views"]
  node_results["Image Comparison<br/>[ResultsView.jsx]"]
  node_slider["Split Slider<br/>[SplitSlider.jsx]"]
  node_chart["Historical Chart"]
  node_insights["Insights and Export<br/>[InsightPanel.jsx]"]
end

subgraph group_demo["Demo Analysis"]
  node_demo["Demo Imagery and Metrics<br/>[demoData.js]"]
end

subgraph group_backend["Analysis API"]
  node_api["Analysis API<br/>[main.py]"]
  node_cv["Image Change Engine<br/>[cv_engine.py]"]
end

node_user(("Analyst"))
node_tiles["Map Tile Providers"]

node_user -->|"opens dashboard"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_map
node_app -->|"renders"| node_timeline
node_app -->|"renders"| node_chart
node_app -->|"renders"| node_results
node_app -->|"renders"| node_insights
node_app -->|"renders"| node_how
node_app -->|"renders"| node_about
node_app -->|"calls"| node_demo
node_results -->|"renders"| node_slider
node_map -->|"requests tiles"| node_tiles
node_api -->|"decodes and analyzes"| node_cv

click node_entry "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/main.jsx"
click node_app "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/App.jsx"
click node_navbar "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/Navbar.jsx"
click node_map "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/MapView.jsx"
click node_timeline "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/TimelineBar.jsx"
click node_about "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/AboutModal.jsx"
click node_how "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/HowItWorks.jsx"
click node_results "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/ResultsView.jsx"
click node_slider "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/SplitSlider.jsx"
click node_chart "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/HistoricalChart.jsx"
click node_insights "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/InsightPanel.jsx"
click node_demo "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/utils/demoData.js"
click node_api "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/backend/main.py"
click node_cv "https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/backend/cv_engine.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_entry,node_app,node_navbar,node_map,node_timeline,node_about,node_how toneBlue
class node_results,node_slider,node_chart,node_insights toneAmber
class node_demo toneMint
class node_api,node_cv toneRose
class node_user,node_tiles toneIndigo
```

## Components

### Dashboard

- [React Entry](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- [Dashboard App](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Navigation](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/Navbar.jsx): `frontend/src/components/Navbar.jsx`
- [Map and Area](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/MapView.jsx): `frontend/src/components/MapView.jsx`
- [Year Timeline](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/TimelineBar.jsx): `frontend/src/components/TimelineBar.jsx`
- [About Modal](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/AboutModal.jsx): `frontend/src/components/AboutModal.jsx`
- [Workflow Guide](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/HowItWorks.jsx): `frontend/src/components/HowItWorks.jsx`

### Change Views

- [Image Comparison](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/ResultsView.jsx): `frontend/src/components/ResultsView.jsx`
- [Split Slider](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/SplitSlider.jsx): `frontend/src/components/SplitSlider.jsx`
- [Historical Chart](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/HistoricalChart.jsx): `frontend/src/components/HistoricalChart.jsx`
- [Insights and Export](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/components/InsightPanel.jsx): `frontend/src/components/InsightPanel.jsx`

### Demo Analysis

- [Demo Imagery and Metrics](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/frontend/src/utils/demoData.js): `frontend/src/utils/demoData.js`

### Analysis API

- [Analysis API](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/backend/main.py): `backend/main.py`
- [Image Change Engine](https://github.com/sirisaritharani-droid/satellite-change-detection/blob/main/backend/cv_engine.py): `backend/cv_engine.py`

### Other components

- **Analyst**
- **Map Tile Providers**

## Connections

- Analyst → React Entry: opens dashboard
- React Entry → Dashboard App: renders (evidence: `frontend/src/main.jsx`)
- Dashboard App → Navigation: renders (evidence: `frontend/src/App.jsx`)
- Dashboard App → Map and Area: renders (evidence: `frontend/src/App.jsx`)
- Dashboard App → Year Timeline: renders (evidence: `frontend/src/App.jsx`)
- Dashboard App → Historical Chart: renders (evidence: `frontend/src/App.jsx`)
- Dashboard App → Image Comparison: renders (evidence: `frontend/src/App.jsx`)
- Dashboard App → Insights and Export: renders (evidence: `frontend/src/App.jsx`)
- Dashboard App → Workflow Guide: renders (evidence: `frontend/src/App.jsx`)
- Dashboard App → About Modal: renders (evidence: `frontend/src/App.jsx`)
- Dashboard App → Demo Imagery and Metrics: calls (evidence: `frontend/src/App.jsx`)
- Image Comparison → Split Slider: renders (evidence: `frontend/src/components/ResultsView.jsx`)
- Map and Area → Map Tile Providers: requests tiles (evidence: `frontend/src/components/MapView.jsx`)
- Analysis API → Image Change Engine: decodes and analyzes (evidence: `backend/main.py`)
