How goldhap/nepali-radio-player works
This is a lightweight Nepali radio web player: listeners open the page, browse or filter a catalog of stations, and select one to stream. The main runtime is a single JavaScript file that also implements playback controls, favorites and history, equalizer, sleep timer, sharing, and other listening features. A service worker caches the app shell and provides offline navigation fallback while deliberately bypassing audio. Several capabilities are documented in the script header but their implementation details are outside the excerpts, so their internal links are not inferred.
Main entry points: script.js Player controller · sw.js Service worker · index.html Player page · radios.json Station catalog
Components 14
Web interface
- Player page
index.html - Player styling
style.css - Player controller
script.js
Station discovery
- Station catalog
radios.json - Browse and filter
script.js - Favorites and history
script.js
Listening features
- Stream playback
script.js - Audio equalizer
script.js - Listening controls
script.js
Offline support
- Service worker
sw.js - Browser cache
- Offline page
offline.html
Other components
- Listener
- Radio stream
Connections 5
- Listener → Player page: opens
README.md - Player controller → Station catalog: fetches
script.js - Player controller → Radio stream: proxies stream
script.js - Service worker → Browser cache: caches app files
sw.js - Service worker → Offline page: navigation fallback
sw.js