How fernius07/gta-vi-radios works
GTA VI Radio is a browser-based, multi-station radio simulator. A listener opens the app, which initializes a persistent session and selects a live station; the player hook synchronizes playback with each station’s broadcast position, while the interface supports browsing, favorites, search, and the optional Dial view. The graph preserves the documented capabilities, but some internal UI wiring and optional audio-host configuration are not shown in the excerpts, so uncertain relationships are omitted.
Main entry points: App.tsx App shell · useRadioPlayer.ts Radio player hook · StationArtwork.tsx Station artwork · radioEngine.ts Live session engine
Components 21
Radio interface
- Sidebar
src/components/Sidebar.tsx - Mobile navigation
src/components/MobileNav.tsx - Station hero
src/components/HeroBanner.tsx - Station cards
src/components/StationCard.tsx - Dial view
src/components/DialView.tsx - Player bar
src/components/PlayerBar.tsx - Station artwork
src/components/StationArtwork.tsx - Track marquee
src/components/MarqueeText.tsx
Playback and session
- Radio player hook
src/hooks/useRadioPlayer.ts - Live session engine
src/lib/radioEngine.ts - FM static effect
src/lib/fmStatic.ts - Lockscreen artwork
src/lib/mediaArtwork.ts - Session storage
Station catalog
- Station catalog
src/data/stations.ts - English station text
src/data/stationsEn.ts - Station tracklists
src/data/tracklists.ts - UI translations
src/lib/i18n.ts
Other components
- Listener
- Audio source
Connections 30
- Listener → App entry: opens
- App entry → App shell: renders
src/main.tsx - App shell → Radio player hook: initializes
src/App.tsx - App shell → Sidebar: renders
src/App.tsx - App shell → Mobile navigation: renders
src/App.tsx - App shell → Station hero: renders
src/App.tsx - App shell → Station cards: renders
src/App.tsx - App shell → Dial view: renders
src/App.tsx - App shell → Player bar: renders
src/App.tsx - App shell → English station text: localizes stations
src/App.tsx - App shell → UI translations: loads language
src/App.tsx - Sidebar → Station artwork: renders
src/components/Sidebar.tsx - Station cards → Station artwork: renders
src/components/StationCard.tsx - Station hero → Station artwork: renders
src/components/HeroBanner.tsx - Station hero → Track marquee: renders
src/components/HeroBanner.tsx - Dial view → Station artwork: renders
src/components/DialView.tsx - Dial view → Track marquee: renders
src/components/DialView.tsx - Player bar → Station artwork: renders
src/components/PlayerBar.tsx - Player bar → Track marquee: renders
src/components/PlayerBar.tsx - Radio player hook → Live session engine: loads and saves session
src/hooks/useRadioPlayer.ts - Live session engine → Session storage: reads and writes
src/lib/radioEngine.ts - Live session engine → Station catalog: uses station data
src/lib/radioEngine.ts - Live session engine → Station tracklists: uses tracklists
src/lib/radioEngine.ts - Radio player hook → Station catalog: selects audio source
src/hooks/useRadioPlayer.ts - Radio player hook → Audio source: plays station audio
src/hooks/useRadioPlayer.ts - Radio player hook → Lockscreen artwork: requests artwork
src/hooks/useRadioPlayer.ts - Radio player hook → FM static effect: uses static effect
src/hooks/useRadioPlayer.ts - Station catalog → English station text: provides translation keys
src/data/stationsEn.ts - Listener → Sidebar: browses stations
- Listener → Player bar: controls playback