Milstolpe 1: skelett — Fastify-backend med login, Vue-frontend (mörkt Jellyseerr-tema), Dockerfile
All checks were successful
build-and-push / build (push) Successful in 32s

- backend: /api/health, /api/login|logout|session, sessionscookie,
  timingSafeEqual-lösenordskoll, allt annat under /api kräver inloggning,
  serverar byggd frontend med SPA-fallback; 4 tester (node:test)
- frontend: Vue 3 + Vite, login-sida, Upptäck-skal, sökfält (stub),
  mörkt tema enligt Jellyseerr-förlagan
- docker: multi-stage arm64-image; config-plumbing för Lidarr/Jellyfin/
  Gemini via env (Jellyfin-historik prioriterad som signal per Björn)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01824ZrvG2mDYYrmwqypLNup
This commit is contained in:
2026-07-31 23:18:25 +02:00
parent f164a263ee
commit 4e0a8aae13
20 changed files with 3092 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ stack `.env`, signed session cookie).
| **YouTube Music** | unofficial YT Music search from Node → browse/video IDs for "open in YT Music" deep links, thumbnails for the cards, inline playback via YouTube IFrame embed |
| **Gemini API** | suggestion generation; `GEMINI_API_KEY` + model via env |
| **Youtubarr** | read-only mount of its SQLite (`/srv/docker/youtubarr/data/db.sqlite3`) → "recently added to playlists" signal |
| **Jellyfin** | play-history signal — blocked until a music library exists in Jellyfin (milestone 6) |
| **Jellyfin** | play-history signal (prioritised by Björn 2026-07-31) — infra prerequisite: mount `/srv/storage1/Music` into the jellyfin container + create a music library (container recreate, needs Björn's OK) |
## UI sketch (Jellyseerr-like)
@@ -59,10 +59,11 @@ stack `.env`, signed session cookie).
3. **Search page** — MusicBrainz search enriched with YT Music
thumbnails/links, add/play/open actions
4. **On-demand suggestions** — "generera nu": Gemini prompt built from
Lidarr library + Youtubarr playlist adds
Lidarr library + Youtubarr playlist adds + Jellyfin play history
(used as soon as it's configured)
5. **Scheduler + history** — cron-generated batches, history page
6. **Jellyfin signal** — recent music plays feed the prompt (requires
music library in Jellyfin)
6. **Jellyfin music library** — infra step on the Pi5 (mount + library)
so the play-history signal has data
## Roadmap / expansions (proposed — Björn confirms/strikes)