<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jaret Varn</title>
    <description>The latest articles on DEV Community by Jaret Varn (@jav76).</description>
    <link>https://dev.to/jav76</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2799725%2F58b1c518-3210-4a43-b340-4fbc042be247.png</url>
      <title>DEV Community: Jaret Varn</title>
      <link>https://dev.to/jav76</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jav76"/>
    <language>en</language>
    <item>
      <title>Cantus: self-hosted, real-time synced lyrics for Spotify, built in C# with Uno Platform</title>
      <dc:creator>Jaret Varn</dc:creator>
      <pubDate>Tue, 24 Nov 2026 23:50:01 +0000</pubDate>
      <link>https://dev.to/jav76/cantus-self-hosted-real-time-synced-lyrics-for-spotify-built-in-c-with-uno-platform-27m</link>
      <guid>https://dev.to/jav76/cantus-self-hosted-real-time-synced-lyrics-for-spotify-built-in-c-with-uno-platform-27m</guid>
      <description>&lt;p&gt;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.&lt;br&gt;&lt;br&gt;
Local native media player detection is planned for future releases. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqkxkoc76xo1rk6220qsq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqkxkoc76xo1rk6220qsq.png" alt="Cantus showing synced lyrics with album-art theming" width="800" height="755"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Currently at &lt;strong&gt;v0.5.0&lt;/strong&gt;, and you can try it with one Docker Compose file. &lt;/p&gt;
&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Follows Spotify playback&lt;/strong&gt; on any device on your account, no plugin needed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Synced lyrics&lt;/strong&gt; from LRCLIB, with NetEase as an optional fallback (it often has word-timed lyrics, which power a karaoke mode).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runs everywhere from one codebase&lt;/strong&gt;: WebAssembly in any modern browser (including smart TV browsers), plus native Linux, Windows and macOS desktop apps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Displays&lt;/strong&gt;: 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Find a song by lyrics&lt;/strong&gt;: type the line you half remember, get ranked guesses, and play or queue the right one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Playback controls&lt;/strong&gt; (play/pause, skip, seek, volume, shuffle, repeat) from any signed-in screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Album-art theming&lt;/strong&gt;: palettes and an ambient blurred backdrop pulled from the current cover, with optional film grain, vignette and scanline effects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Private by design&lt;/strong&gt;: no telemetry, Spotify tokens encrypted at rest with ASP.NET Core Data Protection.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Karaoke word sync&lt;/th&gt;
&lt;th&gt;Full-screen kiosk mode&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftsnlb6tj1v7c1wmf1fkl.png" alt="Karaoke mode" width="800" height="749"&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs2f8us1gkdpxbwld6wsj.png" alt="Kiosk mode" width="800" height="746"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;p&gt;Everything is .NET 10:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Project&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Cantus.Core&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Domain models, LRC parser, service contracts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Cantus.Infrastructure&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Spotify PKCE auth and player API, lyrics providers, SQLite cache, token encryption&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Cantus.Server&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ASP.NET Core host, SignalR &lt;code&gt;PlaybackHub&lt;/code&gt;, the adaptive poller, REST APIs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Cantus.Client&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Uno Platform app for WebAssembly and Skia desktop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Cantus.Generators&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A Roslyn source generator for compile-time method tracing (&lt;code&gt;[TraceLog]&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;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.&lt;/p&gt;
&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;You need Docker and a free &lt;a href="https://developer.spotify.com/dashboard" rel="noopener noreferrer"&gt;Spotify Developer app&lt;/a&gt; (for its Client ID; Cantus uses PKCE, so there is no client secret).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;cantus&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ghcr.io/jav76/cantus:latest&lt;/span&gt;
    &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;unless-stopped&lt;/span&gt;
    &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"5000:5000"&lt;/span&gt;
    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;Spotify__ClientId=your_spotify_client_id_here&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;CANTUS_HOST_URL=http://127.0.0.1:5000&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;cantus_data:/app/data&lt;/span&gt;

&lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;cantus_data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up -d
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open &lt;code&gt;http://127.0.0.1:5000&lt;/code&gt;, select &lt;strong&gt;Connect Spotify&lt;/strong&gt;, and play something.&lt;/p&gt;

&lt;p&gt;Two gotchas:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Spotify rejects &lt;code&gt;localhost&lt;/code&gt; redirect URIs. Use &lt;code&gt;127.0.0.1&lt;/code&gt; locally and HTTPS everywhere else.&lt;/li&gt;
&lt;li&gt;A Spotify app in Development Mode allows 5 users and its owner needs Premium. Beyond that, other users can sign in with &lt;strong&gt;their own&lt;/strong&gt; Spotify app from the Connect Spotify screen.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://github.com/jav76/Cantus/releases" rel="noopener noreferrer"&gt;releases page&lt;/a&gt; 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).&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it stands
&lt;/h2&gt;

&lt;p&gt;Cantus is in &lt;strong&gt;beta&lt;/strong&gt;. 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 &lt;a href="https://cantus.docs.jav26122.net" rel="noopener noreferrer"&gt;cantus.docs.jav26122.net&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you try it, I'd love to hear:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;how the sync feels on your network and devices,&lt;/li&gt;
&lt;li&gt;songs where the lyrics are missing or wrong,&lt;/li&gt;
&lt;li&gt;which screens you run it on (TV browsers especially).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Issues, PRs and stars are all welcome: &lt;strong&gt;&lt;a href="https://github.com/jav76/Cantus" rel="noopener noreferrer"&gt;github.com/jav76/Cantus&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>csharp</category>
      <category>selfhosted</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
