[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5601":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":33,"discoverSource":34},5601,"librespot","librespot-org\u002Flibrespot","librespot-org","Open Source Spotify client library","",null,"Rust",6821,833,66,85,0,2,8,53,7,78.06,"MIT License",false,"dev",true,[5,27,28,29],"rust","spotify","spotify-connect","2026-06-12 04:00:25","[![Build Status](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot\u002Fworkflows\u002Fbuild\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot\u002Factions)\n[![Gitter chat](https:\u002F\u002Fbadges.gitter.im\u002Flibrespot-org\u002Flibrespot.png)](https:\u002F\u002Fgitter.im\u002Flibrespot-org\u002Fspotify-connect-resources)\n[![Crates.io](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Flibrespot.svg)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Flibrespot)\n\nCurrent maintainers are [listed on GitHub](https:\u002F\u002Fgithub.com\u002Forgs\u002Flibrespot-org\u002Fpeople).\n\n# librespot\n*librespot* is an open source client library for Spotify. It enables applications to use Spotify's service to control and play music via various backends, and to act as a Spotify Connect receiver. It is an alternative to the official and [now deprecated](https:\u002F\u002Fpyspotify.mopidy.com\u002Fen\u002Flatest\u002F#libspotify-s-deprecation) closed-source `libspotify`. Additionally, it will provide extra features which are not available in the official library.\n\n_Note: librespot only works with Spotify Premium. This will remain the case. We will not support any features to make librespot compatible with free accounts, such as limited skips and adverts._\n\n## Quick start\nWe're available on [crates.io](https:\u002F\u002Fcrates.io\u002Fcrates\u002Flibrespot) as the _librespot_ package. Simply run `cargo install librespot` to install librespot on your system. Check the wiki for more info and possible [usage options](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot\u002Fwiki\u002FOptions).\n\nAfter installation, you can run librespot from the CLI using a command such as `librespot -n \"Librespot Speaker\" -b 160` to create a speaker called _Librespot Speaker_ serving 160 kbps audio.\n\n## This fork\nAs the origin by [plietar](https:\u002F\u002Fgithub.com\u002Fplietar\u002F) is no longer actively maintained, this organisation and repository have been set up so that the project may be maintained and upgraded in the future.\n\n# Documentation\nDocumentation is currently a work in progress, contributions are welcome!\n\nThere is some brief documentation on how the protocol works in the [docs](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot\u002Ftree\u002Fmaster\u002Fdocs) folder.\n\n[COMPILING.md](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot\u002Fblob\u002Fmaster\u002FCOMPILING.md) contains detailed instructions on setting up a development environment, and compiling librespot. More general usage and compilation information is available on the [wiki](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot\u002Fwiki).\n[CONTRIBUTING.md](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md) also contains our contributing guidelines.\n\nIf you wish to learn more about how librespot works overall, the best way is to simply read the code, and ask any questions you have in our [Gitter Room](https:\u002F\u002Fgitter.im\u002Flibrespot-org\u002Fspotify-connect-resources).\n\n# Issues & Discussions\n**We have recently started using Github discussions for general questions and feature requests, as they are a more natural medium for such cases, and allow for upvoting to prioritize feature development. Check them out [here](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot\u002Fdiscussions). Bugs and issues with the underlying library should still be reported as issues.**\n\nIf you run into a bug when using librespot, please search the existing issues before opening a new one. Chances are, we've encountered it before, and have provided a resolution. If not, please open a new one, and where possible, include the backtrace librespot generates on crashing, along with anything we can use to reproduce the issue, e.g. the Spotify URI of the song that caused the crash.\n\n# Building\nA quick walkthrough of the build process is outlined below, while a detailed compilation guide can be found [here](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot\u002Fblob\u002Fmaster\u002FCOMPILING.md).\n\n## Additional Dependencies\nWe recently switched to using [Rodio](https:\u002F\u002Fgithub.com\u002Ftomaka\u002Frodio) for audio playback by default, hence for macOS and Windows, you should just be able to clone and build librespot (with the command below).\nFor Linux, you will need to run the additional commands below, depending on your distro.\n\nOn Debian\u002FUbuntu, the following command will install these dependencies:\n```shell\nsudo apt-get install build-essential libasound2-dev\n```\n\nOn Fedora systems, the following command will install these dependencies:\n```shell\nsudo dnf install alsa-lib-devel make gcc\n```\n\nlibrespot currently offers the following selection of [audio backends](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot\u002Fwiki\u002FAudio-Backends):\n```\nRodio (default)\nALSA\nGStreamer\nPortAudio\nPulseAudio\nJACK\nJACK over Rodio\nSDL\nPipe\nSubprocess\n```\nPlease check [COMPILING.md](COMPILING.md) for detailed information on TLS, audio, and discovery backend dependencies, or the [Compiling](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot\u002Fwiki\u002FCompiling#general-dependencies) entry on the wiki for additional backend specific dependencies.\n\nOnce you've installed the dependencies and cloned this repository you can build *librespot* with the default features using Cargo.\n```shell\ncargo build --release\n```\n\nBy default, this builds with native-tls (system TLS), rodio audio backend, and libmdns discovery. See [COMPILING.md](COMPILING.md) for information on selecting different TLS, audio, and discovery backends.\n\n# Packages\n\nlibrespot is also available via official package system on various operating systems such as Linux, FreeBSD, NetBSD. [Repology](https:\u002F\u002Frepology.org\u002Fproject\u002Flibrespot\u002Fversions) offers a good overview.\n\n[![Packaging status](https:\u002F\u002Frepology.org\u002Fbadge\u002Fvertical-allrepos\u002Flibrespot.svg)](https:\u002F\u002Frepology.org\u002Fproject\u002Flibrespot\u002Fversions)\n\n## Usage\nA sample program implementing a headless Spotify Connect receiver is provided.\nOnce you've built *librespot*, run it using :\n```shell\ntarget\u002Frelease\u002Flibrespot --name DEVICENAME\n```\n\nThe above is a minimal example. Here is a more fully fledged one:\n```shell\ntarget\u002Frelease\u002Flibrespot -n \"Librespot\" -b 320 -c .\u002Fcache --enable-volume-normalisation --initial-volume 75 --device-type avr\n```\nThe above command will create a receiver named ```Librespot```, with bitrate set to 320 kbps, initial volume at 75%, with volume normalisation enabled, and the device displayed in the app as an Audio\u002FVideo Receiver. A folder named ```cache``` will be created\u002Fused in the current directory, and be used to cache audio data and credentials.\n\nA full list of runtime options is available [here](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot\u002Fwiki\u002FOptions).\n\n_Please Note: When using the cache feature, an authentication blob is stored for your account in the cache directory. For security purposes, we recommend that you set directory permissions on the cache directory to `700`._\n\n## Contact\nCome and hang out on gitter if you need help or want to offer some:\nhttps:\u002F\u002Fgitter.im\u002Flibrespot-org\u002Fspotify-connect-resources\n\n## Disclaimer\nUsing this code to connect to Spotify's API is probably forbidden by them.\nUse at your own risk.\n\n## License\nEverything in this repository is licensed under the MIT license.\n\n## Related Projects\nThis is a non exhaustive list of projects that either use or have modified librespot. If you'd like to include yours, submit a PR.\n\n- [librespot-golang](https:\u002F\u002Fgithub.com\u002Flibrespot-org\u002Flibrespot-golang) - A golang port of librespot.\n- [plugin.audio.spotify](https:\u002F\u002Fgithub.com\u002Fmarcelveldt\u002Fplugin.audio.spotify) - A Kodi plugin for Spotify.\n- [raspotify](https:\u002F\u002Fgithub.com\u002Fdtcooper\u002Fraspotify) - A Spotify Connect client that mostly Just Works™\n- [Spotifyd](https:\u002F\u002Fgithub.com\u002FSpotifyd\u002Fspotifyd) - A stripped down librespot UNIX daemon.\n- [rpi-audio-receiver](https:\u002F\u002Fgithub.com\u002Fnicokaiser\u002Frpi-audio-receiver) - easy Raspbian install scripts for Spotifyd, Bluetooth, Shairport and other audio receivers\n- [Spotcontrol](https:\u002F\u002Fgithub.com\u002Fbadfortrains\u002Fspotcontrol) - A golang implementation of a Spotify Connect controller. No Playback functionality.\n- [librespot-java](https:\u002F\u002Fgithub.com\u002Fdevgianlu\u002Flibrespot-java) - A Java port of librespot.\n- [ncspot](https:\u002F\u002Fgithub.com\u002Fhrkfdn\u002Fncspot) - Cross-platform ncurses Spotify client.\n- [ansible-role-librespot](https:\u002F\u002Fgithub.com\u002FxMordax\u002Fansible-role-librespot\u002Ftree\u002Fmaster) - Ansible role that will build, install and configure Librespot.\n- [Spot](https:\u002F\u002Fgithub.com\u002Fxou816\u002Fspot) - Gtk\u002FRust native Spotify client for the GNOME desktop.\n- [Snapcast](https:\u002F\u002Fgithub.com\u002Fbadaix\u002Fsnapcast) - synchronised multi-room audio player that uses librespot as its source for Spotify content\n- [MuPiBox](https:\u002F\u002Fmupibox.de\u002F) - Portable music box for Spotify and local media based on Raspberry Pi. Operated via touchscreen. Suitable for children and older people.\n- [RoPieee](https:\u002F\u002Fropieee.org) - An easy-to-use Raspberry Pi image for network audio streaming solutions.\n","librespot 是一个开源的 Spotify 客户端库，使用 Rust 语言编写。它允许应用程序通过多种后端控制和播放 Spotify 音乐，并可作为 Spotify Connect 接收器。该项目提供了比官方已弃用的 libspotify 更多的功能，并且仅支持 Spotify Premium 账户。适合需要集成 Spotify 服务的应用场景，如音乐播放器、智能家居设备等。由于其开源特性，开发者可以自由地对其进行扩展和定制以满足特定需求。","2026-06-11 03:04:19","top_language"]