web container runs the React/Three.js frontend that renders the interactive 3D graph visualization.
Layered Architecture
React Components
App.jsx, Toolbar, Sidebars, Graph3D - UI layer that users interact with
React Hooks
useGraph3D, useAppState, useNodeSelection - Bridge between React state and service layer
Dual State
React Context (AppContext) for UI state, GraphStateManager for rendering state
Service Layer
GraphService, OverlayFilterService, CameraControlService - Business logic
Three.js
three-forcegraph library, WebGL canvas - 3D rendering
Key Concepts
| Concept | Description |
|---|---|
| State Management | Dual state architecture: React Context + GraphStateManager |
| Services | Service layer composition and responsibilities |
| Selection | Photoshop-inspired selection modes and history |
| Filtering | Filter composition pipeline and BFS algorithm |
| Events | Custom event system for loose coupling |
| Theme | CSS variables and brightness system |