Skip to content
F1ammettaPublic

About

Self-hosted OpenSubsonic music server: local analysis, sonic similarity, self-maintaining playlists. Symfonium-ready.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Soncore

CI Release Container License: AGPL-3.0

A self-hosted music server that actually listens.

Soncore is a single-binary, OpenSubsonic-compatible music server. It analyses every track on the machine that serves it — tempo, key, loudness, timbre and a semantic audio embedding — then uses what you play to build similar-track radio and playlists that maintain themselves. Works with Symfonium, Feishin and any Subsonic client.

Soncore home: a prompt for what to hear, self-maintaining For You shelves, and a continue-listening card

Highlights

  • Local-first. One binary, SQLite, no cloud, nothing leaves your network. systemd is the primary path; a Dockerfile is included for container-only homelabs.
  • Sonic similarity. CLAP embeddings plus hand-crafted DSP features, not just tags.
  • Playlists that keep themselves. For You mixes, On Repeat, Fresh Finds, Rediscover, genre anchors and semantic presets — each with a reason, a cover, readonly and a validUntil hint.
  • Harmonic vibe mixing. Describe a mood; preview the ordered set; publish it as a real Subsonic playlist with its own refresh cadence.
  • Analysis, not metadata. BPM, Camelot key, LUFS, energy, brightness and vocal presence for every track, computed locally.
  • Synced lyrics. Embedded tags, .lrc sidecars, LRCLIB, NetEase and QQ.
  • Multi-user. Separate histories, recommendations and Last.fm scrobbling per account.
  • OpenSubsonic 1.16.1. JSON and XML, token/legacy/API-key/basic auth.

A look inside

Now playing with synced lyrics Acoustic map of the library with cluster regions, labels and explained variance
Smart mix editor with harmonic ordering and per-transition key and tempo Track analysis: tempo, key, loudness, similarity components and nearest neighbours
Playlists with composed 2x2 covers Library album grid

Soncore on a phone: home   Soncore on a phone: now playing with lyrics   Soncore on a phone: acoustic map with cluster regions and labels   Soncore on a phone: library

Install

Download a release binary (linux amd64/arm64) or build from source:

make build-embed   # Go + Rust + ONNX Runtime
make models        # optional CLAP weights, checksum-pinned
sudo install -m0755 bin/soncore /usr/local/bin/

Or pull the multi-arch image (linux amd64/arm64), then run it with Compose:

docker pull ghcr.io/f1ammetta/soncore:latest

cp deploy/docker.env.example .env   # music path + first-start admin password
docker compose pull && docker compose up -d

latest follows releases; edge follows main; release tags such as 0.1.5 are available too (SONCORE_VERSION in .env). The image carries its own libc, so it also works on hosts older than the release baseline. To build from source, uncomment the build: block in compose.yml and run docker compose up -d --build.

Set SONCORE_MUSIC_DIR, SONCORE_DATA_DIR and SONCORE_SECRET_KEY, then run it under systemd. Requirements: Linux, ffmpeg/ffprobe, Go 1.26+ (Rust for the compute plane). Binaries built from this tree target glibc 2.39 or newer (Ubuntu 24.04+, Debian 13+). If a downloaded binary asks for a newer glibc, use the container or build from source.

Full guide: docs/INSTALL.md. Environment reference: docs/CONFIGURATION.md.

Clients

Symfonium is the reference client; Feishin and any Subsonic/OpenSubsonic client work. The Svelte UI is embedded in the binary, so the browser is a first-class client too.

Known client quirks

Subsonic is pull-only: the server cannot push a “playlist created” event. Existing playlists are rewritten in place, but a new playlist may not appear in a client until that client refreshes its playlist list or restarts. This is client-side behaviour (Symfonium included), not a server bug; the embedded web UI shows new playlists immediately.

Opus, APE and WavPack files are indexed and streamed, but the current Rust decoder does not analyse them, so they are absent from similarity and the acoustic map until the ffmpeg fallback lands. Completion/skip telemetry also depends on what the client reports. Details and workarounds: docs/CLIENT-QUIRKS.md.

Documentation

Install build flavours, models, Docker, systemd, NGINX
Configuration environment, secrets, Last.fm
API OpenSubsonic and /api surface
Architecture topology, analysis, discovery
Development milestones, verification, next steps
Decisions architecture decision records
Web UI design and implemented pages
Client quirks playlist sync, formats, scrobbles
Backlog deferred work
PROJECT.md the complete project in one document

Status

M1–M4 are complete and running against a 1,931-track reference library, now including the acoustic map. Remaining work is polish and the roadmap in docs/BACKLOG.md. Details: docs/DEVELOPMENT.md.

Contributing

Day-to-day work lands on the develop integration branch; main is the release branch. Short-lived topic branches are optional for isolated work; develop is merged into main for a release or a coherent milestone. See CONTRIBUTING.md. Commits are signed off under the DCO.

License

AGPL-3.0. Self-host and modify freely; a modified network service must offer its source. The CLAP weights are Apache-2.0 data, downloaded at install time rather than bundled. Third-party notices: THIRD_PARTY.md.

Website: https://soncore.net

About

Self-hosted OpenSubsonic music server: local analysis, sonic similarity, self-maintaining playlists. Symfonium-ready.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages