Grapevine: a p2p radio built on top of libp2p

Hey!
A project that came to my mind was the idea of streaming web radios in a P2P manner.

For radio enthusiasts, there is a real struggle today to cover for the costs of running the infra required to host a web radio, and these scale with the number of listeners. This makes it quite a steep step for someone who wants to start.

Using grapevine, the radio stream is packetized in a high-quality format and distributed using libp2p over GossipSub. Thanks to libp2p’s amazing interoperability, integration with other languages to support other platforms is seamless. The project is OSS and is currently in a very early stage.

First of all, a website is available at https://p2pgossip.com/ it’s currently broadcasting a royalty-free playlist of classical music brought by https://musopen.org/ and can be downloaded from: Musopen Collection as FLAC : Free Download, Borrow, and Streaming : Internet Archive

For those curious, attached is a sketch of the current architecture. You can clearly see that the streamer node’s responsibilities are very much alleviated and the system may virtually scale infinitely.

Find the source code at https://github.com/franfrandev/grapevine & https://github.com/franfrandev/grapevine-ui

Thanks and have a nice day!

1 Like

Interesting project. Since GossipSub is optimized for message propagation rather than continuous low-latency media, how are you handling buffering and late joiners? In particular, does a peer that joins mid-song receive only future packets, and how much latency does the gossip mesh add compared with the streamer? Also curious whether you have measured bandwidth amplification under peer churn.