[READ-ONLY] Mirror of https://github.com/ewanc26/pkgs. my pkgs monorepo docs.ewancroft.uk/projects/pkgs
monorepo nix

feat(tourmaline): add 30s track preview playback via Deezer master

None of the comparable tools (stats.fm, Last.fm, Receiptify) let you listen from the stats page — you have to alt-tab to your streaming service. Deezer's public search API (already used here for artist images, no auth needed) also returns a 30s preview clip per track. Adds a server-side track-search lookup (own cache namespace/TTL, separate from the artist-enrichment cache since it's queried on demand per play button rather than batched), a small API route, and a play/pause button component wired into the Top Tracks list — one preview plays at a time, starting a new one stops whatever was playing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>


+156
4 changed files