spotifast README

The project's README from github.com/crmne/spotifast. As one markdown file: README.md.

Fastpotify

Spotify, native and fast. Fastpotify is a Spotify client written in Rust with egui. It plays music through librespot. It typically uses 100–250 MB of RAM, while Spotify's desktop app often uses 600 MB to over 1 GB. It runs on Linux, macOS, and Windows, starts in well under a second, and has no browser engine.

Playback needs Spotify Premium. Free accounts can browse and search, but cannot play music through Fastpotify on this computer or another device.

Fastpotify Home with the playlist library, recommendations, queue, and player visible

See fastpotify.rocks for installation, setup, everyday use, and connection details.

What it does

Install

On Arch Linux, Fastpotify is in the AUR:

yay -S fastpotify-bin      # the released build, ready made
yay -S fastpotify          # the release, built from source
yay -S fastpotify-git      # built from the latest commit

On macOS, with Homebrew:

brew install --cask crmne/tap/fastpotify

Everywhere else, build the single binary with Rust 1.95 or newer:

cargo install --path . --locked

MilkDrop uses libprojectM, which is built from source. This needs CMake, a C++ compiler, and libclang. To build without MilkDrop or those tools, run cargo install --path . --locked --no-default-features. On Linux, you also need the development packages for ALSA, PulseAudio or PipeWire, and the windowing libraries. On Arch:

sudo pacman -S --needed alsa-lib libpulse libxkbcommon wayland cmake clang

and on Debian or Ubuntu:

sudo apt install libasound2-dev libpulse-dev libxkbcommon-dev libwayland-dev \
  cmake clang libclang-dev

and on Fedora:

sudo dnf install alsa-lib-devel pulseaudio-libs-devel libxkbcommon-devel \
  wayland-devel cmake clang libclang-devel

On Windows, libprojectM is built with Visual Studio 2022, CMake, LLVM, and vcpkg (vcpkg install glew:x64-windows-static, with VCPKG_INSTALLATION_ROOT pointing at the vcpkg folder).

With Nix, nix develop provides all of it, along with the exact toolchain rust-toolchain.toml pins.

On macOS, the flake also exposes packages.<system>.fastpotify-app, an ad-hoc signed Fastpotify.app bundle for the Dock, Launch Services, and spotify: links. With nix-darwin, add it to environment.systemPackages and link "/Applications" through environment.pathsToLink; with Home Manager, home.packages is enough, as its darwin support links the bundle into ~/Applications.

Fastpotify uses system fonts for scripts not covered by its interface font, including Chinese, Japanese, Korean, Arabic, Hebrew, Thai, and Indic scripts. On macOS it draws each of them with the face the system itself uses, in the language order set in System Settings, so Chinese titles follow the Traditional or Simplified preference set there. Windows includes common fonts. On Linux, install noto-fonts and noto-fonts-cjk (Arch) or fonts-noto and fonts-noto-cjk (Debian or Ubuntu) if titles appear as empty boxes.

A desktop entry is provided in packaging/applications/fastpotify.desktop. It registers Fastpotify for spotify: links; xdg-mime default fastpotify.desktop x-scheme-handler/spotify makes it the one the desktop uses when another Spotify client is installed too.

Sign in

Press Sign in with Spotify. Your browser opens Spotify's consent page (Authorization Code with PKCE), so Fastpotify never sees your password. The app keeps its grants in the system credential store: Secret Service on Linux, Keychain on macOS, and Credential Manager on Windows. You usually sign in once per machine. If the store is unavailable or locked, a new sign-in works for this session and Fastpotify explains that it could not save it.

Playing music on this computer needs a second, one-time browser approval. Spotify handles streaming separately from library access. Start it from the device menu (Set up playback here) or Settings. It needs Spotify Premium. Its reusable credential uses the same protected storage, independently of the two Web API grants.

Existing token files migrate after the protected write has been read back successfully. A failed migration keeps the original for recovery and reports an error. Sign-out removes shared, personal, and playback grants, including legacy files and pending writes. Non-secret revocation markers prevent a failed keychain deletion from silently restoring a signed-out session. See credential storage and file locations. On main, after 0.7.1, Flatpak also preserves its fallback state directory across full quits, including on older Flatpak versions.

Playback approval requests Spotify's streaming permission separately. A verified personal app can complete sign-in while the shared app is busy.

The Web API uses a shared app by default. You can add a personal Spotify Development Mode app in Settings → Account for a separate quota. Fastpotify still uses the shared app for requests that personal apps do not support. On main, after 0.7.1, Premium listeners using shared access see a one-time prompt explaining the personal app option, with a button that opens setup. Dismissal is remembered across restarts.

Account safety

We are not aware of a Spotify account being suspended for using Fastpotify or another librespot player with Premium. Sign-in happens on Spotify's own pages, audio uses the quality included with Premium, DRM stays intact, and Fastpotify does not rip tracks or block ads.

Reported suspensions usually involve modded apps that remove ads from free accounts, track ripping, or stream manipulation. Fastpotify does none of those things, and CONTRIBUTING.md prohibits them.

Keyboard shortcuts

Hold Shift while turning the mouse wheel to scroll horizontal shelves, including Made for you and Recently played on Home.

The main window exposes named playback controls, library and song rows, menus, sliders, and settings switches to screen readers. Use Tab and Shift+Tab to move focus, then Enter or Space to activate a control or play a focused song. Left and right arrows adjust a focused volume or seek slider. Windows testing with NVDA and accessibility for Winamp skins are still in progress.

Shortcut What it does
Space Play or pause
Ctrl+← / Ctrl+→ Previous or next
Shift+← / Shift+→ Seek 10 seconds
Ctrl+↑ / Ctrl+↓ Volume
M Mute
B Like or unlike the playing song
S / R Shuffle / cycle repeat
Q Queue panel
Ctrl+F or / Search
Ctrl+B Show or hide the sidebar
Alt+← / Alt+→ Back or forward
Ctrl+H / Ctrl+L Home / Liked Songs
Ctrl+Shift+A / Ctrl+Shift+B Playing artist / album
Ctrl+M Winamp mini player
Ctrl+Shift+K MilkDrop
Ctrl+, Settings
Ctrl+/ or ? All shortcuts
Ctrl+Q Quit

On macOS, Cmd replaces Ctrl.

Controlling it from outside

On Linux, Fastpotify is an MPRIS player, so playerctl --player=fastpotify play-pause already works.

macOS and Windows have no such bus, so the same verbs are subcommands. They talk to the instance already running and print nothing on success:

fastpotify play-pause          fastpotify volume 40
fastpotify play                fastpotify volume-up [percent]
fastpotify pause               fastpotify volume-down [percent]
fastpotify next                fastpotify mute
fastpotify previous            fastpotify shuffle [on|off]
fastpotify seek 15             fastpotify repeat [off|context|track]
fastpotify seek -- -15         fastpotify like
fastpotify seek-to 90          fastpotify play-uri spotify:playlist:37i9…
fastpotify show                fastpotify transfer <device-id>
fastpotify now-playing [--raw] fastpotify devices [--raw]

shuffle and repeat toggle when used without an argument. Pass a state to set it directly. like adds or removes the playing track from your library.

now-playing prints one readable line. --raw prints tab-separated fields: state, title, artists, album, position_ms, duration_ms, volume, shuffle, repeat, art_url, saved, and device. saved is yes, no, or unknown while loading. New fields are appended to keep older scripts working.

devices lists Spotify Connect devices with the ID first and the active one marked with *. --raw prints JSON. The command refreshes the device list, so the first call after startup may be empty. Run it again if needed.

A verb exits non-zero when Fastpotify is not running.

On every platform, fastpotify <link> opens a Spotify link, a spotify: URI or an open.spotify.com address, in the running app, or starts the app on it. This is what the desktop runs when a link is clicked.

Launchers such as Raycast or Alfred can use these commands. The Stream Deck plugin uses the same interface.

Settings

Settings live in one readable JSON file (~/.config/fastpotify/settings.json on Linux). They include the Connect device name, bitrate, normalisation, autoplay, gapless playback, the audio backend (PulseAudio/PipeWire or ALSA on Linux), audio cache size, theme, sidebar state, whether pages take colour from artwork, and the mini player's skin and size. Playback settings apply when you press Apply and restart playback. You can also check for a new release from Settings. On macOS, the same command is in the application menu.

Caches (audio, artwork) live under the cache directory and can be deleted at any time without signing you out.

How it is built

Fastpotify pins its Rust toolchain in rust-toolchain.toml; cargo test covers the API models, dual-session routing, PKCE, the player state machine, and a headless render of every page, panel, and dialog.

To look at the interface without a Spotify account, build with the demo feature and start it with sample data:

cargo run --features demo -- --demo --demo-page playlist:pl1 --demo-show queue

Demo mode never writes settings. --demo-shot <PATH> writes the window to a PNG and exits, which is useful for reproducible interface screenshots. --demo-size WIDTHxHEIGHT sets the window size for that shot.

Contributing

Read CONTRIBUTING.md before opening an issue or pull request. It covers project scope and required checks.

Translations use standard gettext .po files in assets/i18n/, with an English .pot template. The current pilot translates navigation and Library labels in 12 languages, including Portuguese and Chinese variants, in demo mode; the production interface remains English. See Translating Fastpotify for editing with existing translation tools, previewing, and reporting translation problems.

Issues and discussions receive automated triage, including reassessment after new or edited comments. A rocket on the report or comment means its assessment completed successfully; it does not promise a reply or a fix. See automated triage for details.

Acknowledgements

Fastpotify uses librespot, egui, the Inter typeface (OFL), and Lucide icons (ISC).

Fastpotify is an independent project and is not affiliated with Spotify. Spotify is a trademark of Spotify AB.

Licensed under the MIT License.

spotifast (crmne/spotifast)

Searching Database…

这是什么?Fastpotify 是一个用 Rust 编写、基于 egui 工具包的轻量级原生 Spotify 客户端,通过 librespot 播放音乐,内存占用只是 Spotify 官方桌面应用的一小部分。
这是独立的 Spotify 第三方客户端,还是对官方 Spotify 应用进行了修改?它是一个独立的第三方桌面客户端,并不是破解或修改过的 Spotify。它通过 Spotify 官方的授权页面登录,保持 DRM 完整,而不是抓取曲目。
我可以用免费的 Spotify 账户使用它吗?免费账户可以浏览和搜索,但要通过 Fastpotify 实际播放音乐,无论是在这台电脑上还是在其他设备上,都需要 Spotify Premium 订阅。
它能控制音箱和其他设备,还是只能在本地播放?它也可以作为遥控器使用:它会通过 mDNS 发现 librespot、spotifyd 以及兼容的硬件接收器,你可以把播放切换到这些设备上,并继续在 Fastpotify 的设备选择器中进行控制。
通过 Fastpotify 登录会有导致 Spotify 账户被封停的风险吗?维护者表示,他们尚未听说有人因使用 Fastpotify 或其他基于 librespot 的播放器(搭配 Premium)而被封停账户。原因在于它采用官方登录方式,使用标准的 Premium 音质,并保持 DRM 完整。
Fastpotify 会看到我的 Spotify 密码吗?不会。登录时会打开 Spotify 自己的授权页面,采用 Authorization Code with PKCE 方式,因此 Fastpotify 从不接触你的密码;生成的令牌则存放在操作系统的安全凭据库中。
Winamp 迷你播放器功能是什么?按 Ctrl+M 可以打开一个经典风格的小型播放器,支持加载 1x–4x 缩放的真实 Winamp .wsz 皮肤,并附带频谱分析仪、播放列表和十段均衡器。
MilkDrop 有什么作用?它在独立进程中内置了 projectM 可视化器,以全屏方式运行,并在首次使用时自动下载超过 10,000 个经典 .milk 预设(约 26 MB)。
我能用终端或快捷键控制播放吗?可以。在 Linux 上,它会以 MPRIS 播放器的形式对外提供服务,因此 playerctl 等工具开箱即用;在 macOS 和 Windows 上,fastpotify 可执行文件提供 next、play-pause 等子命令,并与正在运行的实例通信。
关闭窗口时会发生什么?Fastpotify 不会退出,而是继续在系统托盘中运行,因此媒体键和托盘图标仍可控制播放;你也可以在设置中把关闭按钮改为退出程序。
Creator
crmne
Size
50.4 MB
Stars
8.5K
Age
1mo
Commits · 90 Days