How dax622006/yearning works
This is a browser-based ambient music player. Users select and control shuffled tracks, while the app coordinates playback, progress, and volume; they can also adjust ambient sound layers, choose visual scenes, and open track or app information. The sampled code shows the main orchestration, UI controls, track data, and audio-engine integrations. Some component wiring is established by the source index rather than complete render excerpts, so the graph avoids inferring additional runtime stages.
Main entry points: App.tsx Player coordinator · soundEngine.ts Sound engine · types.ts Track and scene types · main.tsx React entry
Components 12
App orchestration
- React entry
src/main.tsx - Player coordinator
src/App.tsx - Track and scene types
src/types.ts
Music playback
- Playlist and scenes
src/data/tracks.ts - Sound engine
src/services/soundEngine.ts
Atmosphere and interface
- Player controls
src/components/PlayerBar.tsx - Ambient mixer
src/components/AmbientMixerDrawer.tsx - Track details
src/components/NowPlayingModal.tsx - About dialog
src/components/InfoModal.tsx
Other components
- Listener
- YouTube player
- Browser audio APIs
Connections 15
- Listener → React entry: opens player
src/main.tsx - React entry → Player coordinator: renders
src/main.tsx - Player coordinator → Playlist and scenes: loads playlist
src/App.tsx - Player coordinator → Sound engine: controls playback
src/App.tsx - Sound engine → YouTube player: loads and plays
src/services/soundEngine.ts - Sound engine → Browser audio APIs: generates audio
src/services/soundEngine.ts - Player coordinator → Player controls: renders controls
src/App.tsx - Player controls → Player coordinator: sends control actions
src/components/PlayerBar.tsx - Player coordinator → Ambient mixer: renders mixer
src/App.tsx - Ambient mixer → Player coordinator: sends mixer actions
src/components/AmbientMixerDrawer.tsx - Player coordinator → Track details: renders track details
src/App.tsx - Player coordinator → About dialog: renders about dialog
src/App.tsx - Player coordinator → Track and scene types: uses shared types
src/App.tsx - Playlist and scenes → Track and scene types: defines typed data
src/data/tracks.ts - Sound engine → Track and scene types: accepts tracks
src/services/soundEngine.ts