Collaborative Music Queue

WebMusicReal-Time
React Flask PostgreSQL Redis Docker MPD Python Tailwind CSS Cloudflare Tunnel Self-hosted

Project Overview

Who

Groups sharing a listening space: LAN party attendees, coworkers in the office, and people listening remotely. The idea was to give everyone a say in what plays instead of one person's playlist or a streaming algorithm.

What

A music queue that runs in the browser. Anyone signed in can search a 31,000-song library, request songs, rate them from 1 to 5 stars, and vote to skip. The queue updates live for everyone. When the queue runs out, Auto-DJ picks similar-sounding songs to keep it going.

It also supports song uploads and tag editing, a public stats page with play history and leaderboards, volume leveling with ReplayGain, and Microsoft sign-in limited to approved domains.

When

I first built it for recurring LAN events, and it grew over several rounds of work. Audio analysis and similarity matching, the stats dashboard, ReplayGain, and Microsoft sign-in were all added as more people used it and the library grew.

Where

Self-hosted on an Ubuntu server with the music library on a NAS. It works on the local network and, through Cloudflare Tunnel, from anywhere, with no open ports at home. A second copy runs on the same server as a test environment so I can try changes before they go live.

Why

Shared music in a group usually leads to arguments. One person controlling the playlist caused friction, and most of the library never got played. This gives everyone a vote, helps people find songs they didn't know were there, and keeps music playing without anyone managing it.

It was also how I learned a lot of new things: audio analysis, similarity search, streaming from a server, OAuth, and running test and production side by side with a set process for promoting changes.

Stack & Tools

Frontend
React, Tailwind CSS
Backend
Python, Flask
Database
PostgreSQL
Sessions
Redis
Audio Playback
MPD, HTTP Stream
Containers
Docker, Docker Compose
Remote Access
Cloudflare Tunnel
Audio Analysis
Essentia, Neural Models
Auth
Microsoft OAuth, JWT
Host OS
Ubuntu Server
DNS & CDN
Cloudflare