I've never been a huge fan of the spotify lyrics UI. I can't really explain it well, but it just doesn't do what I want or look the way I want. This project partially just started as a proof of concept with me messing around with blazor and WASM, but then I kinda just kept building. It started as a simple web app that displays the lyrics of what you're playing on Spotify. In it's current state, it now has "Find a song" functionality that lets you type in some phrase of lyrics you remember from a song that you can't quite think of the name of, and Cantus will lookup most likely matches for you. More features planned, but the premise of Cantus is basically this; it's an open-source self-hosted lyrics displaying platform, built to be cross-platform in C# with web assembly. You host the server, login to Spotify on the web app or desktop client, and then you're ready to go.
Local native media player detection is planned for future releases.
Currently at v0.5.0, and you can try it with one Docker Compose file.
What it does
- Follows Spotify playback on any device on your account, no plugin needed.
- Synced lyrics from LRCLIB, with NetEase as an optional fallback (it often has word-timed lyrics, which power a karaoke mode).
- Runs everywhere from one codebase: WebAssembly in any modern browser (including smart TV browsers), plus native Linux, Windows and macOS desktop apps.
- Displays: pair a TV or a spare tablet with a short code. It gets a view-only token, so a screen in the living room can show your lyrics but can't skip your songs.
- Find a song by lyrics: type the line you half remember, get ranked guesses, and play or queue the right one.
- Playback controls (play/pause, skip, seek, volume, shuffle, repeat) from any signed-in screen.
- Album-art theming: palettes and an ambient blurred backdrop pulled from the current cover, with optional film grain, vignette and scanline effects.
- Private by design: no telemetry, Spotify tokens encrypted at rest with ASP.NET Core Data Protection.
| Karaoke word sync | Full-screen kiosk mode |
|---|---|
![]() | ![]() |
The stack
Everything is .NET 10:
| Project | Role |
|---|---|
Cantus.Core | Domain models, LRC parser, service contracts |
Cantus.Infrastructure | Spotify PKCE auth and player API, lyrics providers, SQLite cache, token encryption |
Cantus.Server | ASP.NET Core host, SignalR PlaybackHub, the adaptive poller, REST APIs |
Cantus.Client | Uno Platform app for WebAssembly and Skia desktop |
Cantus.Generators | A Roslyn source generator for compile-time method tracing ([TraceLog]) |
The server polls Spotify, resolves lyrics, and pushes state to every connected screen over SignalR. The server also hosts the WebAssembly client, so a single container serves everything.
Try it
You need Docker and a free Spotify Developer app (for its Client ID; Cantus uses PKCE, so there is no client secret).
services: cantus: image: ghcr.io/jav76/cantus:latest restart: unless-stopped ports: - "5000:5000" environment: - Spotify__ClientId=your_spotify_client_id_here - CANTUS_HOST_URL=http://127.0.0.1:5000 volumes: - cantus_data:/app/data volumes: cantus_data: docker compose up -d Open http://127.0.0.1:5000, select Connect Spotify, and play something.
Two gotchas:
- Spotify rejects
localhostredirect URIs. Use127.0.0.1locally and HTTPS everywhere else. - A Spotify app in Development Mode allows 5 users and its owner needs Premium. Beyond that, other users can sign in with their own Spotify app from the Connect Spotify screen.
The releases page also has standalone server binaries (Linux x64/arm64, macOS, Windows) and desktop clients (a Linux AppImage, a Windows installer, and macOS builds for Intel and Apple Silicon).
Where it stands
Cantus is in beta. Expect rough edges. The repo has about 1,200 tests across four test projects, CI with SonarQube quality gates, and full docs (including architecture deep dives on the clock sync and the poller) at cantus.docs.jav26122.net.
If you try it, I'd love to hear:
- how the sync feels on your network and devices,
- songs where the lyrics are missing or wrong,
- which screens you run it on (TV browsers especially).
Issues, PRs and stars are all welcome: github.com/jav76/Cantus


