librespot is an open source client library for Spotify that enables applications to control and play music through Spotify's service and act as a Spotify Connect receiver.
The library solves the problem of accessing Spotify's functionality without relying on the official libspotify, which is now deprecated and closed-source. librespot implements the Spotify protocol to provide programmatic access to music playback and device control. Applications can use it as a backend to create custom Spotify clients or integrate Spotify playback into existing systems. The tool supports multiple audio backends and can function as a Spotify Connect receiver, allowing remote control of playback from other Spotify applications.
Developers should choose librespot if they need to build Spotify-integrated applications or create custom Spotify Connect devices. It suits projects requiring headless music playback, embedded systems, or alternative client implementations. The library requires a Spotify Premium account; it does not support free tier accounts with limited skips or advertisements, and this limitation is intentional. The project is available as a Rust crate installable via cargo, making integration straightforward for Rust-based projects. The README positions it as an alternative to the deprecated official library and notes it will provide features unavailable in that library.
Development is community-maintained following the original author's move away from active maintenance. Documentation remains a work in progress with contributions welcomed. The project uses GitHub Discussions for feature requests and general questions alongside traditional issue tracking for bug reports. Detailed compilation instructions and contributing guidelines are provided to support developer participation. The maintainers encourage learning about the implementation by reading the code directly and asking questions in the project's communication channels.