# nitheesh2315/my-room-3d architecture

> Architecture diagram of the GitHub repository nitheesh2315/my-room-3d, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nitheesh2315/my-room-3d
- Repository: https://github.com/nitheesh2315/my-room-3d

## Overview

This is a Three.js portfolio presented as an interactive 3D room. A visitor enters through the page bootstrap, explores the room and its hotspots, and opens portfolio panels; the UI also provides music playback and audio-reactive room visuals. The main internal layers are the Experience runtime, resource loading, room objects, and portfolio UI. Evidence is limited to the README and the provided excerpts and SOURCE INDEX; unsampled capabilities are included where the tree supports them, without guessing their internal calls.

Main entry points: [`src/Experience/World.js`](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/World.js) (Room Assembly), [`src/Experience/Experience.js`](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Experience.js) (Experience Runtime), [`src/ui/Ui.js`](https://github.com/nitheesh2315/my-room-3d/blob/main/src/ui/Ui.js) (Portfolio UI), [`src/script.js`](https://github.com/nitheesh2315/my-room-3d/blob/main/src/script.js) (Page Bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Portfolio UI"]
  node_bootstrap["Page Bootstrap<br/>[script.js]"]
  node_ui["Portfolio UI<br/>[Ui.js]"]
  node_config["Portfolio Content<br/>[config.js]"]
  node_interaction["Room Interaction<br/>[Interaction.js]"]
end

subgraph group_runtime["3D Runtime"]
  node_experience["Experience Runtime<br/>[Experience.js]"]
  node_navigation["Camera Navigation<br/>[Navigation.js]"]
  node_camera["Camera<br/>[Camera.js]"]
  node_renderer["Renderer<br/>[Renderer.js]"]
  node_resources["Resource Manager<br/>[Resources.js]"]
  node_loader["Asset Loader<br/>[Loader.js]"]
  node_assets["Asset Manifest<br/>[assets.js]"]
end

subgraph group_room["Room Features"]
  node_world["Room Assembly<br/>[World.js]"]
  node_baked["Baked Room<br/>[Baked.js]"]
  node_steam["Coffee Steam<br/>[CoffeeSteam.js]"]
  node_leds["Google LEDs<br/>[GoogleLeds.js]"]
  node_deck["Loupedeck Buttons"]
  node_hotspots["Portfolio Hotspots<br/>[Hotspots.js]"]
  node_screens["Room Screens<br/>[Screen.js]"]
  node_tv["TV Video<br/>[TvVideo.js]"]
  node_chair["Top Chair<br/>[TopChair.js]"]
  node_light["Elgato Light<br/>[ElgatoLight.js]"]
end

subgraph group_audio["Music Experience"]
  node_speakers["Speakers<br/>[Speakers.js]"]
  node_music["Music Controls<br/>[MusicAnalyser.js]"]
  node_visual["Now Playing Visual<br/>[MusicVisual.js]"]
  node_audio_state["Audio State<br/>[audioState.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_bootstrap
node_bootstrap -->|"starts"| node_experience
node_bootstrap -->|"creates"| node_ui
node_visitor -->|"uses"| node_ui
node_ui -->|"reads"| node_config
node_ui -->|"creates"| node_interaction
node_ui -->|"creates"| node_music
node_ui -->|"creates"| node_visual
node_experience -->|"creates"| node_camera
node_experience -->|"creates"| node_renderer
node_experience -->|"creates"| node_resources
node_experience -->|"creates"| node_world
node_experience -->|"uses"| node_navigation
node_experience -->|"loads"| node_assets
node_resources -->|"uses"| node_loader
node_loader -->|"gets renderer"| node_experience
node_world -->|"waits for assets"| node_resources
node_world -->|"creates"| node_baked
node_world -->|"creates"| node_steam
node_world -->|"creates"| node_leds
node_world -->|"creates"| node_deck
node_world -->|"creates"| node_hotspots
node_world -->|"creates"| node_screens
node_world -->|"creates"| node_tv
node_world -->|"creates"| node_chair
node_world -->|"creates"| node_light
node_world -->|"creates"| node_speakers
node_music -->|"uses"| node_audio_state
node_visual -->|"uses"| node_audio_state
node_speakers -->|"uses"| node_audio_state

click node_bootstrap "https://github.com/nitheesh2315/my-room-3d/blob/main/src/script.js"
click node_ui "https://github.com/nitheesh2315/my-room-3d/blob/main/src/ui/Ui.js"
click node_config "https://github.com/nitheesh2315/my-room-3d/blob/main/src/config.js"
click node_interaction "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Interaction.js"
click node_experience "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Experience.js"
click node_navigation "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Navigation.js"
click node_camera "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Camera.js"
click node_renderer "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Renderer.js"
click node_resources "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Resources.js"
click node_loader "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Utils/Loader.js"
click node_assets "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/assets.js"
click node_world "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/World.js"
click node_baked "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Baked.js"
click node_steam "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/CoffeeSteam.js"
click node_leds "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/GoogleLeds.js"
click node_deck "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/LoupedeckButtons.js"
click node_hotspots "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Hotspots.js"
click node_screens "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Screen.js"
click node_tv "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/TvVideo.js"
click node_chair "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/TopChair.js"
click node_light "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/ElgatoLight.js"
click node_speakers "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Speakers.js"
click node_music "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/MusicAnalyser.js"
click node_visual "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/MusicVisual.js"
click node_audio_state "https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/audioState.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_bootstrap,node_ui,node_config,node_interaction toneBlue
class node_experience,node_navigation,node_camera,node_renderer,node_resources,node_loader,node_assets toneAmber
class node_world,node_baked,node_steam,node_leds,node_deck,node_hotspots,node_screens,node_tv,node_chair,node_light toneMint
class node_speakers,node_music,node_visual,node_audio_state toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio UI

- [Page Bootstrap](https://github.com/nitheesh2315/my-room-3d/blob/main/src/script.js): `src/script.js`
- [Portfolio UI](https://github.com/nitheesh2315/my-room-3d/blob/main/src/ui/Ui.js): `src/ui/Ui.js`
- [Portfolio Content](https://github.com/nitheesh2315/my-room-3d/blob/main/src/config.js): `src/config.js`
- [Room Interaction](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Interaction.js): `src/Experience/Interaction.js`

### 3D Runtime

- [Experience Runtime](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Experience.js): `src/Experience/Experience.js`
- [Camera Navigation](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Navigation.js): `src/Experience/Navigation.js`
- [Camera](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Camera.js): `src/Experience/Camera.js`
- [Renderer](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Renderer.js): `src/Experience/Renderer.js`
- [Resource Manager](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Resources.js): `src/Experience/Resources.js`
- [Asset Loader](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Utils/Loader.js): `src/Experience/Utils/Loader.js`
- [Asset Manifest](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/assets.js): `src/Experience/assets.js`

### Room Features

- [Room Assembly](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/World.js): `src/Experience/World.js`
- [Baked Room](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Baked.js): `src/Experience/Baked.js`
- [Coffee Steam](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/CoffeeSteam.js): `src/Experience/CoffeeSteam.js`
- [Google LEDs](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/GoogleLeds.js): `src/Experience/GoogleLeds.js`
- [Loupedeck Buttons](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/LoupedeckButtons.js): `src/Experience/LoupedeckButtons.js`
- [Portfolio Hotspots](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Hotspots.js): `src/Experience/Hotspots.js`
- [Room Screens](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Screen.js): `src/Experience/Screen.js`
- [TV Video](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/TvVideo.js): `src/Experience/TvVideo.js`
- [Top Chair](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/TopChair.js): `src/Experience/TopChair.js`
- [Elgato Light](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/ElgatoLight.js): `src/Experience/ElgatoLight.js`

### Music Experience

- [Speakers](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/Speakers.js): `src/Experience/Speakers.js`
- [Music Controls](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/MusicAnalyser.js): `src/Experience/MusicAnalyser.js`
- [Now Playing Visual](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/MusicVisual.js): `src/Experience/MusicVisual.js`
- [Audio State](https://github.com/nitheesh2315/my-room-3d/blob/main/src/Experience/audioState.js): `src/Experience/audioState.js`

### Other components

- **Visitor**

## Connections

- Visitor → Page Bootstrap: opens
- Page Bootstrap → Experience Runtime: starts (evidence: `src/script.js`)
- Page Bootstrap → Portfolio UI: creates (evidence: `src/script.js`)
- Visitor → Portfolio UI: uses (evidence: `src/ui/Ui.js`)
- Portfolio UI → Portfolio Content: reads (evidence: `src/ui/Ui.js`)
- Portfolio UI → Room Interaction: creates (evidence: `src/ui/Ui.js`)
- Portfolio UI → Music Controls: creates (evidence: `src/ui/Ui.js`)
- Portfolio UI → Now Playing Visual: creates (evidence: `src/ui/Ui.js`)
- Experience Runtime → Camera: creates (evidence: `src/Experience/Experience.js`)
- Experience Runtime → Renderer: creates (evidence: `src/Experience/Experience.js`)
- Experience Runtime → Resource Manager: creates (evidence: `src/Experience/Experience.js`)
- Experience Runtime → Room Assembly: creates (evidence: `src/Experience/Experience.js`)
- Experience Runtime → Camera Navigation: uses (evidence: `src/Experience/Experience.js`)
- Experience Runtime → Asset Manifest: loads (evidence: `src/Experience/Experience.js`)
- Resource Manager → Asset Loader: uses (evidence: `src/Experience/Resources.js`)
- Asset Loader → Experience Runtime: gets renderer (evidence: `src/Experience/Utils/Loader.js`)
- Room Assembly → Resource Manager: waits for assets (evidence: `src/Experience/World.js`)
- Room Assembly → Baked Room: creates (evidence: `src/Experience/World.js`)
- Room Assembly → Coffee Steam: creates (evidence: `src/Experience/World.js`)
- Room Assembly → Google LEDs: creates (evidence: `src/Experience/World.js`)
- Room Assembly → Loupedeck Buttons: creates (evidence: `src/Experience/World.js`)
- Room Assembly → Portfolio Hotspots: creates (evidence: `src/Experience/World.js`)
- Room Assembly → Room Screens: creates (evidence: `src/Experience/World.js`)
- Room Assembly → TV Video: creates (evidence: `src/Experience/World.js`)
- Room Assembly → Top Chair: creates (evidence: `src/Experience/World.js`)
- Room Assembly → Elgato Light: creates (evidence: `src/Experience/World.js`)
- Room Assembly → Speakers: creates (evidence: `src/Experience/World.js`)
- Music Controls → Audio State: uses (evidence: `src/Experience/MusicAnalyser.js`)
- Now Playing Visual → Audio State: uses (evidence: `src/Experience/MusicVisual.js`)
- Speakers → Audio State: uses (evidence: `src/Experience/Speakers.js`)
