5bdeeddb0bfd23cc7e52d18241d4b8b19ab21756
New GET /api/v1/art/album?artist=&album= resolves and streams an album's cover art. Lookups go through MusicBrainz release-group search then Cover Art Archive's release-group front-image endpoint, both free and keyless - no setup required by self-hosters. Results (hits, misses and errors) are cached in a new album_art table keyed case-insensitively on (artist, album), since Scrobble.mbid can't be trusted as a release identifier. The service layer separates resolving where the art is (lookup()) from fetching the bytes (fetch_image()) so a future move to storing the bytes ourselves only touches the latter. Also widens the UI's CSP (img-src) to allow blob: URLs, since the frontend will fetch art with the existing bearer-auth header and hand the browser a blob: object URL rather than hotlinking. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Scrobbler
A self-hosted music scrobbling service. It speaks the Last.fm (Audioscrobbler 2.0) API, so players and scrobblers that let you set a custom Last.fm server can use it unchanged. It also has a web UI for your listening history, and optional sharing on the fediverse (ActivityPub) — followable from Mastodon, with weekly summaries, milestones and now playing.
players / scrobblers ──► API /2.0/ Last.fm-compatible
web UI (static files) ──► API /api/v1/ JSON API for the UI
API ──► PostgreSQL
Prometheus ◄── API :9100/metrics, postgres-exporter ──► Grafana
Docs
- Admin guide — running a real instance: images, configuration, TLS, monitoring, backups, upgrades, troubleshooting.
- User guide — accounts and apps, connecting a player, importing history, sharing on the fediverse.
- Set up — working on the code: local dev environment, migrations, tests, CI/CD.
- API reference:
/api/openapi.json, Swagger UI at/api/docs, ReDoc at/api/redoc(a copy is committed atdocs/openapi.json). - Federation internals:
src/scrobbler/federation/README.md. Design docs for how it was built:docs/design/.
Try it
cp .env.example .env # then set SECRET_KEY and POSTGRES_PASSWORD
docker compose up -d # db, api (:5050), worker, ui (:8080)
Open http://localhost:8080, create an account, then go to Apps and create an app for a player. See docs/admin-guide.md for the published images, full configuration reference and production notes.
Licence
BSD 3-Clause; see LICENSE. The fonts vendored in frontend/fonts/ are under
the SIL Open Font License 1.1.
Languages
Python
84.4%
JavaScript
8.6%
HTML
3.1%
CSS
2.9%
Shell
0.7%
Other
0.2%