gitwtfhub

wtf is music-machine?

15fairmount-glitch/music-machine — explained in plain English

Analysis updated 2026-05-18

0JavaScriptAudience · generalComplexity · 3/5LicenseSetup · moderate

TL;DR

A self-hosted jukebox for a local network that combines a personal music library, Spotify search, and Sonos speaker control.

Mindmap

mindmap
  root((Music Machine))
    What it does
      Local network jukebox
      Spotify discovery
      Sonos control
    Tech stack
      Node.js
      JavaScript
      Express
    Use cases
      Guest jukebox interface
      Multi room Sonos control
      Shuffle playback
    Audience
      Home audio hobbyists
      Sonos owners

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Run a touch friendly jukebox interface for guests on your home network

REASON 2

Control multiple Sonos rooms and their volume from one interface

REASON 3

Shuffle albums and playlists from your local library or Spotify

REASON 4

Build and manage local playlists with two separate favorites profiles

What's in the stack?

Node.jsJavaScriptExpress

How it stacks up

15fairmount-glitch/music-machine00kaku/gallery-slider-block0xkinno/vellum
Stars00
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-05-19
MaintenanceDormant
Setup difficultymoderateeasyhard
Complexity3/52/54/5
Audiencegeneralgeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Has no built-in authentication, so it should stay on a trusted local network or behind a VPN.

Free to use, modify, and distribute for any purpose, including commercial use, as long as the copyright notice is kept.

Wtf does this do

Music Machine is a self hosted jukebox that runs on your local network and pulls together your own music library, Spotify search, and control of Sonos speakers in one place. It offers a touch friendly interface meant for guests to use casually, a separate administration interface for the person running it, two independently configurable favorites profiles, listening history, the ability to build local playlists, and control over multiple Sonos rooms at once. The tool scans your music folders for MP3, FLAC, M4A, MP4, AAC, and WAV files, reads embedded and folder artwork into a cache, and lets you search across both your local library and Spotify when it is configured. On the playback side, it can shuffle albums and playlists while keeping the shuffled order stable even if Sonos rooms are added, removed, or the queue screen is reopened, alongside the usual straight-through and choose-a-track playback options. To run it, you need Node.js 20 or later, a computer that can stay on and reach your music folders, and Sonos speakers on the same local network. Setup involves unzipping the release, copying the example environment file, editing it with your own paths and settings, then installing dependencies and starting the server. Once running, the guest interface, admin panel, and playlist builder are each available at their own local address, and other devices on the network can reach them using the host computer's address instead of localhost. Because the app has no built in authentication, it is meant to stay on a trusted home network, kept away from the open internet unless placed behind a VPN or an authenticated proxy. The project is released under the MIT license.

Yoink these prompts

Prompt 1
Help me set up Music Machine on my home network with Sonos speakers
Prompt 2
Explain how to configure the .env file for Music Machine's two user profiles
Prompt 3
Walk me through scanning my local music library into Music Machine
Prompt 4
How do I secure Music Machine since it has no built in authentication

Frequently asked questions

wtf is music-machine?

A self-hosted jukebox for a local network that combines a personal music library, Spotify search, and Sonos speaker control.

What language is music-machine written in?

Mainly JavaScript. The stack also includes Node.js, JavaScript, Express.

What license does music-machine use?

Free to use, modify, and distribute for any purpose, including commercial use, as long as the copyright notice is kept.

How hard is music-machine to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is music-machine for?

Mainly general.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.