Have you ever tried to stream audio from a web-based source in an Electron or Tauri app, only to hit a brick wall because of CORS restrictions or WebKit codec limitations?
I had that exact problem with a music app i'm making and I got tired of patching half-broken workarounds just to play media cleanly.
So I built something better:
DAP – the Desktop Audio Proxy
GitHub Repo - https://github.com/Bandonker/desktop-audio-proxy
npm install command: npm install desktop-audio-proxy
What is DAP?
DAP (Desktop Audio Proxy) is a powerful, lightweight proxy designed specifically to help Electron and Tauri apps stream audio seamlessly. I was able to even make it work from domains blocked by CORS or unsupported by WebKit’s brittle media codec stack.
It gives your app a local audio stream pipeline that bypasses all the usual blockers without the hassle, clean, fast, and reliable.
Why I Built This
I needed something that could:
Stream media without CORS headaches
Work cross-platform in Tauri (I love Tauri) and Electron
Handle audio from restricted or unsupported formats
Be plug-and-play with minimal config
Instead of continuing to hack my way around browser limitations, I decided to build a solution that just works.
How It Works
DAP spins up a local server that:
Proxies audio from any source
Transcodes only when needed
Can be accessed via a consistent local stream
Bypasses CORS and codec issues entirely
All you need to do is:
npm install desktop-audio-proxy
then:
import { startProxy } from 'desktop-audio-proxy';
startProxy(); // and your local audio pipeline is now live.
Use Cases
Desktop podcast and radio station apps pulling from protected feeds
Game launchers with custom soundtracks or SFX
Media players with direct MP3/OGG/HLS streaming
Cross-platform music production tools
If you’re building anything audio-heavy in Tauri or Electron — DAP saves you many hours of dev time, trust me.