How punypeony/sanvi_sample works
This is an interactive headphone product showcase: visitors explore a 3D model, inspect and tour its components, choose a colorway, and try synthesized audio and noise-cancellation demos. The graph separates the page shell, 3D inspection, and audio experience, with implementation data and preparation as an internal layer. Edges follow visible imports and calls; some 3D internals are supported only by the source index, so unsampled behavior is not expanded.
Main entry points: App.jsx Showcase shell · ModelInspector.jsx Model inspector · HeadphoneModel.jsx Headphone model · colorways.js Colorway data
Components 18
Showcase page
- Showcase shell
src/App.jsx - Color picker
src/components/ColorPicker.jsx - React entry
src/main.jsx
3D inspection
- Model inspector
src/three/ModelInspector.jsx - Headphone model
src/three/HeadphoneModel.jsx - Camera rig
src/three/CameraRig.jsx - Studio scene
src/three/Studio.jsx - Inspector overlays
src/three/inspectorOverlays.jsx
Audio demo
- Audio controls
src/components/AudioControls.jsx - Audio state hook
src/audio/useAudioDemo.js - Procedural audio engine
src/audio/audioEngine.js - Audio visualizer
src/components/AudioRings.jsx
Model and product data
- Colorway data
src/three/colorways.js - Part specifications
src/three/headphoneParts.js - Model preparation
src/three/prepareModel.js - Headphone model asset
public/models/headphones.glb
Other components
- Visitor
- Browser URL and storage
Connections 22
- Visitor → Showcase shell: uses
- React entry → Showcase shell: renders
src/main.jsx - Showcase shell → Model inspector: renders
src/App.jsx - Showcase shell → Color picker: renders
src/App.jsx - Showcase shell → Audio controls: renders
src/App.jsx - Showcase shell → Audio visualizer: renders
src/App.jsx - Showcase shell → Browser URL and storage: reads and writes
src/App.jsx - Color picker → Colorway data: reads options
src/components/ColorPicker.jsx - Showcase shell → Colorway data: reads selection data
src/App.jsx - Model inspector → Headphone model: renders
src/three/ModelInspector.jsx - Model inspector → Camera rig: renders
src/three/ModelInspector.jsx - Model inspector → Studio scene: renders
src/three/ModelInspector.jsx - Model inspector → Inspector overlays: renders
src/three/ModelInspector.jsx - Model inspector → Part specifications: reads part data
src/three/ModelInspector.jsx - Model inspector → Colorway data: reads palettes
src/three/ModelInspector.jsx - Headphone model → Model preparation: uses preparation
src/three/HeadphoneModel.jsx - Model preparation → Part specifications: matches mesh names
src/three/prepareModel.js - Inspector overlays → Part specifications: reads part details
src/three/inspectorOverlays.jsx - Audio controls → Audio state hook: uses state and actions
src/components/AudioControls.jsx - Audio state hook → Procedural audio engine: subscribes and dispatches
src/audio/useAudioDemo.js - Audio visualizer → Procedural audio engine: reads levels and state
src/components/AudioRings.jsx - Headphone model → Headphone model asset: loads asset