Back to services

SwingMusic

Swing Music is a beautiful, self-hosted music player and streaming server for your local audio files. Like a cooler Spotify ... but bring your own music.

View alternatives to SwingMusic
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Swing Music is a self-hosted music streaming server. Its official tagline is "like a cooler Spotify, but you provide the music." It turns your local music library into a streaming service with a modern interface, letting you browse and play by album, artist, folder, and more. The project is open source under the AGPL-3.0 license, with the code hosted on GitHub (swingmx/swingmusic). The author is Mungai Njoroge.

Key Features

  • Clean, polished interface: Includes a home page, album pages, artist pages, Now Playing, lyrics, favorites, and more, all with a simple, consistent design.
  • Folder browsing: Browse your library directly by the folder structure on disk, which matches how many people organize their music.
  • Recommendations and Mixes: Recommends related artists, tracks, and albums based on your listening history, and generates mix playlists. The official website marks this feature as PRO.
  • Listening statistics: Records your listening history and analyzes your personal listening habits.
  • Fuzzy search: Tolerates spelling mistakes and typos, so you can find what you want without typing the exact name.
  • Duplicate track handling: Automatically detects and hides duplicate tracks, keeping the version with the highest bitrate.
  • Collections: Groups albums, artists, and other items on a single page, working like a "playlist" for larger units.

Target Users and Use Cases

It suits users who have a large collection of local music files, want to move away from commercial streaming subscriptions, and still want a modern playback experience. For example, you can set up your own home music server, manage your music centrally on a NAS or home server, or play the same private library on multiple devices.

Installation and Deployment

One-line script (Linux or Apple Silicon Mac):

curl -fsSL http://setup.swingmx.com | bash

Docker Compose:

services:
  swingmusic:
    image: ghcr.io/swingmx/swingmusic:latest
    container_name: swingmusic
    ports:
      - "1970:1970"
    volumes:
      - /path/to/music:/music
      - /path/to/config:/config
    environment:
      - SWINGMUSIC_PORT=1970
      - SWINGMUSIC_DEVICE_NAME=Host name here
    restart: unless-stopped

The project also provides portable binaries for Linux, Windows, and macOS. The service's default port is 1970.

Notable Points

  • Open source (AGPL-3.0) and fully self-hostable, so you stay in control of your data.
  • The official website has a Pricing page, and some advanced features (such as recommendations and mixes) belong to the PRO version.
  • The project is still fairly young, and the developers say new features will keep being added in future releases.
  • Documentation and more information are available at swingmx.com.