Psychotoxical 9509b78073 fix(library): sort albums by the artist the row actually shows (#1217) (#1292)
* fix(library): sort albums by the artist the row actually shows (#1217)

The album browse ordered by MAX(t.artist) -- the raw track artist -- while the
row mappers derive the displayed artist with pick_album_group_artist, which
prefers the album artist. On an album with featured guests the two differ
("Alpha feat. Zulu" vs "Alpha"), so the album sorted under a name the user never
sees and fell out of its artist's year run, sometimes landing behind an entirely
different artist.

Order by the same rule the row displays, via a shared SQL expression
(sql_display_artist_from) that both query shapes feed their own columns into:
aggregates for the grouped album browse, projected columns for the multi-library
dedup path.

That dedup path used to build its ORDER BY by string-replacing MAX(t.x) out of
the grouped SQL, which only held while every sort key was a bare aggregate and
would have silently mangled the new expression -- it now builds directly from
its own columns.

Regression test uses a featured-guest album and a second artist that sorts
between the two spellings; it fails against the old expression (album lands
last) and passes with the fix.

* docs(changelog): add entry for PR #1292

* fix(library): bind the album sort to the album aggregates in the scoped browse

The scoped browse (scope_merge) feeds the same ORDER BY into three query shapes.
Two of them GROUP BY t.album_id and selected the sort columns unaliased, so
`artist` / `album_artist` in the ORDER BY resolved to bare table columns -- taken
from an arbitrary row of the group -- rather than to the MAX() aggregates the row
mapper reads. The featured-guest defect (#1217) therefore survived on that path:
sorting could still key on a track credit ("Alpha feat. Zulu") instead of the
album artist.

Alias the sort columns so the ORDER BY binds to the aggregates. Adds a scoped
regression test that fails against the previous expression (featured album lands
behind a different artist) and passes now.

* fix(library): give the scoped GROUP BY browse its own album sort key

Review F1. The scoped browse ran `GROUP BY t.album_id` but received the
dedup shape's ORDER BY, whose display-artist key is a CASE over bare
`artist` / `album_artist`.

SQLite substitutes a result alias into ORDER BY only when the whole term
is a plain identifier: `ORDER BY artist COLLATE NOCASE` does bind to
`MAX(t.artist) AS artist`, but the same name inside a CASE resolves
against `track` instead — and a bare column in a grouped query is read
from an arbitrary row of the group. Aliasing the select list, the first
attempt at this, therefore never fixed the CASE form: an album whose
tracks carry `album_artist` unevenly sorted under whichever row SQLite
happened to pick. Verified both halves against SQLite directly.

Split the parameter: the two `GROUP BY t.album_id` branches now take a
grouped key (aggregates inside the CASE), and only the dedup subquery,
which really does project plain columns, takes the deduped one. The
genre and scope-list callers pass plain-identifier keys, which alias-
resolve correctly in either shape, so they hand the same string to both.

Tests (F2, F3):
- Deterministic guard on the grouped key — no bare column may survive in
  it. The behavioural tests can pass by luck when the arbitrary row is a
  favourable one; this one cannot.
- Multi-track album with a sparse `album_artist`, the shape the previous
  single-track tests could not reach.
- SQL/Rust parity for the aggregate form of the display-artist rule,
  over multi-row groups, guarding drift from `pick_album_group_artist`.
2026-07-15 10:48:40 +02:00
2026-06-28 23:20:22 +02:00

Psysonic Logo

A modern desktop client for self-hosted music libraries

Fast. Native. Beautiful. Built for people who actually care about their music collection.

Psysonic is built primarily for Navidrome and also works with Gonic, Airsonic, LMS and other Subsonic-compatible servers, depending on the features supported by your server.


Latest Release GitHub Stars License GPLv3 Tauri v2

Discord Community Telegram Community Support Psysonic on Ko-fi

AUR psysonic AUR psysonic-bin Cachix WinGet psysonic



Available languages: English, German, Spanish, French, Norwegian Bokmål, Dutch, Romanian, Russian, Chinese, Japanese, Hungarian and Polish.

More translations are added over time.

No telemetry • Native performance • Navidrome-first • Community driven


Psysonic Screenshot


What is Psysonic?

Psysonic is a desktop music client for self-hosted music libraries. It is designed for people who want the freedom of their own server without giving up the comfort, polish and speed of a modern music app.

It is built with Rust, Tauri v2 and React, with a strong focus on responsiveness, customization, practical music-library workflows and a user interface that does not require a manual before you can press play.

Psysonic is optimized first and foremost for Navidrome, and it leans into that on purpose: instead of being one more generic Subsonic client, it is the Navidrome-first desktop client that does things no other client does. Other Subsonic-compatible servers can work well too, but advanced features may depend on server-side support.


Key Features

These are the things that set Psysonic apart. To our knowledge, no comparable self-hosted desktop client ships them.

🪐 Orbit — Shared Listening

Listen together, in sync, over your own server.

Orbit brings real-time synchronized group listening into Psysonic. Start a session, invite people with a link, and everyone hears the same thing at the same time — with host-controlled playback, a shared queue and guest song suggestions.

The clever part: Orbit rides entirely on your own Navidrome. There is no external relay, no third-party service and no extra accounts. The session lives on your server, where it belongs. It is built for real-world music sharing without turning your self-hosted setup into a social-media circus.

Orbit shared listening

Local Library — Instant, and Almost Offline

A local index of your whole collection, so the app stays fast no matter what your connection does.

Psysonic keeps a local library of your collection's metadata right on your machine. Because the app already knows your tracks inside out, browsing, searching and starting playback are instant — even a 500 MB FLAC starts the moment you hit play, because nothing has to be fetched or parsed first.

It also means the connection to your server stops being a bottleneck. Even on a slow, flaky or distant link, Psysonic stays responsive and behaves almost like an offline player, whatever the network is doing.

And it's the foundation everything else is built on: the local library is what makes on-device analysis, smart audio and snappy navigation possible in the first place.

🧠 On-Device Audio Analysis

One of the most powerful things Psysonic does — entirely on your own machine.

Built on top of the local library, Psysonic analyzes your tracks locally — loudness, waveform and tempo — with no cloud service and no required server-side plugin. That analysis is what powers content-aware AutoDJ transitions, LUFS-based loudness normalization and playback-speed control.

This is a deep, genuinely useful layer that most clients simply don't have, and because it runs locally, it works exactly the same whether you're fully online or barely connected.

🎧 AutoDJ — Content-Aware Crossfade

A DJ that listens to the music, not a stopwatch.

Most players do fixed-time crossfade: blend the last N seconds into the next N seconds, dead air and all. AutoDJ uses Psysonic's own audio analysis to trim the silence at the edges of a track and blend out of the actual music — for transitions that sound deliberate instead of mechanical. It is a standalone playback mode with smooth skip/interrupt handling and a configurable overlap.

🔗 Navidrome-Native, Deeply

Not a generic Subsonic client wearing a Navidrome hat.

Psysonic binds Navidrome's native capabilities directly: server-side smart-playlist create/edit, playback reporting and OpenSubsonic capability probing. Most clients in this space stay Subsonic-generic. Psysonic goes deeper, so Navidrome users get the features their server can actually deliver.

🎨 Community Theme Store

A real marketplace for themes — installable and schedulable.

Beyond a big set of built-in themes, Psysonic has a first-party theme registry: browse community themes, install them in-app, and let the Theme Scheduler switch looks automatically between day and night.


Built to be trusted

We take an enterprise-grade approach to development — continuously improving our automated testing and maintaining strict contracts between the backend and the frontend. Releases are cut from green CI, not vibes.


More Highlights

Features that go well beyond the basics. Not all of these are unique to Psysonic, but few clients bring this many together.

Audio & Loudness

  • LUFS-based Smart Loudness Normalization
  • ReplayGain support and loudness-aware playback
  • 10-band Equalizer with presets
  • AutoEQ headphone correction
  • Per-device EQ and output optimization
  • Adjustable playback speed

Lyrics & Listening

  • Synced lyrics with seek support, from multiple providers (YouLy+, LRCLIB, NetEase)
  • Auto-scrolling sidebar lyrics and a fullscreen lyric mode
  • Last.fm scrobbling, similar artists, loved tracks and listening stats
  • Smart Radio sessions and an Infinite Queue
  • AudioMuse-AI support for sonic-similarity discovery (requires an AudioMuse-AI server)

Artwork & Visuals

  • Optional external artist imagery via fanart.tv — opt-in, shown on the artist page, fullscreen player and home hero (Navidrome stays the canonical cover-art source)
  • Cover art surfaced across the app, OS media controls and Discord Rich Presence

Library & Playlists

  • Smart Playlists
  • Drag & drop playlist management
  • Multi-select bulk actions

Sharing

  • Magic Strings sharing for albums, artists and queues
  • Navidrome user-management helpers for fast account sharing

Offline, Sync & Deployment

  • Offline playback and downloads
  • USB / portable sync
  • LAN / remote auto-switching
  • Custom HTTP headers for reverse-proxy-gated servers (e.g. Cloudflare Access, Pangolin)
  • Backup and restore settings
  • In-app auto updater

Personalization & Accessibility

  • Font customization and zoom controls
  • Keybind remapping
  • Colorblind-friendly theme options
  • Keyboard-friendly navigation

Power-User Extras

  • CLI controls

The Basics, Done Right

The things you simply expect from a serious music player — and Psysonic does them well.

  • Gapless playback and crossfade
  • Fast search across large libraries
  • Browse albums, artists, tracks and genres
  • Ratings
  • Queue management
  • Keyboard navigation
  • Media key support
  • Low memory usage and native performance compared to heavy web-first clients
  • Built for large self-hosted collections

Platforms

OS Support
Windows Native installer / WinGet
macOS Signed DMG
Linux AppImage / DEB / RPM / AUR (psysonic, psysonic-bin) / NixOS

Install

Linux

curl -fsSL https://raw.githubusercontent.com/Psychotoxical/psysonic/main/scripts/install.sh | sudo bash

Linux builds are also available through GitHub Releases, AUR and Cachix/Nix.

AppImage runs under X11/XWayland — it pins GDK_BACKEND=x11 for a stable WebKitGTK stack. For a native-Wayland launch, use the .deb, .rpm, AUR, or Nix packages, which follow your session's display server.

Windows

Download the latest installer from the GitHub Releases.
or,
install via Windows Package Manager (WinGet):

winget install Psysonic

You can also browse and install it on winstall.app.

macOS

Download the signed DMG from the GitHub Releases.


Development

Contributor expectations (PRs, CI, Tauri boundary, UI): CONTRIBUTING.md.

git clone https://github.com/Psychotoxical/psysonic.git
cd psysonic
npm install
npm run tauri:dev

Build release:

npm run tauri:build

Privacy

Psysonic is built for self-hosted music collections. Your library is yours.

  • No telemetry
  • No spyware nonsense
  • No analytics harvesting
  • No hidden tracking

See TELEMETRY.md for the telemetry stance and PRIVACY.md for how each opt-in integration handles data.


Reviews


Community & Support

Join the community, report bugs, suggest features, share themes and help shape the future of Psysonic.


License

Psysonic is licensed under the GNU GPL v3.0.


Forks and Attribution

Psysonic is free and open-source software under the GPLv3. You are welcome to fork it, modify it and build upon it under the terms of the license.

If you publish a modified or rebranded version, please make it clear that your project is based on Psysonic and preserve proper attribution to the original project.

That is not about preventing forks. Forks are part of open source. It is about being honest with users and contributors about where the work comes from.

Features, design work and implementation ideas developed in Psysonic should not be presented as unrelated original work in downstream projects.


Own your music. Enjoy the client too.

Psysonic brings a modern desktop experience to self-hosted music libraries.

Languages
TypeScript 69.9%
Rust 24.9%
CSS 4.3%
JavaScript 0.5%
Shell 0.3%