# larytehp737/just-for-fun-nasa-space-app-chall architecture

> Architecture diagram of the GitHub repository larytehp737/just-for-fun-nasa-space-app-chall, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/larytehp737/just-for-fun-nasa-space-app-chall
- Repository: https://github.com/larytehp737/just-for-fun-nasa-space-app-chall

## Overview

Embiggen Your Eyes combines a React image-exploration interface with a FastAPI imaging backend: users upload imagery, receive Deep Zoom tiles, inspect it at multiple scales, and can request anomaly heatmaps. The repository also includes annotation storage and batch analysis. The README describes collaborative annotations and advanced detection capabilities; sampled code confirms basic annotation endpoints and detector behavior, but not real-time collaboration. Some frontend and py#3 modules are indexed but unsampled, so their internal links are not inferred.

Main entry points: [`embiggen-your-eyes/src/App.tsx`](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/App.tsx) (Web application), [`backend/app/main.py`](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/main.py) (REST endpoints), [`embiggen-your-eyes/src/api/index.ts`](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/api/index.ts) (API client), [`py#3/detection_anomalies.py`](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/py%233/detection_anomalies.py) (Advanced detection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Image exploration UI"]
  node_app["Web application<br/>[App.tsx]"]
  node_uploader["Image uploader<br/>[ImageUploader.tsx]"]
  node_viewer["Zoom viewer<br/>[ImageViewer.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_eye_controls["Eye controls<br/>[EyeControls.tsx]"]
  node_image_comparator["Image comparison"]
  node_style_selector["Style selection<br/>[StyleSelector.tsx]"]
end

subgraph group_api["Imaging API"]
  node_api_client["API client<br/>[index.ts]"]
  node_fastapi["REST endpoints<br/>[main.py]"]
  node_tile_generator["Deep Zoom tiles<br/>[pyramides.py]"]
  node_tile_server["Tile serving<br/>[serve_tiles.py]"]
end

subgraph group_analysis["Detection and batch analysis"]
  node_detector["Anomaly detector<br/>[detect.py]"]
  node_batch_runner["Batch analysis<br/>[orchestrator.py]"]
  node_advanced_detection["Advanced detection"]
  node_heatmap_generator["Heatmap generation"]
end

subgraph group_annotations["Annotation data"]
  node_annotation_api["Annotation endpoints<br/>[main.py]"]
  node_annotation_store[("JSON annotation store<br/>[store.py]")]
end

node_user(("Explorer"))
node_api_service(("API service"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_uploader
node_app -->|"renders"| node_viewer
node_app -->|"renders"| node_navbar
node_app -->|"calls"| node_api_client
node_app -.->|"uses"| node_eye_controls
node_app -.->|"uses"| node_image_comparator
node_app -.->|"uses"| node_style_selector
node_api_client -.->|"requests"| node_api_service
node_api_service -->|"serves"| node_fastapi
node_app -->|"passes tile URL"| node_viewer
node_fastapi -->|"calls"| node_tile_generator
node_fastapi -->|"calls"| node_detector
node_fastapi -->|"reads and writes"| node_annotation_store
node_batch_runner -->|"calls"| node_detector
node_app -.->|"offers detection"| node_advanced_detection
node_advanced_detection -.->|"supports heatmaps"| node_heatmap_generator
node_user -.->|"annotates"| node_annotation_api
node_fastapi -->|"routes annotations"| node_annotation_api
node_fastapi -.->|"serves tiles"| node_tile_server

click node_app "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/App.tsx"
click node_uploader "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/components/ImageUploader.tsx"
click node_viewer "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/components/ImageViewer.tsx"
click node_navbar "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/components/Navbar.tsx"
click node_eye_controls "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/components/EyeControls.tsx"
click node_image_comparator "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/components/ImageComparator.tsx"
click node_style_selector "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/components/StyleSelector.tsx"
click node_api_client "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/api/index.ts"
click node_fastapi "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/main.py"
click node_tile_generator "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/pyramides.py"
click node_detector "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/detect.py"
click node_batch_runner "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/orchestrator.py"
click node_advanced_detection "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/py%233/detection_anomalies.py"
click node_heatmap_generator "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/py%233/generate_heatmap.py"
click node_tile_server "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/py%233/serve_tiles.py"
click node_annotation_api "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/main.py"
click node_annotation_store "https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/store.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_uploader,node_viewer,node_navbar,node_eye_controls,node_image_comparator,node_style_selector toneBlue
class node_api_client,node_fastapi,node_tile_generator,node_tile_server toneAmber
class node_detector,node_batch_runner,node_advanced_detection,node_heatmap_generator,node_api_service toneMint
class node_annotation_api,node_annotation_store toneRose
class node_user toneIndigo
```

## Components

### Image exploration UI

- [Web application](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/App.tsx): `embiggen-your-eyes/src/App.tsx`
- [Image uploader](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/components/ImageUploader.tsx): `embiggen-your-eyes/src/components/ImageUploader.tsx`
- [Zoom viewer](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/components/ImageViewer.tsx): `embiggen-your-eyes/src/components/ImageViewer.tsx`
- [Navigation](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/components/Navbar.tsx): `embiggen-your-eyes/src/components/Navbar.tsx`
- [Eye controls](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/components/EyeControls.tsx): `embiggen-your-eyes/src/components/EyeControls.tsx`
- [Image comparison](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/components/ImageComparator.tsx): `embiggen-your-eyes/src/components/ImageComparator.tsx`
- [Style selection](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/components/StyleSelector.tsx): `embiggen-your-eyes/src/components/StyleSelector.tsx`

### Imaging API

- [API client](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/embiggen-your-eyes/src/api/index.ts): `embiggen-your-eyes/src/api/index.ts`
- [REST endpoints](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/main.py): `backend/app/main.py`
- [Deep Zoom tiles](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/pyramides.py): `backend/app/pyramides.py`
- [Tile serving](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/py%233/serve_tiles.py): `py#3/serve_tiles.py`

### Detection and batch analysis

- [Anomaly detector](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/detect.py): `backend/app/detect.py`
- [Batch analysis](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/orchestrator.py): `backend/app/orchestrator.py`
- [Advanced detection](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/py%233/detection_anomalies.py): `py#3/detection_anomalies.py`
- [Heatmap generation](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/py%233/generate_heatmap.py): `py#3/generate_heatmap.py`

### Annotation data

- [Annotation endpoints](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/main.py): `backend/app/main.py`
- [JSON annotation store](https://github.com/larytehp737/just-for-fun-nasa-space-app-chall/blob/main/backend/app/store.py): `backend/app/store.py`

### Other components

- **Explorer**
- **API service**

## Connections

- Explorer → Web application: uses
- Web application → Image uploader: renders (evidence: `embiggen-your-eyes/src/App.tsx`)
- Web application → Zoom viewer: renders (evidence: `embiggen-your-eyes/src/App.tsx`)
- Web application → Navigation: renders (evidence: `embiggen-your-eyes/src/App.tsx`)
- Web application → API client: calls (evidence: `embiggen-your-eyes/src/App.tsx`)
- Web application → Eye controls: uses
- Web application → Image comparison: uses
- Web application → Style selection: uses
- API client → API service: requests
- API service → REST endpoints: serves
- Web application → Zoom viewer: passes tile URL (evidence: `embiggen-your-eyes/src/App.tsx`)
- REST endpoints → Deep Zoom tiles: calls (evidence: `backend/app/main.py`)
- REST endpoints → Anomaly detector: calls (evidence: `backend/app/main.py`)
- REST endpoints → JSON annotation store: reads and writes (evidence: `backend/app/main.py`)
- Batch analysis → Anomaly detector: calls (evidence: `backend/app/orchestrator.py`)
- Web application → Advanced detection: offers detection
- Advanced detection → Heatmap generation: supports heatmaps (evidence: `py#3/generate_heatmap.py`)
- Explorer → Annotation endpoints: annotates
- REST endpoints → Annotation endpoints: routes annotations (evidence: `backend/app/main.py`)
- REST endpoints → Tile serving: serves tiles
