ListenBrainz Playing Now widget (supports Spotify, Apple Music, Last.FM, Navidrome, ...)
| assets | ||
| cmd/listenwidget | ||
| events | ||
| listenbrainz | ||
| notify | ||
| polling | ||
| routing | ||
| templating | ||
| .air.toml | ||
| .envrc | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| listenwidget.toml | ||
| package.nix | ||
| README.md | ||
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/"