mattandClaude Sonnet 5 44abd70caa
CI / validate-monitoring (push) Successful in 9s
CI / lint (push) Successful in 11s
CI / federation-interop (push) Successful in 1m38s
CI / test (push) Successful in 3m31s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 5s
Attach cover art to ActivityPub "now playing" posts
Note objects can now carry an optional attachment (an AS2 Image),
which Mastodon and other AP servers render as the post's media. Only
"now playing" posts use it for now - it's the only post type tied to
a single track, and therefore the only one with one unambiguous
album; weekly summaries and milestones aggregate many tracks.

The attachment points straight at the Cover Art Archive URL cached
in AlbumArt, not our own authenticated /api/v1/art/album proxy - a
remote server fetches attachments unauthenticated, and Cover Art
Archive is already public. The lookup happens in the periodic
now-playing worker task, not a request, so a cache-miss MusicBrainz/
Cover Art Archive call adds no request latency.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Hn2QwS1HRT8tFAzo8ew63
2026-10-06 19:16:29 +01:00
2026-09-25 19:47:06 +01:00

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 at docs/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.

S
Description
No description provided
Readme BSD-3-Clause
1.1 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 84.4%
JavaScript 8.6%
HTML 3.1%
CSS 2.9%
Shell 0.7%
Other 0.2%