creightonlinza/forever-jukebox
À propos
An end-to-end Infinite Jukebox replacement that analyzes audio, serves it via an API, and plays it with tunable, interactive visualizations via Web and offline PWA.
Design et médiasProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +4
- in 15 days
- +4
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalForever Jukebox

The Forever Jukebox is a self-hosted, end-to-end system that analyzes audio, serves the results via a lightweight API, and powers a refreshed Infinite Jukebox-style web UI with branching playback and multiple visualizations. It also includes an installable offline PWA. It replaces reliance on the deprecated Spotify Audio Analysis engine by generating similar beat/segment/section data locally.
Structure
engine/— the Forever Jukebox audio analysis engine.api/— REST API + worker that calls the engine.web/— Web UI.pwa/— Offline/local analysis PWA that can also export jukebox audio.packages/shared/— Shared jukebox engine/audio/visualization code used by bothweb/andpwa/(npm workspace package@forever-jukebox/shared).schema.json— JSON schema reference for analysis output.
Quick Start
Prereqs: Python 3.11, npm (Node.js), ffmpeg.
All-in-one local dev:
./dev.sh
Local dev startup installs missing dependencies by default and does not check for latest versions each run. To force dependency updates locally, temporarily enable the update toggles in dev.sh and rerun it.
Then open the web UI at http://localhost:5173 (the offline PWA also runs, at http://localhost:5174).
Tests: each component documents its own (see Standalone Setup below). The
web UI has unit tests (cd web && npm test) and a full-app Playwright e2e
suite (cd web && npm run test:e2e) — see web/e2e/README.md.
Android App (standalone repo)
- Source + releases: creightonlinza/forever-jukebox-android
- Two builds: the Google Play app is offline-only. The GitHub Releases build is a manual install that also connects to a running Forever Jukebox server (enter the server URL in the app).
Docker (production)
Build and run the container with Docker Compose (serves web UI + offline PWA + API).
Set environment variables:
Required:
SPOTIFY_CLIENT_ID: required for/api/search/spotify.SPOTIFY_CLIENT_SECRET: required for/api/search/spotify.
Optional:
ADMIN_KEY: optional; required only for admin-only actions (play-count updates, and deletes outside the 30-minute grace window). Send it viaX-Admin-Keyrequest header.NTFY_TOPIC_KEY: optional; sends one ntfy message when YouTube blocks downloads (403 / bot-check / rate-limit errors) and one when a download succeeds again.GET /api/status/youtubeshows the current state. Also sends one message a day while the installedyt-dlpbuild fails YouTube JS challenges, and one for each stableyt-dlprelease newer than the installed build.WORKER_COUNT: optional; defaults to1and controls worker concurrency. A single instance on a local/container volume supports modest concurrency such as6; do not point multiple running app instances at the samejobs.db.MAX_TRACK_LENGTH: optional; when set to a positive number (minutes), rejects jobs over that duration.MAX_UPLOAD_MB: optional; defaults to20and caps the size of uploaded files, in whole megabytes (fractions round down; values below1use the default).MAX_FAVORITES: optional; defaults to150and controls the maximum favorites sync payload size.ALLOW_USER_UPLOAD: optional; defaults tofalse. Settrueto enable/api/upload.ALLOW_USER_URL: optional; defaults tofalse. Settrueto allow user-supplied URL jobs (YouTube, SoundCloud, Bandcamp).ALLOW_FAVORITES_SYNC: optional; defaults tofalse. Settrueto enable favorites sync endpoints.HOSTED_BY_NAME: optional; shows an instance host credit in the web footer.HOSTED_BY_URL: optional; links the host credit whenHOSTED_BY_NAMEis set.FEEDBACK_FORM: optional; shows the Report a bug button in Settings, which posts to your own Google Form. Format:<form id>,<feedback entry>,<app version entry>,<device entry>,<host entry>, with the numeric part of each field'sentry.<number>name. Unset or malformed hides the button.PORT: optional; defaults to8000.STORAGE_BACKEND: optional; defaults tolocal(audio and analysis underapi/storage/). Sets3to keep them in an S3-compatible bucket (such as Tigris on Fly.io) instead; seeDEPLOYMENT.md.
Example .env:
SPOTIFY_CLIENT_ID=...
SPOTIFY_CLIENT_SECRET=...
ADMIN_KEY=
NTFY_TOPIC_KEY=
WORKER_COUNT=1
MAX_TRACK_LENGTH=12
MAX_UPLOAD_MB=
MAX_FAVORITES=
ALLOW_USER_UPLOAD=false
ALLOW_USER_URL=false
ALLOW_FAVORITES_SYNC=false
HOSTED_BY_NAME=
HOSTED_BY_URL=
FEEDBACK_FORM=
PORT=8000
You can put these values in a .env file (same directory as docker-compose.yml) and Compose will load them automatically.
Run:
docker compose up --build
Notes:
- Dependency updates (
yt-dlp,madmom-beats-lite,deno) happen at image build/deploy time. Container startup does not perform network updates. - To force-refresh externally sourced dependencies, run
docker compose build --no-cacheand thendocker compose up.
Open:
- Web UI:
http://localhost:8000/ - Offline PWA:
http://localhost:8000/offline/
API routes are under /api/*. The Compose file uses a named Docker volume
(storage) to persist /app/api/storage.
Standalone Setup
Credits
- The Infinite Jukebox (Paul Lamere): original interactive concept and UX inspiration.
- The Echo Nest / Spotify Audio Analysis: foundational analysis schema and ideas.
- EternalJukebox: keeping the dream alive.
- madmom-beats-lite: parity-safe beat/downbeat extraction package.
- Essentia: audio features and DSP toolkits.
- yt-dlp: YouTube search metadata and audio.
- OpenAI Codex (GPT-5): implementation guidance and tooling.
Explorer des projets similaires
Chargement…