# arjunbalaji123/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/arjunbalaji123/portfolio
- Repository: https://github.com/arjunbalaji123/portfolio

## Overview

This repository implements a browser-based interactive portfolio. The visitor’s path runs through the page’s initialized experience: portfolio collections are rendered from project, hackathon, and achievement data; featured cards and project cards open a detail modal; scrolling drives motion and audio feedback, while a Three.js scene supplies the 3D visual layer. The graph separates these user-facing stages from their implementation engines. The README is empty, and the HTML and CSS were not excerpted, so page wiring beyond the shown JavaScript is not asserted.

Main entry points: [`js/app.js`](https://github.com/arjunbalaji123/portfolio/blob/main/js/app.js) (App orchestrator), [`js/audio-synth.js`](https://github.com/arjunbalaji123/portfolio/blob/main/js/audio-synth.js) (Spatial audio synthesizer), [`js/scroll-engine.js`](https://github.com/arjunbalaji123/portfolio/blob/main/js/scroll-engine.js) (Scroll animation engine), [`js/three-scene.js`](https://github.com/arjunbalaji123/portfolio/blob/main/js/three-scene.js) (3D scene renderer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Portfolio experience"]
  node_orchestrator["App orchestrator<br/>[app.js]"]
  node_collection["Portfolio collections<br/>[app.js]"]
  node_detail["Project detail modal<br/>[app.js]"]
  node_navigation["UI navigation<br/>[app.js]"]
end

subgraph group_content["Portfolio content"]
  node_portfolio_data["Portfolio datasets<br/>[gallery-data.js]"]
end

subgraph group_engines["Interactive engines"]
  node_three_scene["3D scene renderer<br/>[three-scene.js]"]
  node_scroll_engine["Scroll animation engine<br/>[scroll-engine.js]"]
end

subgraph group_feedback["Audio feedback"]
  node_audio_synth["Spatial audio synthesizer<br/>[audio-synth.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"uses controls"| node_orchestrator
node_orchestrator -->|"initializes"| node_three_scene
node_orchestrator -->|"initializes"| node_scroll_engine
node_orchestrator -->|"renders"| node_collection
node_orchestrator -->|"binds controls"| node_navigation
node_orchestrator -->|"reads datasets"| node_portfolio_data
node_collection -->|"opens on click"| node_detail
node_visitor -->|"selects cards"| node_detail
node_visitor -->|"uses shortcuts"| node_navigation
node_navigation -->|"toggles audio"| node_audio_synth
node_detail -->|"plays chime"| node_audio_synth
node_scroll_engine -->|"plays scroll tones"| node_audio_synth
node_visitor -->|"drags scene"| node_three_scene

click node_orchestrator "https://github.com/arjunbalaji123/portfolio/blob/main/js/app.js"
click node_collection "https://github.com/arjunbalaji123/portfolio/blob/main/js/app.js"
click node_detail "https://github.com/arjunbalaji123/portfolio/blob/main/js/app.js"
click node_navigation "https://github.com/arjunbalaji123/portfolio/blob/main/js/app.js"
click node_portfolio_data "https://github.com/arjunbalaji123/portfolio/blob/main/js/gallery-data.js"
click node_three_scene "https://github.com/arjunbalaji123/portfolio/blob/main/js/three-scene.js"
click node_scroll_engine "https://github.com/arjunbalaji123/portfolio/blob/main/js/scroll-engine.js"
click node_audio_synth "https://github.com/arjunbalaji123/portfolio/blob/main/js/audio-synth.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_orchestrator,node_collection,node_detail,node_navigation toneBlue
class node_portfolio_data toneAmber
class node_three_scene,node_scroll_engine toneMint
class node_audio_synth toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio experience

- [App orchestrator](https://github.com/arjunbalaji123/portfolio/blob/main/js/app.js): `js/app.js`
- [Portfolio collections](https://github.com/arjunbalaji123/portfolio/blob/main/js/app.js): `js/app.js`
- [Project detail modal](https://github.com/arjunbalaji123/portfolio/blob/main/js/app.js): `js/app.js`
- [UI navigation](https://github.com/arjunbalaji123/portfolio/blob/main/js/app.js): `js/app.js`

### Portfolio content

- [Portfolio datasets](https://github.com/arjunbalaji123/portfolio/blob/main/js/gallery-data.js): `js/gallery-data.js`

### Interactive engines

- [3D scene renderer](https://github.com/arjunbalaji123/portfolio/blob/main/js/three-scene.js): `js/three-scene.js`
- [Scroll animation engine](https://github.com/arjunbalaji123/portfolio/blob/main/js/scroll-engine.js): `js/scroll-engine.js`

### Audio feedback

- [Spatial audio synthesizer](https://github.com/arjunbalaji123/portfolio/blob/main/js/audio-synth.js): `js/audio-synth.js`

### Other components

- **Visitor**

## Connections

- Visitor → App orchestrator: uses controls (evidence: `js/app.js`)
- App orchestrator → 3D scene renderer: initializes (evidence: `js/app.js`)
- App orchestrator → Scroll animation engine: initializes (evidence: `js/app.js`)
- App orchestrator → Portfolio collections: renders (evidence: `js/app.js`)
- App orchestrator → UI navigation: binds controls (evidence: `js/app.js`)
- App orchestrator → Portfolio datasets: reads datasets (evidence: `js/app.js`)
- Portfolio collections → Project detail modal: opens on click (evidence: `js/app.js`)
- Visitor → Project detail modal: selects cards (evidence: `js/app.js`)
- Visitor → UI navigation: uses shortcuts (evidence: `js/app.js`)
- UI navigation → Spatial audio synthesizer: toggles audio (evidence: `js/app.js`)
- Project detail modal → Spatial audio synthesizer: plays chime (evidence: `js/app.js`)
- Scroll animation engine → Spatial audio synthesizer: plays scroll tones (evidence: `js/scroll-engine.js`)
- Visitor → 3D scene renderer: drags scene (evidence: `js/three-scene.js`)
