# mnichols08/constellation architecture

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

- Interactive diagram: https://gitdiagram.com/mnichols08/constellation
- Repository: https://github.com/mnichols08/constellation

## Overview

Constellation turns GitHub repository data into customizable maps and shareable graphics. The principal Studio flow is username or example input, GitHub-backed repository loading, scene creation and layout, then SVG rendering and export; users can inspect evidence and tune designs along the way. The repository also documents organization maps, temporal comparisons, history/activity, README showcase, CLI and interactive exports. The graph reflects the sampled Studio wiring and documented capabilities; several specialized feature internals are unsampled, so their detailed connections are intentionally omitted.

Main entry points: [`src/app/engine.mjs`](https://github.com/mnichols08/constellation/blob/main/src/app/engine.mjs) (Studio engine bridge), [`src/constellation.mjs`](https://github.com/mnichols08/constellation/blob/main/src/constellation.mjs) (Scene creation), [`src/app/main.mjs`](https://github.com/mnichols08/constellation/blob/main/src/app/main.mjs) (Studio composition), [`src/pipeline-cache.mjs`](https://github.com/mnichols08/constellation/blob/main/src/pipeline-cache.mjs) (Pipeline cache)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_studio["Studio experience"]
  node_studio_app["Studio composition<br/>[main.mjs]"]
  node_studio_views["Studio views"]
  node_studio_engine["Studio engine bridge<br/>[engine.mjs]"]
end

subgraph group_data["Data and domain"]
  node_github_access["GitHub access<br/>[github-access.mjs]"]
  node_github_session["GitHub session<br/>[github-session.mjs]"]
  node_organization_data["Organization data<br/>[data.mjs]"]
  node_data_pipeline["Data pipeline<br/>[data-pipeline.mjs]"]
  node_data_transforms["Data transforms"]
  node_pipeline_cache["Pipeline cache<br/>[pipeline-cache.mjs]"]
end

subgraph group_visual["Mapping and rendering"]
  node_constellation["Scene creation<br/>[constellation.mjs]"]
  node_layout["Graph layout engine<br/>[engine.mjs]"]
  node_wasm["Rust WASM core"]
  node_renderer["SVG renderer<br/>[renderer-svg.mjs]"]
  node_themes["Themes and styling<br/>[themes.mjs]"]
end

subgraph group_features["Exploration features"]
  node_evidence["Evidence explanations<br/>[evidence.mjs]"]
  node_activity["Activity and rhythm<br/>[activity.mjs]"]
  node_history["History and time-lapse"]
  node_temporal["Universe comparisons<br/>[temporal-stack.mjs]"]
  node_org_maps["Organization maps<br/>[graph.mjs]"]
end

subgraph group_delivery["Export and access"]
  node_cli["Command line<br/>[cli.mjs]"]
  node_exports["Image and interactive exports<br/>[export-image.mjs]"]
  node_web_component["Web component<br/>[index.mjs]"]
  node_github_exchange["OAuth exchange"]
end

node_visitor(("Visitor"))
node_github{{"GitHub API"}}

node_visitor -->|"opens Studio"| node_studio_app
node_studio_app -->|"mounts views"| node_studio_views
node_studio_app -->|"dispatches actions"| node_studio_engine
node_studio_engine -->|"creates session"| node_github_session
node_studio_engine -->|"parses account"| node_constellation
node_studio_engine -->|"renders SVG"| node_renderer
node_studio_engine -->|"explains node"| node_evidence
node_studio_engine -->|"creates pipeline"| node_pipeline_cache
node_github_access -.->|"requests metadata"| node_github
node_organization_data -->|"requests organization data"| node_github
node_pipeline_cache -->|"normalizes records"| node_data_pipeline
node_pipeline_cache -->|"applies transforms"| node_data_transforms
node_constellation -->|"lays out scene"| node_layout
node_layout -->|"computes layout"| node_wasm
node_constellation -->|"renders scene"| node_renderer
node_constellation -->|"resolves theme"| node_themes
node_visitor -->|"runs CLI"| node_cli
node_visitor -->|"explores organizations"| node_org_maps
node_visitor -->|"explores history"| node_history
node_visitor -->|"compares projects"| node_temporal
node_visitor -->|"requests export"| node_exports
node_visitor -->|"uses interactive export"| node_web_component
node_visitor -.->|"signs in"| node_github_exchange

click node_studio_app "https://github.com/mnichols08/constellation/blob/main/src/app/main.mjs"
click node_studio_views "https://github.com/mnichols08/constellation/tree/main/src/app/views"
click node_studio_engine "https://github.com/mnichols08/constellation/blob/main/src/app/engine.mjs"
click node_github_access "https://github.com/mnichols08/constellation/blob/main/src/github-access.mjs"
click node_github_session "https://github.com/mnichols08/constellation/blob/main/src/github-session.mjs"
click node_organization_data "https://github.com/mnichols08/constellation/blob/main/src/organization/data.mjs"
click node_data_pipeline "https://github.com/mnichols08/constellation/blob/main/src/data-pipeline.mjs"
click node_data_transforms "https://github.com/mnichols08/constellation/blob/main/src/data-transforms.mjs"
click node_pipeline_cache "https://github.com/mnichols08/constellation/blob/main/src/pipeline-cache.mjs"
click node_constellation "https://github.com/mnichols08/constellation/blob/main/src/constellation.mjs"
click node_layout "https://github.com/mnichols08/constellation/blob/main/src/engine.mjs"
click node_wasm "https://github.com/mnichols08/constellation/blob/main/src/wasm/constellation_core.js"
click node_renderer "https://github.com/mnichols08/constellation/blob/main/src/renderer-svg.mjs"
click node_themes "https://github.com/mnichols08/constellation/blob/main/src/themes.mjs"
click node_evidence "https://github.com/mnichols08/constellation/blob/main/src/evidence.mjs"
click node_activity "https://github.com/mnichols08/constellation/blob/main/src/activity.mjs"
click node_history "https://github.com/mnichols08/constellation/blob/main/src/history/historical-snapshot.mjs"
click node_temporal "https://github.com/mnichols08/constellation/blob/main/src/temporal-stack.mjs"
click node_org_maps "https://github.com/mnichols08/constellation/blob/main/src/organization/graph.mjs"
click node_cli "https://github.com/mnichols08/constellation/blob/main/src/cli.mjs"
click node_exports "https://github.com/mnichols08/constellation/blob/main/src/export-image.mjs"
click node_web_component "https://github.com/mnichols08/constellation/blob/main/packages/web-component/index.mjs"
click node_github_exchange "https://github.com/mnichols08/constellation/blob/main/auth/github-exchange.mjs"

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_studio_app,node_studio_views,node_studio_engine toneBlue
class node_github_access,node_github_session,node_organization_data,node_data_pipeline,node_data_transforms,node_pipeline_cache toneAmber
class node_constellation,node_layout,node_wasm,node_renderer,node_themes,node_github toneMint
class node_evidence,node_activity,node_history,node_temporal,node_org_maps toneRose
class node_cli,node_exports,node_web_component,node_github_exchange,node_visitor toneIndigo
```

## Components

### Studio experience

- [Studio composition](https://github.com/mnichols08/constellation/blob/main/src/app/main.mjs): `src/app/main.mjs`
- [Studio views](https://github.com/mnichols08/constellation/tree/main/src/app/views): `src/app/views`
- [Studio engine bridge](https://github.com/mnichols08/constellation/blob/main/src/app/engine.mjs): `src/app/engine.mjs`

### Data and domain

- [GitHub access](https://github.com/mnichols08/constellation/blob/main/src/github-access.mjs): `src/github-access.mjs`
- [GitHub session](https://github.com/mnichols08/constellation/blob/main/src/github-session.mjs): `src/github-session.mjs`
- [Organization data](https://github.com/mnichols08/constellation/blob/main/src/organization/data.mjs): `src/organization/data.mjs`
- [Data pipeline](https://github.com/mnichols08/constellation/blob/main/src/data-pipeline.mjs): `src/data-pipeline.mjs`
- [Data transforms](https://github.com/mnichols08/constellation/blob/main/src/data-transforms.mjs): `src/data-transforms.mjs`
- [Pipeline cache](https://github.com/mnichols08/constellation/blob/main/src/pipeline-cache.mjs): `src/pipeline-cache.mjs`

### Mapping and rendering

- [Scene creation](https://github.com/mnichols08/constellation/blob/main/src/constellation.mjs): `src/constellation.mjs`
- [Graph layout engine](https://github.com/mnichols08/constellation/blob/main/src/engine.mjs): `src/engine.mjs`
- [Rust WASM core](https://github.com/mnichols08/constellation/blob/main/src/wasm/constellation_core.js): `src/wasm/constellation_core.js`
- [SVG renderer](https://github.com/mnichols08/constellation/blob/main/src/renderer-svg.mjs): `src/renderer-svg.mjs`
- [Themes and styling](https://github.com/mnichols08/constellation/blob/main/src/themes.mjs): `src/themes.mjs`

### Exploration features

- [Evidence explanations](https://github.com/mnichols08/constellation/blob/main/src/evidence.mjs): `src/evidence.mjs`
- [Activity and rhythm](https://github.com/mnichols08/constellation/blob/main/src/activity.mjs): `src/activity.mjs`
- [History and time-lapse](https://github.com/mnichols08/constellation/blob/main/src/history/historical-snapshot.mjs): `src/history/historical-snapshot.mjs`
- [Universe comparisons](https://github.com/mnichols08/constellation/blob/main/src/temporal-stack.mjs): `src/temporal-stack.mjs`
- [Organization maps](https://github.com/mnichols08/constellation/blob/main/src/organization/graph.mjs): `src/organization/graph.mjs`

### Export and access

- [Command line](https://github.com/mnichols08/constellation/blob/main/src/cli.mjs): `src/cli.mjs`
- [Image and interactive exports](https://github.com/mnichols08/constellation/blob/main/src/export-image.mjs): `src/export-image.mjs`
- [Web component](https://github.com/mnichols08/constellation/blob/main/packages/web-component/index.mjs): `packages/web-component/index.mjs`
- [OAuth exchange](https://github.com/mnichols08/constellation/blob/main/auth/github-exchange.mjs): `auth/github-exchange.mjs`

### Other components

- **Visitor**
- **GitHub API**

## Connections

- Visitor → Studio composition: opens Studio (evidence: `README.md`)
- Studio composition → Studio views: mounts views (evidence: `src/app/main.mjs`)
- Studio composition → Studio engine bridge: dispatches actions (evidence: `src/app/main.mjs`)
- Studio engine bridge → GitHub session: creates session (evidence: `src/app/engine.mjs`)
- Studio engine bridge → Scene creation: parses account (evidence: `src/app/engine.mjs`)
- Studio engine bridge → SVG renderer: renders SVG (evidence: `src/app/engine.mjs`)
- Studio engine bridge → Evidence explanations: explains node (evidence: `src/app/engine.mjs`)
- Studio engine bridge → Pipeline cache: creates pipeline (evidence: `src/app/engine.mjs`)
- GitHub access → GitHub API: requests metadata
- Organization data → GitHub API: requests organization data (evidence: `src/organization/data.mjs`)
- Pipeline cache → Data pipeline: normalizes records (evidence: `src/pipeline-cache.mjs`)
- Pipeline cache → Data transforms: applies transforms (evidence: `src/pipeline-cache.mjs`)
- Scene creation → Graph layout engine: lays out scene (evidence: `src/constellation.mjs`)
- Graph layout engine → Rust WASM core: computes layout (evidence: `src/engine.mjs`)
- Scene creation → SVG renderer: renders scene (evidence: `src/constellation.mjs`)
- Scene creation → Themes and styling: resolves theme (evidence: `src/constellation.mjs`)
- Visitor → Command line: runs CLI (evidence: `README.md`)
- Visitor → Organization maps: explores organizations (evidence: `README.md`)
- Visitor → History and time-lapse: explores history (evidence: `README.md`)
- Visitor → Universe comparisons: compares projects (evidence: `README.md`)
- Visitor → Image and interactive exports: requests export (evidence: `README.md`)
- Visitor → Web component: uses interactive export (evidence: `README.md`)
- Visitor → OAuth exchange: signs in (evidence: `README.md`)
