Music Streaming Server
  • Python 61.9%
  • Vue 19.9%
  • TypeScript 7.6%
  • CSS 6.6%
  • Shell 2.9%
  • Other 1%
Find a file
2026-11-28 10:56:56 +00:00
appimage chore: update repository links to the gabriel account 2026-11-09 01:10:48 +00:00
client fix(playlists): apply DJ Mix settings from track rows 2026-10-25 23:06:00 +00:00
contributing docs: complete Python/master documentation and add API index 2026-11-28 10:50:11 +00:00
docs docs: complete Python/master documentation and add API index 2026-11-28 10:50:11 +00:00
scripts feat(pwa): make the client installable and cache its shell 2026-10-23 14:31:30 +01:00
src/swingmusic chore: update repository links to the gabriel account 2026-11-09 01:10:48 +00:00
tests feat(dj-mix): add echo and riser mixes with FX controls 2026-10-25 20:24:06 +00:00
.dockerignore chore(ci): add CI, Docker compose and operations docs 2026-10-24 23:02:29 +01:00
.gitattributes fix: sys.path pollution in install script 2026-04-25 14:09:25 +00:00
.gitignore feat(client): add the Spotify-style web client 2026-10-23 01:25:02 +01:00
docker-compose.yml docs(docker): document server deployment and fix local build version 2026-10-25 17:10:53 +00:00
Dockerfile chore(ci): add CI, Docker compose and operations docs 2026-10-24 23:02:29 +01:00
install.sh docs: simplify installation and credit the upstream project 2026-10-30 01:15:27 +00:00
LICENSE update license 2025-08-17 20:07:32 +03:00
pyproject.toml chore: update repository links to the gabriel account 2026-11-09 01:10:48 +00:00
README.md docs: update README 2026-11-28 10:56:56 +00:00
requirements.txt feat(artist): add Wikipedia/Gemini biographies and chronological discography 2026-10-22 23:00:57 +01:00
run.py fix #440: move freeze_support to top of run.py to fix Windows crash (#450) 2026-01-18 08:54:00 +03:00
setup.py merge onboarding + installer 2026-04-23 16:02:35 +00:00
swingmusic.spec build(client): ship the web client inside the wheel and container 2026-10-23 01:40:03 +01:00
TODO.md merge onboarding + installer 2026-04-23 16:02:35 +00:00
uv.lock feat(artist): add Wikipedia/Gemini biographies and chronological discography 2026-10-22 23:00:57 +01:00
version.txt chore(version): ship the v3 fallback version in version.txt 2026-10-22 23:48:45 +01:00

Swing Music logo

Swing Music

A self-hosted music server for local files and read-only WebDAV libraries.

master is the Python/Flask version. The same application is being ported to Go on the go-rewrite branch. Both versions use the same API, SQLite database and config folder.

This repository is a fork of Swing Music by Swing MX. The original project and its contributors deserve credit for the code and design. This fork is maintained at git.vortexia.wiki/gabriel/swing-music and is not affiliated with or endorsed by upstream.

Features

  • Local folders and WebDAV libraries
  • Metadata cleanup, album versions and duplicate handling
  • Synced lyrics from local files, tags, LRCLIB and NetEase
  • BPM, energy, key, danceability and intro/outro analysis
  • Smart playlists based on cached analysis
  • DJ Mix editor with per-track transitions
  • Queue and playlist editing
  • Multi-user accounts and roles
  • Range streaming, WebDAV playback and optional transcoding
  • Stats, listening history and exports
  • Offline mode and installable web app

Requirements

  • Python 3.11 or newer
  • uv
  • ffmpeg and ffprobe on PATH
  • Docker, if you prefer the container setup

Node.js is only needed when changing the web client.

Docker

git clone https://git.vortexia.wiki/gabriel/swing-music.git
cd swing-music
mkdir -p music config
docker compose up -d --build

Open http://localhost:1970 and create the first admin account.

The compose file builds the image locally and mounts:

  • ./music at /music (read-only)
  • ./config at /config

The config folder used by the server is /config/swingmusic. For a WebDAV-only setup, remove the music volume.

To update:

git pull
docker compose up -d --build

From source

uv sync
uv run swingmusic --host 127.0.0.1 --port 1970 --config ~/.config

The default config parent is ~/.config, and the server creates ~/.config/swingmusic. Use --config <dir> to keep it somewhere else.

Configuration

  • Port: 1970, or --port / SWINGMUSIC_PORT
  • Config parent: ~/.config, or --config
  • Device name: SWINGMUSIC_DEVICE_NAME
  • Cookies over HTTPS: SWINGMUSIC_COOKIE_SECURE=1

The config folder contains the database, settings, keys, images, playlists and lyrics. Music files are never modified, so back up the config folder instead of the library.

Documentation

Development

uv sync --group dev
uv run pytest -q

To rebuild the embedded client:

cd client
npm ci
npm run build
cd ..
uv run python scripts/build_client.py --version "$(git describe --tags --abbrev=0)"

See Contributing for more details.

Go version

The go-rewrite branch runs the backend in Go. It reads the same database and config folder as this branch, but do not run both backends against the same config at the same time.

Credits and license

This fork is licensed under AGPLv3-or-later, the same as the original project.