smolify

module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: GPL-3.0

README

Smolify

A small, fast Spotify client for the terminal and the desktop, built with Flatte and go-librespot.

Work in progress. Requires Spotify Premium. Not affiliated with Spotify.

Smolify in a terminal turning into Smolify in a Mac window and back

Install

macOS and Linux, with Homebrew:

brew install --cask lunguini/tap/smolify
smolify          # in the terminal
smolify -gui     # in a window (macOS)

brew upgrade --cask smolify updates it.

Or download a build for macOS, Linux or Windows from the releases. The audio codecs are built in; Linux builds need glibc 2.39 or later (Ubuntu 24.04 and newer), with libmpg123 and ALSA installed. The window (-gui) is macOS only.

With Go 1.26 or later, from source:

brew install libogg libvorbis flac mpg123   # audio codecs (cgo)
go install github.com/lunguini/smolify/cmd/smolify@latest

go install puts smolify in $(go env GOPATH)/bin (usually ~/go/bin); add that to your PATH if the command is not found.

On first run, Smolify shows a code: open spotify.com/pair and enter it to sign in.

Audio output

The Settings page's Audio output choice defaults to Auto: AudioToolbox on macOS, WASAPI on Windows, and PulseAudio on Linux (which also works with PipeWire's PulseAudio server). Set SMOLIFY_AUDIO_BACKEND to a backend offered for the current OS to override the saved choice, for example SMOLIFY_AUDIO_BACKEND=alsa on Linux.

To build Smolify for Linux and verify a silent output stream against a headless PulseAudio null sink, with no Spotify account, run:

./scripts/test-linux-audio.sh

The script uses Docker to build the app and run the headless check.

Build

brew install libogg libvorbis flac mpg123   # audio codecs (cgo)
go run ./cmd/smolify                        # in the terminal
go run ./cmd/smolify -gui                   # in a window (macOS)
go run ./cmd/smolify -sign-out              # forget the Spotify sign-in
go run ./cmd/smolify -debug-log smolify.log # log player events and memory

License

GPL-3.0 — see LICENSE.

The bundled Inter font (internal/app/fonts) is under the SIL Open Font License 1.1 — see its license.

Directories

Path Synopsis
cmd
serve-web command
serve-web serves the generated dist/web site with precompressed assets.
serve-web serves the generated dist/web site with precompressed assets.
smolify command
Command smolify is a small, fast Spotify client: in the terminal, or in a native window with -gui on supported platforms.
Command smolify is a small, fast Spotify client: in the terminal, or in a native window with -gui on supported platforms.
smolify-web command
spike-player command
Command spike-player embeds go-librespot without a UI: it signs in with Spotify's device pairing, lists the library's playlists, plays the first one, prints the player's events, and pauses after a while.
Command spike-player embeds go-librespot without a UI: it signs in with Spotify's device pairing, lists the library's playlists, plays the first one, prints the player's events, and pauses after a while.
spike-web command
Command spike-web probes which of Spotify's internal endpoints answer the player's token for search and recently played, so Smolify can do both without the Web API's developer quotas.
Command spike-web probes which of Spotify's internal endpoints answer the player's token for search and recently played, so Smolify can do both without the Web API's developer quotas.
internal
app
Package app is Smolify's UI: one state, pure views, and handlers, drawn by Flatte in a terminal, window, or browser.
Package app is Smolify's UI: one state, pure views, and handlers, drawn by Flatte in a terminal, window, or browser.
catalog
Package catalog contains provider-neutral catalog records used by the UI.
Package catalog contains provider-neutral catalog records used by the UI.
demo
Package demo provides self-contained sample data and simulated playback for the browser build.
Package demo provides self-contained sample data and simulated playback for the browser build.
librarycache
Package librarycache stores complete account library snapshots on disk.
Package librarycache stores complete account library snapshots on disk.
model
Package model contains the player and catalog data shared by Smolify's native and browser hosts.
Package model contains the player and catalog data shared by Smolify's native and browser hosts.
player
Package player embeds go-librespot as Smolify's player: a Spotify Connect device that plays through the OS's audio output, driven in-process — requests go to it over a channel and its events come back on Events, with no HTTP server.
Package player embeds go-librespot as Smolify's player: a Spotify Connect device that plays through the OS's audio output, driven in-process — requests go to it over a channel and its events come back on Events, with no HTTP server.
spotify
Package spotify implements search using Spotify's desktop search service.
Package spotify implements search using Spotify's desktop search service.
webimages
Package webimages fetches and decodes browser artwork through fetch.
Package webimages fetches and decodes browser artwork through fetch.
webplayer
Package webplayer bridges Spotify's documented Web Playback SDK to Go.
Package webplayer bridges Spotify's documented Web Playback SDK to Go.
webspotify
Package webspotify implements Spotify's documented OAuth and Web API flows without depending on the desktop player's private services.
Package webspotify implements Spotify's documented OAuth and Web API flows without depending on the desktop player's private services.
scripts
wasapi-probe command
Command wasapi-probe plays a short tone through go-librespot's WASAPI output, the backend Smolify picks on Windows.
Command wasapi-probe plays a short tone through go-librespot's WASAPI output, the backend Smolify picks on Windows.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL