# youssof33/nasa-space-apps-no-risk-no-fun architecture

> Architecture diagram of the GitHub repository youssof33/nasa-space-apps-no-risk-no-fun, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/youssof33/nasa-space-apps-no-risk-no-fun
- Repository: https://github.com/youssof33/nasa-space-apps-no-risk-no-fun

## Overview

SpaceX is a browser-based space-mission design game. Players select a mission, review its brief, configure a spacecraft, then fly the designed mission and receive a report. The graph also preserves the documented 3D scene, deterministic evaluation, and optional party-room capabilities. Edges use the supplied excerpts, source-index references, or README statements; several implementation details are unsampled, so uncertain connections are omitted.

Main entry points: [`source/src/app/App.tsx`](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/App.tsx) (App router), [`source/src/app/screens/DesignScreen.tsx`](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/screens/DesignScreen.tsx) (Design bench), [`source/src/app/screens/LaunchScreen.tsx`](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/screens/LaunchScreen.tsx) (Flight and report), [`source/src/app/screens/BriefScreen.tsx`](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/screens/BriefScreen.tsx) (Mission brief)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Mission experience"]
  node_app["App router<br/>[App.tsx]"]
  node_selection["Mission select"]
  node_brief["Mission brief<br/>[BriefScreen.tsx]"]
end

subgraph group_design["Design and evaluation"]
  node_catalogs[("Mission catalogs<br/>[catalogs.ts]")]
  node_designscreen["Design bench<br/>[DesignScreen.tsx]"]
  node_designintegration["Design integration<br/>[design.ts]"]
  node_parts[("Design parts data<br/>[data.ts]")]
  node_engine["Mission evaluator<br/>[evaluation.ts]"]
  node_physics["Mission physics<br/>[physics.ts]"]
  node_missions["Mission rules<br/>[missions.ts]"]
end

subgraph group_flight["Flight and visualization"]
  node_launch["Flight and report<br/>[LaunchScreen.tsx]"]
  node_flightintegration["Flight integration<br/>[flight.ts]"]
  node_eclipse["Eclipse model<br/>[eclipse.ts]"]
  node_stage["Stage integration<br/>[stage.ts]"]
  node_designstage["3D design stage<br/>[DesignStage.ts]"]
  node_spacecraft["Spacecraft model<br/>[Spacecraft.ts]"]
  node_scene["Shell 3D scenes<br/>[SceneManager.ts]"]
  node_assets["Scene assets<br/>[assets.ts]"]
end

subgraph group_social["Party mode"]
  node_party["Party lobby<br/>[party.ts]"]
  node_partymodal["Party interface<br/>[PartyModal.tsx]"]
  node_worker["Party room service<br/>[index.ts]"]
end

node_player(("Player"))
node_partyuser(("Party participants"))

node_player -->|"uses"| node_app
node_app -->|"routes to"| node_selection
node_app -->|"routes to"| node_brief
node_app -->|"routes to"| node_designscreen
node_app -->|"routes to"| node_launch
node_selection -->|"selects mission"| node_brief
node_brief -->|"continues to"| node_designscreen
node_brief -->|"reads mission"| node_missions
node_designscreen -->|"updates design"| node_designintegration
node_designscreen -->|"previews design"| node_engine
node_designscreen -->|"renders bench"| node_designstage
node_designscreen -->|"shows spacecraft"| node_spacecraft
node_designintegration -->|"uses parts"| node_parts
node_engine -->|"calculates with"| node_physics
node_engine -->|"evaluates against"| node_catalogs
node_launch -.->|"runs flight"| node_flightintegration
node_launch -.->|"models eclipse"| node_eclipse
node_launch -.->|"uses stages"| node_stage
node_launch -->|"flies designed craft"| node_spacecraft
node_selection -.->|"shows 3D scene"| node_scene
node_scene -->|"loads textures"| node_assets
node_partyuser -->|"opens lobby"| node_partymodal
node_app -->|"shows modal"| node_partymodal
node_partymodal -->|"uses lobby logic"| node_party
node_party -->|"calls party API"| node_worker

click node_app "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/App.tsx"
click node_selection "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/screens/ScenarioSelectScreen.tsx"
click node_brief "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/screens/BriefScreen.tsx"
click node_catalogs "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/data/catalogs.ts"
click node_designscreen "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/screens/DesignScreen.tsx"
click node_designintegration "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/integration/design.ts"
click node_parts "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/integration/hussein/data.ts"
click node_engine "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/engine/evaluation.ts"
click node_physics "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/engine/physics.ts"
click node_missions "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/integration/missions.ts"
click node_launch "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/screens/LaunchScreen.tsx"
click node_flightintegration "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/integration/flight.ts"
click node_eclipse "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/integration/eclipse.ts"
click node_stage "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/integration/stage.ts"
click node_designstage "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/viz/DesignStage.ts"
click node_spacecraft "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/viz/spacecraft/Spacecraft.ts"
click node_scene "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/viz/SceneManager.ts"
click node_assets "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/viz/assets.ts"
click node_party "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/multiplayer/party.ts"
click node_partymodal "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/multiplayer/PartyModal.tsx"
click node_worker "https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/worker/index.ts"

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_selection,node_brief toneBlue
class node_catalogs,node_designscreen,node_designintegration,node_parts,node_engine,node_physics,node_missions toneAmber
class node_launch,node_flightintegration,node_eclipse,node_stage,node_designstage,node_spacecraft,node_scene,node_assets toneMint
class node_party,node_partymodal,node_worker toneRose
class node_player,node_partyuser toneIndigo
```

## Components

### Mission experience

- [App router](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/App.tsx): `source/src/app/App.tsx`
- [Mission select](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/screens/ScenarioSelectScreen.tsx): `source/src/app/screens/ScenarioSelectScreen.tsx`
- [Mission brief](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/screens/BriefScreen.tsx): `source/src/app/screens/BriefScreen.tsx`

### Design and evaluation

- [Mission catalogs](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/data/catalogs.ts): `source/src/data/catalogs.ts`
- [Design bench](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/screens/DesignScreen.tsx): `source/src/app/screens/DesignScreen.tsx`
- [Design integration](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/integration/design.ts): `source/src/integration/design.ts`
- [Design parts data](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/integration/hussein/data.ts): `source/src/integration/hussein/data.ts`
- [Mission evaluator](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/engine/evaluation.ts): `source/src/engine/evaluation.ts`
- [Mission physics](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/engine/physics.ts): `source/src/engine/physics.ts`
- [Mission rules](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/integration/missions.ts): `source/src/integration/missions.ts`

### Flight and visualization

- [Flight and report](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/app/screens/LaunchScreen.tsx): `source/src/app/screens/LaunchScreen.tsx`
- [Flight integration](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/integration/flight.ts): `source/src/integration/flight.ts`
- [Eclipse model](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/integration/eclipse.ts): `source/src/integration/eclipse.ts`
- [Stage integration](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/integration/stage.ts): `source/src/integration/stage.ts`
- [3D design stage](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/viz/DesignStage.ts): `source/src/viz/DesignStage.ts`
- [Spacecraft model](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/viz/spacecraft/Spacecraft.ts): `source/src/viz/spacecraft/Spacecraft.ts`
- [Shell 3D scenes](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/viz/SceneManager.ts): `source/src/viz/SceneManager.ts`
- [Scene assets](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/viz/assets.ts): `source/src/viz/assets.ts`

### Party mode

- [Party lobby](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/multiplayer/party.ts): `source/src/multiplayer/party.ts`
- [Party interface](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/src/multiplayer/PartyModal.tsx): `source/src/multiplayer/PartyModal.tsx`
- [Party room service](https://github.com/youssof33/nasa-space-apps-no-risk-no-fun/blob/main/source/worker/index.ts): `source/worker/index.ts`

### Other components

- **Player**
- **Party participants**

## Connections

- Player → App router: uses (evidence: `README.md`)
- App router → Mission select: routes to (evidence: `source/src/app/App.tsx`)
- App router → Mission brief: routes to (evidence: `source/src/app/App.tsx`)
- App router → Design bench: routes to (evidence: `source/src/app/App.tsx`)
- App router → Flight and report: routes to (evidence: `source/src/app/App.tsx`)
- Mission select → Mission brief: selects mission (evidence: `README.md`)
- Mission brief → Design bench: continues to (evidence: `README.md`)
- Mission brief → Mission rules: reads mission (evidence: `source/src/app/screens/BriefScreen.tsx`)
- Design bench → Design integration: updates design (evidence: `source/src/app/screens/DesignScreen.tsx`)
- Design bench → Mission evaluator: previews design (evidence: `README.md`)
- Design bench → 3D design stage: renders bench (evidence: `source/src/app/screens/DesignScreen.tsx`)
- Design bench → Spacecraft model: shows spacecraft (evidence: `source/src/app/screens/DesignScreen.tsx`)
- Design integration → Design parts data: uses parts (evidence: `source/src/app/screens/DesignScreen.tsx`)
- Mission evaluator → Mission physics: calculates with (evidence: `source/src/engine/evaluation.ts`)
- Mission evaluator → Mission catalogs: evaluates against (evidence: `source/src/engine/evaluation.ts`)
- Flight and report → Flight integration: runs flight
- Flight and report → Eclipse model: models eclipse
- Flight and report → Stage integration: uses stages
- Flight and report → Spacecraft model: flies designed craft (evidence: `README.md`)
- Mission select → Shell 3D scenes: shows 3D scene
- Shell 3D scenes → Scene assets: loads textures (evidence: `source/src/viz/SceneManager.ts`)
- Party participants → Party interface: opens lobby (evidence: `README.md`)
- App router → Party interface: shows modal (evidence: `source/src/app/App.tsx`)
- Party interface → Party lobby: uses lobby logic
- Party lobby → Party room service: calls party API (evidence: `README.md`)
