smolify

module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 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

With Go 1.26 or later, until there are Homebrew and release builds:

brew install libogg libvorbis flac mpg123   # audio codecs (cgo)
go install github.com/lunguini/smolify/cmd/smolify@latest
smolify          # in the terminal
smolify -gui     # in a window (macOS)

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

While the repository is private, Go has to fetch it with your GitHub access instead of the public module proxy:

GOPRIVATE=github.com/lunguini go install github.com/lunguini/smolify/cmd/smolify@latest

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

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 Mac'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 Mac'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.

Jump to

Keyboard shortcuts

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