# greentigerbh/nasa-hackathon-2.0 architecture

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

- Interactive diagram: https://gitdiagram.com/greentigerbh/nasa-hackathon-2.0
- Repository: https://github.com/greentigerbh/nasa-hackathon-2.0

## Overview

This is a browser-based planetary-analog intelligence dashboard: users explore Earth, Mars, and lunar analog sites, compare their scientific characteristics, and inspect computed analog rankings and supporting knowledge. The sampled controller also exposes exploration scoring, sensitivity analysis, profiles, and dossier/graph exports. The README provides no feature documentation; these capabilities are evidenced by sampled source excerpts. Some controller wiring and graph relationships are only partially shown, so the graph omits uncertain links.

Main entry points: [`app.js`](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js) (Application controller), [`graph.js`](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/graph.js) (Knowledge graph builder), [`data.js`](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/data.js) (Scientific catalog), [`engine.js`](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/engine.js) (Similarity engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Dashboard"]
  node_controller["Application controller<br/>[app.js]"]
  node_site_search["Site search<br/>[app.js]"]
  node_site_profile["Site profile<br/>[app.js]"]
  node_comparison_ui["Comparison workflow<br/>[app.js]"]
  node_dossier_export["Dossier export<br/>[app.js]"]
  node_graph_export["Graph export<br/>[app.js]"]
end

subgraph group_science["Scientific Analysis"]
  node_catalog[("Scientific catalog<br/>[data.js]")]
  node_comparison_engine["Similarity engine<br/>[engine.js]"]
  node_opportunity_scoring["Opportunity scoring<br/>[engine.js]"]
  node_sensitivity_analysis["Sensitivity analysis<br/>[engine.js]"]
  node_site_fingerprint["Site fingerprint<br/>[engine.js]"]
end

subgraph group_knowledge["Knowledge Network"]
  node_knowledge_builder["Knowledge graph builder<br/>[graph.js]"]
  node_network_analysis["Network analysis<br/>[graph.js]"]
  node_network_rendering["Network rendering<br/>[graph.js]"]
end

subgraph group_visualization["Solar System View"]
  node_solar_view["Solar system visualization<br/>[planets.js]"]
end

node_user(("Dashboard user"))

node_user -->|"interacts with"| node_controller
node_controller -->|"initializes ranges"| node_comparison_engine
node_controller -->|"runs comparisons"| node_comparison_engine
node_controller -->|"scores opportunities"| node_opportunity_scoring
node_controller -->|"opens analysis"| node_sensitivity_analysis
node_controller -->|"builds dossier"| node_site_fingerprint
node_controller -->|"builds network"| node_knowledge_builder
node_controller -->|"renders network"| node_network_rendering
node_controller -->|"handles search"| node_site_search
node_controller -->|"opens profile"| node_site_profile
node_controller -->|"exports dossier"| node_dossier_export
node_controller -->|"exports graph"| node_graph_export
node_controller -.->|"initializes view"| node_solar_view
node_comparison_engine -->|"uses parameters"| node_catalog
node_opportunity_scoring -->|"scores regions"| node_catalog
node_site_fingerprint -->|"reads site data"| node_catalog
node_knowledge_builder -->|"builds from registries"| node_catalog
node_knowledge_builder -->|"ranks analogs"| node_comparison_engine
node_network_analysis -->|"analyzes graph"| node_knowledge_builder
node_network_rendering -->|"renders graph"| node_knowledge_builder
node_solar_view -->|"reads site registry"| node_catalog

click node_controller "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js"
click node_site_search "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js"
click node_site_profile "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js"
click node_comparison_ui "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js"
click node_dossier_export "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js"
click node_graph_export "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js"
click node_catalog "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/data.js"
click node_comparison_engine "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/engine.js"
click node_opportunity_scoring "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/engine.js"
click node_sensitivity_analysis "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/engine.js"
click node_site_fingerprint "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/engine.js"
click node_knowledge_builder "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/graph.js"
click node_network_analysis "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/graph.js"
click node_network_rendering "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/graph.js"
click node_solar_view "https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/planets.js"

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_controller,node_site_search,node_site_profile,node_comparison_ui,node_dossier_export,node_graph_export,node_user toneBlue
class node_catalog,node_comparison_engine,node_opportunity_scoring,node_sensitivity_analysis,node_site_fingerprint toneAmber
class node_knowledge_builder,node_network_analysis,node_network_rendering toneMint
class node_solar_view toneRose
```

## Components

### Dashboard

- [Application controller](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js): `app.js`
- [Site search](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js): `app.js`
- [Site profile](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js): `app.js`
- [Comparison workflow](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js): `app.js`
- [Dossier export](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js): `app.js`
- [Graph export](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/app.js): `app.js`

### Scientific Analysis

- [Scientific catalog](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/data.js): `data.js`
- [Similarity engine](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/engine.js): `engine.js`
- [Opportunity scoring](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/engine.js): `engine.js`
- [Sensitivity analysis](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/engine.js): `engine.js`
- [Site fingerprint](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/engine.js): `engine.js`

### Knowledge Network

- [Knowledge graph builder](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/graph.js): `graph.js`
- [Network analysis](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/graph.js): `graph.js`
- [Network rendering](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/graph.js): `graph.js`

### Solar System View

- [Solar system visualization](https://github.com/greentigerbh/nasa-hackathon-2.0/blob/main/planets.js): `planets.js`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Application controller: interacts with (evidence: `app.js`)
- Application controller → Similarity engine: initializes ranges (evidence: `app.js`)
- Application controller → Similarity engine: runs comparisons (evidence: `app.js`)
- Application controller → Opportunity scoring: scores opportunities (evidence: `app.js`)
- Application controller → Sensitivity analysis: opens analysis (evidence: `app.js`)
- Application controller → Site fingerprint: builds dossier (evidence: `app.js`)
- Application controller → Knowledge graph builder: builds network (evidence: `app.js`)
- Application controller → Network rendering: renders network (evidence: `app.js`)
- Application controller → Site search: handles search (evidence: `app.js`)
- Application controller → Site profile: opens profile (evidence: `app.js`)
- Application controller → Dossier export: exports dossier (evidence: `app.js`)
- Application controller → Graph export: exports graph (evidence: `app.js`)
- Application controller → Solar system visualization: initializes view (evidence: `planets.js`)
- Similarity engine → Scientific catalog: uses parameters (evidence: `engine.js`)
- Opportunity scoring → Scientific catalog: scores regions (evidence: `engine.js`)
- Site fingerprint → Scientific catalog: reads site data (evidence: `engine.js`)
- Knowledge graph builder → Scientific catalog: builds from registries (evidence: `graph.js`)
- Knowledge graph builder → Similarity engine: ranks analogs (evidence: `graph.js`)
- Network analysis → Knowledge graph builder: analyzes graph (evidence: `graph.js`)
- Network rendering → Knowledge graph builder: renders graph (evidence: `graph.js`)
- Solar system visualization → Scientific catalog: reads site registry (evidence: `planets.js`)
