English
BunFM
Your own radio station. Live, together. BunFM turns a directory of audio files into one continuous MP3 broadcast, with a web player for everyone listening.
Listen live
This is the running instance at bunfm.com, not a screenshot. Press play to join the broadcast; audio does not start automatically. If the embedded player is unavailable, use the link below to open it directly.
A player for the broadcast
- One shared stream. Node.js and FFmpeg broadcast your audio directory over HTTP. Listeners join what is on air; this is live radio, not on-demand playback.
- A responsive web player. Track titles, artists, albums and embedded artwork sit alongside cover-colored backgrounds and a real-time audio spectrum.
- Installable PWA. Add the player to your desktop or home screen in supported browsers. The page shell can be cached offline; live audio still needs a connection.
- Station statistics. Uptime, cumulative visits and listens, and active stream connections, with persistent totals and no database.
Optional Telegram and AI hosting
Use the Telegram bot to upload audio files or voice messages, list and delete tracks, skip the current track, or mute the broadcast. The web player and stream work without a bot token. Keep access to the bot trusted: commands do not have a user allowlist.
Enable the AI host to add spoken transitions between tracks. BunFM lowers the music beneath the voice, then fades back to full volume. If preparation fails or is not ready in time, playback continues without the transition.
AI hosting requires configured OpenAI-compatible LLM and TTS services. Track names and speech text are sent to those providers, and API requests may incur charges. Neither AI hosting nor Telegram is required for basic playback.
Run your own station
The source now lives at StackStoreHQ/bun-fm, under the MIT License.
- Install Node.js 20+ and FFmpeg / ffprobe.
- Clone the repository and run
npm install. - Copy
config.example.yamltoconfig.yaml, then add audio files tomedia/. That directory is the playlist. - Run
npm run build, thennode dist/index.jsfrom the project root. - Open
http://127.0.0.1:7080/for the player, or use/streamwith an external audio player.
Configure the server, station appearance, storage and playback in config.yaml; restart after changes. Telegram and AI hosting are opt-in. For a public deployment, use HTTPS and proxy /stream without response buffering. See the repository README for all settings and deployment notes.
FAQ
Can I listen without deploying anything?
Yes. Use the live player above or open bunfm.com. To broadcast your own library, deploy your own BunFM server.
Does playback resume where I paused?
No. Pausing disconnects from the stream. Playing again joins the current broadcast rather than resuming an old position. Listener buffers can differ, so this is not a sample-accurate synchronization guarantee.
Can I control playback from Telegram?
Yes, when a bot is configured. /ls lists tracks, /rm <number> deletes a track, /next skips the current track and /mute toggles broadcast mute. Upload audio or voice messages to add tracks.
Can I listen offline?
No. PWA caching keeps the player shell available, not the live broadcast. Playback always requires a network connection.