A lightweight Apple Music player for Windows 11 — Tauri v2 + WebView2, a vanilla TypeScript front end, and a Rust back end, with full DRM playback and a token-driven theming system.
Status: released — playback, sign-in, and library sync all work; shipping as a signed per-user installer (Velopack) that updates itself · Platform: Windows 11 desktop (Tauri v2)
Not to be confused with DeetsMusic, the separate SwiftUI iOS app. This is the Windows port, and it shares no code with it.
New here? Read docs/HANDOFF.md first — cold-start guide (state, how to run, next steps).
- Full DRM playback through MusicKit JS v3 running in WebView2, with a live-synced native queue model, gapless manual queueing, and drag-to-reorder
- Apple Music sign-in via a loopback browser flow — a
tiny_httpserver catches the redirect locally - Library sync into a local SQLite cache, so browsing doesn't hit the network
- Cards: Home, Library, Search, Playlists, Queue, History, Rewind, Album Reviews, Rulez, and Radio (Apple stations plus seeded right-click "Start Station"); Ctrl+Space opens the Compass to reach any card, setting or library item from the keyboard
- Three surfaces (Mini, Midi, Max) in one window that changes size
- 6 themes × 7 skins (Vanilla, Press, Ocean, Glass, Cyber, Metal, Happy), frameless custom chrome, all driven from CSS tokens
- Rules — make the app act on its own (a time, a surface, a speaker, a genre) from plain words
- Tray-first window behavior — a tray-click flyout, minimize-to-tray, and a single running instance however you launch it
- Agent control — a
deetsmusicCLI and MCP server over a loopback bridge
The Rust side mints an ES256 developer-token JWT from a MusicKit private key
(src-tauri/src/apple.rs), then injects MusicKit JS into the WebView so DRM-protected
audio decodes inside the browser engine rather than in Rust. User sign-in is a separate
OAuth-style flow producing a music-user token. Library, catalog enrichment, and playlist
reads/writes go to api.music.apple.com over reqwest.
Tauri v2 (Rust) + WebView2 · vanilla TypeScript + Vite, no framework ·
SQLite via rusqlite · reqwest · jsonwebtoken · tiny_http
- Rust (
x86_64-pc-windows-msvc) + Visual Studio 2022 Build Tools (Desktop development with C++ — provideslink.exe) - Node + npm
- Optional: an Apple Developer MusicKit key, to sign tokens locally in a dev build —
see
src-tauri/secrets/README.md. Without one, a dev build fetches its token the same way the installed app does.
To use the app, you do not need any of this. You need Windows 11, an Apple Music subscription, and the installer (docs/ops/RELEASE-NOTES.md).
npm install
npm run tauri dev # first Rust build is slow
npm run release # build the installer → installers/DeetsMusic_<version>_x64-setup.exedocs/HANDOFF.md — status, gotchas, next steps · docs/architecture/UI-ARCHITECTURE.md — themes, skins, panels, chrome · docs/architecture/DATA-ARCHITECTURE.md — auth, model, provider, cache · docs/ops/RELEASE-NOTES.md — what each version brings, and how to install · docs/ops/RELEASE.md — build, install, uninstall · docs/features/TRAY.md — tray, panel, window lifecycle · docs/integrations/AGENT-SETUP.md — connect Claude Desktop, Claude Code, Cursor, or a terminal (plain words) · docs/integrations/AGENT.md — the CLI / MCP surface · docs/ideas/ — feature ideas that are not built
index.html,src/— front end (TypeScript + the token CSS system insrc/styles/)src-tauri/— Rust (auth, provider/model, SQLite cache, tray, loopback bridge)cli/— thedeetsmusicCLI + MCP serverextension/— the MV3 browser extension (parked: not built or shipped)swatch.html— standalone theme/color reference
The roadmap is in docs/HANDOFF.md. Releases after 0.4.3 are Authenticode-signed (publisher Aditya Sundaram), and the app updates itself. Since 0.28.0 updates come through Velopack, and an install refuses an update feed that does not carry a signature from the key compiled into the app. How builds are signed, published and updated: docs/ops/RELEASE.md ("The release pipeline at a glance").
Support, bug reports and feature requests live at deets.solutions/deetsmusic, or in the app under Settings › Bugs, which files a report from inside DeetsMusic and shows its status.
This repository is the source, published so the app can be read and audited. It is not
where the project is run: GitHub Issues and Discussions are off, and pull requests are not
reviewed or merged. The source is MIT-licensed, so forks are fine. A fork must bring its own
back end: the token mint, update channel and report intake at deets.solutions serve
DeetsMusic builds only (docs/ops/RELEASE.md §7a).
-
Apple. Sign-in, your library, search and playback go straight to Apple (
api.music.apple.comand MusicKit). Your Apple sign-in token stays on your PC. -
The access key. The app needs an Apple Music developer token. It fetches one from
music-api.deets.solutions/tokenabout once a week. That request carries the app version and a fixed build key that names the official build, nothing about you. The server keeps a daily count of tokens it gives out. It does not store your IP address, the token, or anything about you. -
The log. The app writes a log file on your PC (Settings › Bugs › App log). It redacts tokens, and names catalog ids instead of song titles. It leaves your PC only when you send a bug report with Attach log on (Settings › Bugs). The app shows the exact text before it sends, and a report goes to
support.deets.solutionswith the app version. A suggestion never carries the log. -
Replies to your reports. While a report you sent is open, the app asks
support.deets.solutionsabout it at most once a day, so it can tell you when Aditya replies. The server notes when your app or the support page last checked the report, and when you first saw and opened each of his replies, so he knows his reply reached you. It keeps only those times and the word "app" or "website": no ID, no IP address. Turn off the reply notice (Don't show again) and the checks stop. -
Your playlists. Playlists you make in DeetsMusic are stored on this PC only. A new PC or a reinstalled Windows starts without them. To keep a copy, use Apple Music ▸ Export to Apple Music on the playlist.
-
Usage counts. While Settings › About › Send usage counts is on, the app sends small reports to
support.deets.solutions, each at its own random moment:- once a day, the app version, and whether this is its first count of the week or month, or its first ever; and how many minutes of music played on the last day it sent one, as one number (never which songs, and never when in the day); and, for that day, how many times you opened some panels and used some features (the sleep timer, a web, a pin…), and which of them were your first use that week or month, as names and numbers only;
- once a week, how many times an AI app or the terminal called each kind of command;
- once a week, your on/off and choice settings (never a slider, a time, a name, or anything you typed);
- once a week, how many errors the log counted, by area, and how Apple's replies went, as numbers only, how many songs your library holds, rounded up to the next 100, and how long its syncs took;
- when an update downloads and when it applies, the two version numbers, as a count; when it applies, also the songs in your library, rounded up to the next 100.
No report carries an ID. Each one carries the day and a random key made for that one report, so the server can drop a copy it already has; the server keeps the key alone for 2 days and nothing points from it to you. The server stores no IP address, no songs and nothing about where you are, and deletes everything after 13 months. A download of the installer from deets.solutions or the Microsoft Store is counted by the server, as a number per day and version. The row is on by default, and the welcome screen shows it on its Nitpicks page. What is sent, in Settings › About, shows each report exactly as it leaves. Turn the row off and nothing is sent.
-
What you turn on. Some features send what you play, and only after you turn them on. Last.fm scrobbling sends each song you play to your Last.fm account. Share activity on DeetsMusic (off by default) lets the friends you added see the song, the artist and the cover while you listen. Share activity on Discord (off by default) shows the song on your Discord profile. A listening room shares the room's songs with the people in it.
-
Nothing else. With these off, no listening history leaves your PC.
Apple Music is a trademark of Apple Inc., registered in the U.S. and other countries. DeetsMusic is an independent project. It is not affiliated with, sponsored by, or endorsed by Apple.