ListenBrainz Playing Now widget (supports Spotify, Apple Music, Last.FM, Navidrome, ...)
Find a file
2025-08-25 23:59:42 +02:00
assets init 2025-08-25 23:41:30 +02:00
cmd/listenwidget init 2025-08-25 23:41:30 +02:00
events init 2025-08-25 23:41:30 +02:00
listenbrainz init 2025-08-25 23:41:30 +02:00
notify init 2025-08-25 23:41:30 +02:00
polling init 2025-08-25 23:41:30 +02:00
routing init 2025-08-25 23:41:30 +02:00
templating init 2025-08-25 23:41:30 +02:00
.air.toml init 2025-08-25 23:41:30 +02:00
.envrc init 2025-08-25 23:41:30 +02:00
.gitignore init 2025-08-25 23:41:30 +02:00
flake.lock init 2025-08-25 23:41:30 +02:00
flake.nix init 2025-08-25 23:41:30 +02:00
go.mod init 2025-08-25 23:41:30 +02:00
go.sum init 2025-08-25 23:41:30 +02:00
LICENSE add license 2025-08-25 23:59:42 +02:00
listenwidget.toml init 2025-08-25 23:41:30 +02:00
package.nix init 2025-08-25 23:41:30 +02:00
README.md init 2025-08-25 23:41:30 +02:00

Listenwidget

Listenwidget is a simple service that checks ListenBrainz for the music you're listening to and exposes the status of what is currently playing via an <iframe> that automatically gets updated via Server Sent Events. Note that SSE works best when HTTP/2 or newer is being used.

ListenBrainz connects to various services, such as Spotify, Apple Music, Last.FM, or your own Navidrome instance. If you're logged in, see ListenBrainz third-party music services.

Configuration

Example listenwidget.toml:

user = "helveticanonstandard"
address = "localhost:8080"
log_level = "debug"
interval = 10
listenbrainz_base_url = "https://api.listenbrainz.org/1/"