CI / validate-monitoring (push) Successful in 8s
CI / lint (push) Successful in 13s
CI / federation-interop (push) Successful in 1m10s
CI / test (push) Successful in 3m13s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 5s
README had grown into one long file covering deployment, local development and end-user features together. Split into: - docs/deploy.md: running a real instance - images, configuration, putting it behind TLS (with a minimal Caddy example and the CORS_ORIGINS/UI_BASE_URL distinction the last session's manual test found the hard way), monitoring, backups, releases. - docs/setup.md: working on the code - local dev environment, migrations, tests, the manual fediverse test, CI/CD. - docs/usage.md: accounts and apps, connecting a player, importing history, sharing on the fediverse. README is now a short overview and quick start that links to the three, plus the existing API reference and federation/design docs. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
1.8 KiB
1.8 KiB
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
- Deploy — running a real instance: images, configuration, TLS, monitoring, backups, releases.
- Set up — working on the code: local dev environment, migrations, tests, CI/CD.
- Use — accounts and apps, connecting a player, importing history, sharing on the fediverse.
- 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/deploy.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.