mrkeyoor.comAsk

librespot-org/librespottested 30 Aug 2026commit 1599145

librespot review

Librespot is worth evaluating for a personal Spotify Connect receiver or a Rust application that needs Spotify playback, provided Spotify Premium and unofficial access are acceptable.

  • Build 107 s
  • Tests pass
27 sto install
  • 322 packages
Self-Hostedevaluationupdated 26 Oct 2026
+7stars / 7d

Librespot is an open source Spotify client library written in Rust, with a command-line player that can act as a Spotify Connect receiver. The README describes it as an alternative to the deprecated closed-source libspotify. Spotify Premium is required. Our recorded build succeeded, but the run did not establish that authentication, discovery or playback worked.

Verdict

Librespot is worth evaluating for a personal Spotify Connect receiver or a Rust application that needs Spotify playback, provided Spotify Premium and unofficial access are acceptable. In our August 30, 2026 run at commit 1599145, dependency download took 27 seconds and the build succeeded in 107 seconds. The successful test command did not verify playback; its visible sections ran no tests, and the repeated summaries prevent an exhaustive coverage claim. Choose spotifyd for a UNIX daemon or Raspotify for a supported headless Debian service. Before committing to Librespot itself, verify your authentication path, discovery and audio output on the target device.

We ran it

Lab card: what happened when we ran librespot
Lab card from our sandbox run
Screenshot of librespot (github.com/librespot-org/librespot)
github.com/librespot-org/librespot
Install✓ · 27s322 packages
Build✓ · 107s
Tests✓ · 21s0 passed · 0 failed of 0 (cargo test)
Repo664 files~29,962 lines of source · 1.6 MB · 5 CI workflows

Answers from our run

Does librespot build from source?

Dependencies installed in 27 seconds (322 packages), and the build succeeded in 107 seconds. We cloned commit 1599145 into a clean Debian container with 3 CPUs and no project-specific setup.

Do librespot's tests pass?

Yes. The project's own test command finished in 21 seconds and reported 0 passed, 0 failed (cargo test).

Who should not use librespot?

Spotify Free users: the README explicitly excludes free-account support.

What are the alternatives to librespot?

spotifyd, Raspotify. Librespot is worth evaluating for a personal Spotify Connect receiver or a Rust application that needs Spotify playback, provided Spotify Premium and unofficial access are acceptable.

Setup3/5On August 30, 2026, commit 1599145 built successfully in 107 seconds. The compilation guide specifies backend dependencies; installed-CLI, authentication and audio checks are absent from the run.
Docs3/5The compilation guide gives concrete audio and TLS dependencies, while the README explicitly describes documentation as a work in progress.
Community3/5Issue 1737 contains maintainer clarification and an August 27, 2026 reporter follow-up. This supports evidence of engagement, without measuring adoption or typical response times.
Maturity3/5The v0.8.0 notes document features and breaking API changes, while issue 1737 demonstrates authentication maintenance. Playback endurance was not measured.

Discussed on

  1. hnLibrespot, an open-source library for Spotify, written in Rust5 points
  2. hnOpen Source Spotify client library3 points
  3. hnLibrespot: Open-source Spotify client library now support dithering3 points

Who it’s for

Rust developers who want to embed Spotify playback or a Spotify Connect receiver.
People building a personal headless receiver who can configure its audio backend and maintain it.
Spotify Premium users who accept the project's warning about unofficial access to Spotify.

Who it’s NOT for

Spotify Free users: the README explicitly excludes free-account support.
Organizations requiring an officially authorized integration: the README warns that connecting to Spotify's API this way is probably forbidden by Spotify.
People who need verified playback reliability before choosing a receiver: our recorded run covered dependency download, compilation and a test command, without a playback workload.
Embedders who cannot maintain authentication code: issue 1737 documents an access-token playback failure and later reports alternative authentication methods, rather than establishing that every login path is broken.

Setup reality

In our recorded run on August 30, 2026, at commit 1599145bf2c98660d35b17817b3386767a7e4b42, the dependency-download step succeeded in 27 seconds, with 322 dependencies recorded. The build step succeeded in 107 seconds. This does not establish that the CLI was installed or checked as an installed binary.

The Cargo test command exited successfully in 21 seconds. The visible root-library, root-binary and documentation-test sections each say running 0 tests. The stored parser also records 0 passed, 0 failed and 0 total, but its output repeats summaries and its unique, exhaustive counts are unverified. These results do not establish repository-wide test coverage or playback reliability.

The recorded environment was 3 CPUs, 12 GB of memory and image lab-rust:1. The image label does not establish the operating system or actual Rust version. The compilation guide requires Rust, a C compiler and development libraries for the selected audio backend. Debian/Ubuntu's default Rodio path uses libasound2-dev; native TLS also needs libssl-dev and pkg-config.

The README says cached credentials include an authentication blob and recommends directory permissions of 700. The detector recorded no Dockerfile, but that is not proof that the repository has no container configuration: the v0.8.0 release notes explicitly mention contrib/Dockerfile.

A Spotify Connect foundation that still needs device validation

Librespot can supply the playback engine for a personal Spotify Connect receiver. Our recorded run establishes a narrower result: the measured checkout compiled successfully. It does not establish a working speaker.

The README describes an open source Spotify client library that lets applications control and play music through several backends and act as a Spotify Connect receiver. It also provides a command-line player. This makes it relevant both to Rust developers embedding playback and to people configuring a headless receiver.

Spotify Premium is required. The maintainers explicitly say they will not add the advertising and skip restrictions needed for free accounts. They also warn that using this code to connect to Spotify's API is probably forbidden by Spotify. Treat that as the project's warning, rather than an authorization or a legal conclusion from this review.

What our recorded run establishes

Our run was recorded on August 30, 2026, at commit 1599145bf2c98660d35b17817b3386767a7e4b42, whose recorded commit date is August 22, 2026. The environment record specifies 3 CPUs, 12 GB of memory and image lab-rust:1. It does not independently establish a Debian environment, an unprivileged container or the actual toolchain version.

The dependency-download step succeeded in 27 seconds. The stored dependency count is 322, and the visible output contains downloaded Rust crates. Calling this an installation of the Librespot CLI would overstate the evidence: there is no installed-binary check in the supplied run.

The build step succeeded in 107 seconds. Its output identifies Librespot v0.8.0 and a development-profile build with debug information. The compiler's final line reports 1 minute 36 seconds, while 107 seconds is the recorded duration of the whole build step. Neither figure is a release-build or playback benchmark.

The Cargo test command exited successfully in 21 seconds. Before the replayed summaries, the visible output names root-library tests, root-binary tests and documentation tests; each section says running 0 tests. The historical parser stores 0 passed, 0 failed and 0 total, plus six suites. However, the supplied count warning says summaries were repeated and unique, exhaustive counts were not verified. We therefore do not present those aggregates as a repository-wide test inventory or six independently executed suites.

The checkout measurements remain 664 files, about 29,962 source lines and 1.6 MB. Detection recorded five CI workflows, no tests directory, no Dockerfile, no Compose file and no workspace. These are detector results, not guarantees about repository structure. In particular, the v0.8.0 release notes mention contrib/Dockerfile, so the Dockerfile flag cannot support a blanket claim that container configuration is absent.

The supplied run contains no account authentication, Connect discovery, audio-output validation, endurance workload or installed-CLI check. It also contains no audit result. A successful build and test-command exit leave those questions unanswered.

Setup depends on the chosen backends

The README lists Rodio as the default audio backend, alongside ALSA, GStreamer, PortAudio, PulseAudio, JACK, JACK over Rodio, SDL, pipe and subprocess output. These are documented options, not output paths exercised in our run.

The compilation guide requires Rust, a C compiler and development libraries for the audio backends you select. On Debian/Ubuntu, the README names build-essential and libasound2-dev for the default path. The guide adds libssl-dev and pkg-config for native TLS. Other audio backends have their own dependencies.

The documented defaults are native TLS, Rodio audio and libmdns discovery. Native TLS and rustls are mutually exclusive, and at least one TLS backend is required. The guide describes rustls options using system certificate roots or compiled Mozilla roots. Record the Cargo features used for your device so that later builds reproduce the intended audio, discovery and certificate choices.

The README's fuller receiver example describes 320 kbps audio, initial volume, normalization, receiver type and a cache directory. These are configuration capabilities, not measured sound quality or throughput. When caching is enabled, the README says an authentication blob is stored and recommends permissions of 700 on the cache directory. Account for those credentials when handling backups and shared volumes.

Authentication reports need their follow-up

Issue 1737 reports that a program similar to play.rs, using an externally supplied access token, stopped loading audio with INVALID_CREDENTIALS after August 10, 2026. The supplied log first shows session authentication succeeding and later shows a playback authorization failure. Describing the whole sequence as a universal login failure would lose that distinction.

The discussion also contains material follow-up. On August 17, a maintainer said third-party access keys still worked for the Spotify Web API, while access to private endpoints used for playback had been closed off. On August 27, the reporter described two newly documented methods: obtaining a token with the desktop client ID and using the device authorization flow. The reporter said the latter worked for their use case.

That is evidence of an affected authentication path and a reported working alternative. It does not establish that all authentication is broken, that every deployment is fixed, or that our measured checkout exercised either method. Verify the exact flow your application will use.

Choose the library or a packaged receiver

spotifyd describes itself as an open source Spotify client running as a UNIX daemon. It supports Spotify Connect so official clients can control it, and it requires Premium. It is relevant when the daemon is the product you need, rather than an embeddable library.

Raspotify packages librespot as a systemd daemon for headless Debian Stable systems. Its supplied README identifies Debian 13 "Trixie" and warns that compatibility with other Debian-based systems varies. It explicitly excludes ARMv6 Raspberry Pi models, including Pi v1 and Pi Zero v1.x. Choose it for its packaging and service role only after checking the target system and architecture; this review did not test its installer.

The v0.8.0 release notes document device aliases, breaking API changes and local-file playback. Local-file support has stated limits: files must be sampled at 44,100 Hz, and Connect playback requires adding them to a playlist other than the dedicated Local Files playlist. Those notes do not turn Librespot into a general-purpose local music server or establish compatibility for an application embedding its API.

How to read the scores

These are editorial ratings, not benchmark results. The scale is 1 for substantial documented barriers, 2 for a constrained fit, 3 for a usable starting point with material work or uncertainty, 4 for strong supporting evidence with limited reservations, and 5 for unusually complete evidence within the reviewed scope. Missing adoption or runtime evidence earns no extra credit.

Setup is 3/5 because compilation succeeded but backend configuration and runtime validation remain. Documentation is 3/5 because the setup guide gives concrete dependencies while the README calls documentation a work in progress. Community is 3/5 because the supplied issue discussion contains maintainer responses and a reporter's follow-up, without establishing adoption or a general response-time record. Maturity is 3/5 because documented releases and integrations coexist with breaking API changes and authentication maintenance; our run supplies no endurance evidence.

For a personal receiver, start by deciding whether you need to embed the library or simply run a daemon. If you choose Librespot, the next useful check is an authenticated playback session on the target device, followed by discovery and reconnection checks. Those steps address the evidence gap left by our successful compilation.

Alternatives

ProjectWhat it isPick it when
spotifydAn open source Spotify client running as a UNIX daemon, with Spotify Connect support.Choose it when you want a daemon controlled from official Spotify clients rather than a library to embed. Its README also requires Spotify Premium.
RaspotifyA Debian package that wraps librespot as a systemd daemon for headless use.Choose it when you want a packaged headless service on a supported Debian Stable system. Check its supported architecture first: its README excludes ARMv6 Raspberry Pi models.

What people are saying

  1. [github-trending] librespot-org/librespot

Sources

  1. Librespot README
  2. Librespot repository
  3. Librespot compilation guide
  4. Librespot v0.8.0 release
  5. IPv4-only discovery issue
  6. Access-token example issue
  7. Long-running playback issue

More self-hosted reviews