rsynnot/magic-lists-for-navidrome
حول
🎵 AI-Powered Playlist Generator for Navidrome Create intelligent, personalized playlists from your Navidrome music library using advanced AI curation. Features multi-library support, "This Is Artist", "Genre Mix", and "Re-Discover Weekly" playlist types with smart track selection and cross-platform compatibility. ⭐ Star if you find it helpful!
التصميم والوسائطالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- -١
- خلال 15 يومًا
- -١
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلMagicLists for Navidrome
AI-assisted playlists for your own music library.
MagicLists adds the kind of curated, evolving playlists you’d expect from Spotify or Apple Music—except it works entirely on your self-hosted Navidrome server. No subscriptions, no renting your music back. Just smart mixes generated from the library you already own.
What it does
- 🎵 This Is (Artist) — Builds a definitive playlist for any artist in your library, combining hits, deep cuts, and featured appearances without duplicates.
- 🎸 Genre Mix — Creates curated playlists from your complete genre collections, using AI to craft the perfect mix of tracks.
- 🔄 Re-Discover — Rotates tracks you haven't played in a while, helping you fall back in love with your collection.
- ⏰ Auto-Refresh — Keep playlists fresh with daily, weekly, or monthly updates.
- 🐳 Quick Setup — Simple Docker install; get started in minutes.
Why it matters
Navidrome users already own their music. MagicLists brings modern curation tools into that world—so your playlists feel alive, not static, and your collection keeps surprising you.
Who’s behind it
I’m Ricky, a product designer with 20+ years in tech. I’m building MagicLists feature by feature, from UI and CSS to playlist logic, because I’m passionate about open-source, privacy-friendly music tools. This isn’t vaporware or a throwaway experiment—it’s genuine, ongoing research into how AI can enrich personal music libraries.
What’s next
Upcoming experiments include:
- Multi-artist “radio” blends
- Decade and discovery-focused lists
- Creative journeys like The Long Way Home (a track-to-track sonic path) and Genre Archaeology (tracing influences backwards through time).
MagicLists is just getting started, and I’d love your feedback as it grows.
Screenshots

Caption: Creating a 'This is (Artist)' playlist
Installation
Recommended: Add to Your Existing Docker Compose
Why this method? Your MagicLists container will be on the same network as Navidrome, making connection simple and reliable. This also enables future features like audio analysis that require local file access.
- Add MagicLists to your existing
docker-compose.yml(the one that runs Navidrome):
services:
navidrome:
# ... your existing Navidrome config ...
magiclists:
image: rickysynnot/magic-lists-for-navidrome:latest
container_name: magiclists
ports:
- "4545:8000"
environment:
- NAVIDROME_URL=http://navidrome:4533
- NAVIDROME_USERNAME=your_username
- NAVIDROME_PASSWORD=your_password
- DATABASE_PATH=/app/data/magiclists.db # Required: Database location
- AI_PROVIDER=openrouter # Optional: openrouter, groq, google, ollama
- AI_API_KEY=your_openrouter_api_key # Optional, for OpenRouter/Groq/Google
- AI_MODEL=meta-llama/llama-3.3-70b-instruct # Optional, for AI providers
volumes:
- ./magiclists-data:/app/data # Persist configuration
restart: unless-stopped
- Update the environment variables with your Navidrome credentials
- Start the stack:
docker-compose up -d
- Access MagicLists at http://localhost:4545
Note: The NAVIDROME_URL uses the container name (navidrome) as the hostname. If your Navidrome service has a different name in your compose file, update this accordingly.
Alternative: Standalone Docker Container
Use this if you can't or don't want to modify your existing Docker Compose setup.
If Navidrome is publicly accessible: Use your public Navidrome URL (e.g., https://music.yourdomain.com):
docker run -d \
--name magiclists \
-p 4545:8000 \
-e NAVIDROME_URL=https://music.yourdomain.com \
-e NAVIDROME_USERNAME=your_username \
-e NAVIDROME_PASSWORD=your_password \
-e DATABASE_PATH=/app/data/magiclists.db \
-e AI_PROVIDER=openrouter \
-e AI_API_KEY=your_openrouter_api_key \
-e AI_MODEL=meta-llama/llama-3.3-70b-instruct \
-v ./magiclists-data:/app/data \
rickysynnot/magic-lists-for-navidrome:latest
If Navidrome is on the same host machine: Use host.docker.internal to reach services on your host:
docker run -d \
--name magiclists \
-p 4545:8000 \
-e NAVIDROME_URL=http://host.docker.internal:4533 \
-e NAVIDROME_USERNAME=your_username \
-e NAVIDROME_PASSWORD=your_password \
-e DATABASE_PATH=/app/data/magiclists.db \
-e AI_PROVIDER=openrouter \
-e AI_API_KEY=your_openrouter_api_key \
-e AI_MODEL=meta-llama/llama-3.3-70b-instruct \
-v ./magiclists-data:/app/data \
rickysynnot/magic-lists-for-navidrome:latest
If Navidrome is on your local network: Use the local IP address of the machine running Navidrome:
docker run -d \
--name magiclists \
-p 4545:8000 \
-e NAVIDROME_URL=http://192.168.1.100:4533 \
-e NAVIDROME_USERNAME=your_username \
-e NAVIDROME_PASSWORD=your_password \
-e DATABASE_PATH=/app/data/magiclists.db \
-e AI_PROVIDER=openrouter \
-e AI_API_KEY=your_openrouter_api_key \
-e AI_MODEL=meta-llama/llama-3.3-70b-instruct \
-v ./magiclists-data:/app/data \
rickysynnot/magic-lists-for-navidrome:latest
Access MagicLists at http://localhost:4545
Running Without Docker
Use this method if you prefer to run Python directly or want to contribute to development.
- Clone the repository:
git clone https://github.com/rsynnot/magic-lists-for-navidrome.git
cd magic-lists-for-navidrome
- Install dependencies:
pip install -r requirements.txt
- Create your environment file:
cp .env.example .env
- Edit
.envwith your Navidrome details:
NAVIDROME_URL=http://localhost:4533
NAVIDROME_USERNAME=your_username
NAVIDROME_PASSWORD=your_password
DATABASE_PATH=./magiclists.db # Required: Database location
AI_PROVIDER=openrouter # Optional: openrouter, groq, google, ollama
AI_API_KEY=your_openrouter_api_key # Optional, for OpenRouter/Groq/Google
AI_MODEL=meta-llama/llama-3.3-70b-instruct # Optional, for AI providers
- Run the application:
python -m uvicorn app.main:app --host 0.0.0.0 --port 4545
- Access the application at http://localhost:4545
To update: Simply
git pulland restart the application.
Troubleshooting
Database Write Errors (500 Server Error)
If system checks pass but playlist creation fails with a 500 error about database write permissions:
Solution: Ensure DATABASE_PATH environment variable is set:
- Docker:
DATABASE_PATH=/app/data/magiclists.db(with volume mounted to/app/data) - Standalone:
DATABASE_PATH=./magiclists.db(in your project directory)
This is required for the application to persist playlist data and user settings.
Connection Issues
Can't connect to Navidrome? The most common issue is an incorrect NAVIDROME_URL. Here's how to determine the right value:
- Same Docker network: Use the container name (e.g., http://navidrome:4533)
- Same host machine: Use http://host.docker.internal:4533 (Docker Desktop) or http://172.17.0.1:4533 (Linux)
- Different machine on LAN: Use the local IP (e.g., http://192.168.1.100:4533)
- Public internet: Use your domain (e.g., https://music.yourdomain.com)
Check if containers are on the same network:
# List Docker networks
docker network ls
# Inspect your network
docker network inspect your_network_name
# Verify both containers are on the same network
docker ps --format "table {{.Names}}\t{{.Networks}}"
No artists found
- Ensure your music library is scanned in Navidrome
- Check Navidrome logs for scanning issues
- If using multiple libraries, verify the library ID is correct
Database errors
- Ensure write permissions for database directory
- Check disk space
- Restart the application if database appears corrupted
Still having issues? Check the System Check page in the app after startup - it will test your connection and provide specific guidance.
System Check Page
MagicLists automatically validates your configuration on startup. If any issues are detected, you'll be redirected to a system check page that shows:
- Environment Variables: Checks that required variables are set
- Navidrome URL: Verifies your server is reachable
- Navidrome Authentication: Tests your credentials
- Navidrome Artists API: Confirms API access is working
- AI Provider: Checks if AI features are configured (OpenRouter, Groq, Google AI, or Ollama)
- Library Configuration: Shows multiple library setup status
If checks fail, detailed suggestions are provided to help resolve issues. You can also access the system check at any time via /system-check.
API Endpoints
GET /- Web interfaceGET /api/artists- List all artists from NavidromePOST /api/create_playlist- Create a new "This Is" playlistPOST /api/create_playlist_with_reasoning- Create playlist with detailed reasoningGET /api/rediscover-weekly- Generate Re-Discover Weekly recommendationsPOST /api/create-rediscover-playlist- Create Re-Discover Weekly playlist in NavidromeGET /api/playlists- List all managed playlistsDELETE /api/playlists/{playlist_id}- Delete a managed playlistGET /api/recipes- List available recipe versionsGET /api/recipes/validate- Validate recipe configurationsGET /api/scheduler/status- Check auto-refresh scheduler statusPOST /api/scheduler/trigger- Manually trigger scheduled refreshesPOST /api/scheduler/start- Start the auto-refresh scheduler
Automated Builds and Releases
Pull requests run regression tests and build an image without publishing. Every
successful push to main publishes an edge image and a commit-specific sha-
tag. These builds support both linux/amd64 and linux/arm64.
Stable releases are published by pushing a version tag such as v1.4.3 from
main. The workflow runs the tests, builds and publishes the multi-platform
image as 1.4.3, v1.4.3, stable and latest, then creates the GitHub release.
Release notes can be supplied in release-notes/v1.4.3.md; otherwise GitHub
generates them. The stable tags are not changed by ordinary main builds.
Maintainers must configure the repository Actions secret DOCKERHUB_TOKEN with
write access to the rickysynnot/magic-lists-for-navidrome Docker Hub repository.
Store the token in GitHub settings, never in source files. The GitHub release
uses the workflow's built-in token; it needs no personal GitHub API token.
Server Timezone
Set TZ to an IANA timezone name in your .env file or container environment:
TZ=America/New_York
For Docker Compose, add - TZ=America/New_York under environment:. For
docker run, add -e TZ=America/New_York. Recreate the container after changing
its environment (for example, docker compose up -d --force-recreate). Restart
the app after changing .env for a standalone installation.
Playlist refresh checks run at 1:01 AM and 1:01 PM in the server timezone.
Daily, weekly and monthly refresh dates use that same timezone, including
daylight-saving changes. The timezone applies to the whole MagicLists instance.
With no TZ setting, standalone installations use the system timezone; the
supplied Docker Compose configuration defaults to Etc/UTC.
Existing refresh dates remain local wall times in the configured server timezone.
Changing TZ changes how those dates are interpreted; it does not convert them
to preserve their previous UTC instant. Check the startup log for the selected
timezone. Invalid timezone names stop startup with a configuration error.
AI Configuration (Optional)
MagicLists supports multiple AI providers for enhanced playlist curation:
- Fallback-only (Free) - Uses play count and metadata sorting
- Local LLM (Free) - Run models locally with Ollama
- OpenRouter (Free/Paid) - Access to various cloud models including free options
- Google AI (Free) - Google's Gemini models with generous free quota
- Groq (Free/Paid) - Fast cloud models with no credit card required
Option 2: Local LLM (Ollama)
Install Ollama and run models locally:
# Install and run a model
ollama pull llama3.2
ollama serve
# .env configuration
AI_PROVIDER=ollama
AI_MODEL=llama3.2
OLLAMA_BASE_URL=http://localhost:11434/v1/chat/completions
# For Docker: OLLAMA_BASE_URL=http://host.docker.internal:11434/v1/chat/completions
# OLLAMA_TIMEOUT=300 # Increase for slower CPUs (default: 180 seconds)
Option 3: OpenRouter (Cloud Models)
Get an API key from OpenRouter ($5 minimum):
# .env configuration
AI_PROVIDER=openrouter
AI_API_KEY=sk-or-v1-your-key-here
AI_MODEL=deepseek/deepseek-chat # Free model
# AI_MODEL=anthropic/claude-3-haiku # Paid model
Option 4: Google AI (Free & Generous Quota)
Get a free API key from Google AI Studio - no credit card required:
# .env configuration
AI_PROVIDER=google
AI_API_KEY=AIzaSy_your-google-key-here
AI_MODEL=gemini-2.5-flash # Fast and capable
# AI_MODEL=gemini-1.5-pro # More advanced model
Option 5: Groq (Free/Paid)
Get a free API key from Groq - no credit card required:
# .env configuration
AI_PROVIDER=groq
AI_API_KEY=gsk_your-groq-key-here
AI_MODEL=llama-3.1-8b-instant # Fast default model
# AI_MODEL=mixtral-8x7b-32768 # Alternative model
Note: Without AI configuration, the app falls back to play-count based playlist generation.
Multiple Navidrome Libraries
If you have multiple music libraries in Navidrome:
- Automatic: MagicLists will detect and work with all libraries by default
- Specific Library: Set
NAVIDROME_LIBRARY_IDto target a specific library:NAVIDROME_LIBRARY_ID=your-library-id-here - Find Library IDs: Check your Navidrome admin interface or API documentation
- System Check: The health check will show library configuration status
License
MIT License - see LICENSE file for details.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
📈 Usage Analytics
This project uses Umami Analytics to anonymously measure feature usage (no cookies, no personal data are stored).
You can view the public dashboard here: magic-lists analytics
Support
For issues and questions:
- Check the troubleshooting section
- Review Navidrome documentation
- Create an issue in the repository
Legal Disclaimer
No Warranty: This software is provided "as is" without warranty of any kind, express or implied.
User Responsibility: You are solely responsible for:
- Ensuring you have proper rights to any music content processed through this application
- Any data transmitted to third-party AI services
- Backup of your music library before use
- Any modifications made to your playlists or library
Limitation of Liability: The developers shall not be liable for any damages including but not limited to data loss, corruption of music libraries, or any other direct or indirect damages arising from use of this software.
Third-party Services: This application integrates with external AI services. Your use of these services is subject to their respective terms of service.
By using this software, you acknowledge and accept these terms.
© 2025 Made by Synnot Studio — Licensed under the MIT License.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…