mixmusic README

The project's README from github.com/fzn0x/mixmusic. As one markdown file: README.md.

English · हिन्दी · 简体中文 · Bahasa Indonesia · اردو · Hausa · Português (Brasil) · বাংলা · Русский · አማርኛ

MixMusic's icon: two pink rings and a play button on black

MixMusic

One player for YouTube Music and Spotify.

YouTube Music and Spotify client for macOS, Windows and Linux. YouTube Music works with no account. One search, one queue, mixed playlists, synced lyrics, podcasts, your own music files, casting, themes and plugins.

CI Website Latest release Downloads Go Reference Go version Listed on Awesome MyGo macOS, Windows and Linux MIT or GPL-3.0

fzn0x%2Fmixmusic | Trendshift

Website · Download · Docs · Every feature · Changelog

MixMusic in its default look, the Blend layout with the Mix theme, standing upright on a dark stage and facing you: now playing アイドル by YOASOBI in the middle, outlined in pink, with romaji under each line of its lyrics and the mini player in front of it; a search on the left and the library's mixes on the right

Why MixMusic

If your music is split between YouTube Music and Spotify, you usually need two apps, with two searches, two queues and two libraries. MixMusic puts both services in one player:

Features

What MixMusic does, area by area, and where you find it in the app. Built in means it works by itself. Features lists all 363 features from 0.1.0 to 0.5.12, one line each, with the version each came in.

Search and play

Home and Explore

Lyrics

Podcasts

Your library

Music on this computer

Accounts and services

Spotify, three ways

Choose in Settings › Playback › Spotify tracks.

Sound

Casting, friends and other computers

On your desktop

Make it yours

Backups, import and export

Updates

A look around

MixMusic's pages in the Blend layout, standing upright on a dark stage and facing you: now playing アイドル by YOASOBI in the middle, outlined in pink, each line of its lyrics with romaji and an English translation under it; the album THE BOOK 3 on the left and a followed podcast's page on the right

Listen. In the middle, now playing アイドル by YOASOBI: each line lights up as it's sung, with romaji and a translation under it. On the left, an album; on the right, a podcast you follow.

More of MixMusic, standing upright on a dark stage and facing you: Settings › Appearance with the four layouts in the middle, outlined in pink; a Material theme coloured by the cover that plays on the left, and the marketplace's community themes on the right

Make it yours. In the middle, the four layouts: Blend, the default, Expressive, Crate and Tiles, under the themes. On the left, a Material theme that takes its colours from the cover that plays. On the right, community themes in the marketplace.

Docs

The guides are on the website, at mixmusic.functionx.dev/docs, also at fzn0x.github.io/mixmusic/docs, where a search finds any of them, and in docs/ here.

Install

Download the file for your system from the latest release:

System Download
macOS 12 and later (Apple silicon and Intel) mixmusic-<version>-macos-universal.dmg
Windows 10 and 11 (x64, Arm), installer mixmusic-<version>-windows-<arch>-setup.exe
Windows, portable, no installation mixmusic-<version>-windows-<arch>-portable.zip
Debian, Ubuntu and derivatives mixmusic-<version>-linux-<arch>.deb
Fedora, openSUSE and derivatives mixmusic-<version>-linux-<arch>.rpm
Arch Linux and derivatives (coming soon) mixmusic-bin on the AUR: yay -S mixmusic-bin
Any Linux, one file mixmusic-<version>-linux-<arch>.AppImage
Any Linux, sandboxed (Flatpak) mixmusic-<version>-linux-<arch>.flatpak
Any Linux, in your home folder mixmusic-<version>-linux-<arch>.tar.gz, with install.sh
Android 8 and later, phones and tablets mixmusic-<version>-android.apk, or the APK of your device's chip
Android TV and Google TV mixmusic-<version>-android-tv.apk, or the APK of your TV's chip
iPhone and iPad, iOS and iPadOS 17 and later No download yet: build it on a Mac, with a free Apple ID

<arch> is amd64 for x64 and arm64 for Arm. Each release lists SHA256SUMS to check the downloads with. You don't need the files named update-…, ….delta, mixmusic-<version>-darwin-universal.tar.gz or -windows-<arch>.tar.gz: installed apps update from them.

The installers, the portable zip and the Linux archive update themselves. The .deb, the .rpm, the AppImage and the Flatpak can't replace their own files, so MixMusic tells you when a new version is out and downloads it for you. The AUR's mixmusic-bin updates with the rest of your system. For the portable zip, unpack it anywhere and open MixMusic.exe. For the AppImage, make it executable (chmod +x) and open it. For the Flatpak, open it with your software center, or run flatpak install ./mixmusic-<version>-linux-<arch>.flatpak; the first time, Flatpak fetches the GNOME runtime from Flathub.

On a Mac, Homebrew installs MixMusic too, and brew upgrade updates it:

brew install --cask fzn0x/tap/mixmusic

On Android, mixmusic-<version>-android.apk works on every phone and tablet. The APK of your device's chip is smaller: -arm64-v8a.apk for nearly every one since 2017, -armeabi-v7a.apk for older and low-cost ones, -x86_64.apk for Chromebooks. Open the APK on the phone or tablet, and let your browser install apps when Android asks. A new version installs over it: Settings › About says when one is out and offers its APK. iPhone and iPad have no download yet: you build MixMusic for your own device on a Mac.

On a TV with Android TV or Google TV, take mixmusic-<version>-android-tv.apk, or the smaller APK of the TV's chip, named the same way: -armeabi-v7a.apk for most TV boxes and sticks. Install it with a file manager that installs apps, and MixMusic shows on the TV's home screen.

Getting started walks through the install and the first launch on each system.

The first launch

The Flatpak

The Flatpak runs MixMusic in a sandbox, which sees the network, the sound server, the display and the GPU, and none of your home folder but the profiles of browsers installed from Flathub, read only, which a YouTube Music sign-in can be imported from. It comes for x64 and for Arm64, such as the Raspberry Pi 5, Asahi Linux and Snapdragon laptops. MixMusic isn't on Flathub for now: install the release's .flatpak.

The Flatpak keeps its settings and library in ~/.var/app/io.github.fzn0x.mixmusic, apart from a .deb, .rpm, AppImage or archive copy, and both can run at once. To bring a copy's settings and library over, back it up in Settings › Desktop › Backups and restore the file in the Flatpak. To copy the files by hand instead, quit both, then copy settings.json, library.json, plays.jsonl, local-copies.json, queue.json, positions.json and the addons and mix-covers folders from ~/.config/MixMusic into ~/.var/app/io.github.fzn0x.mixmusic/config/MixMusic. Quit both first: a running MixMusic keeps library.json and most other files in memory and writes over a copied one at its next save. Then sign in to your accounts again: sign-ins stay in the other copy's keyring. The data and privacy page says what each file holds.

In the Flatpak, start at login goes through your desktop, which may ask you first, and a yt-dlp of your own must be in ~/.var/app/io.github.fzn0x.mixmusic, as the sandbox sees no other folder. A Discord app that isn't a Flatpak shows what plays only if it was running when MixMusic started, until it restarts; Discord as a Flatpak works either way. The Flatpak is new: tell us in an issue how it runs on your desktop.

Accounts (all optional)

Accounts tells each sign-in step by step.

Known limits

Something not working? Troubleshooting covers the common problems and the known issues.

Build from source

You need Go 1.27.3 or later, Bun 1.4 or later, which runs MyGo's command line, and Git. MyGo needs no C compiler, so any system builds MixMusic for every system.

Windows

winget install GoLang.Go
winget install Oven-sh.Bun
winget install Git.Git

Open a new terminal, then:

git clone https://github.com/fzn0x/mixmusic
cd mixmusic
bun install
bun run dev

Signing in and Spotify playback need the WebView2 Runtime, which Windows 11 includes. On Windows 10, install it from Microsoft.

macOS

With Homebrew:

brew install go oven-sh/bun/bun
git clone https://github.com/fzn0x/mixmusic
cd mixmusic
bun install
bun run dev

Linux

Install Go from go.dev/dl (distribution packages are often older than 1.27.3), then Bun and the libraries MixMusic runs with:

curl -fsSL https://bun.sh/install | bash
# Debian and Ubuntu
sudo apt install git libgtk-3-0 libpulse0 libwebkit2gtk-4.1-0 libayatana-appindicator3-1 libsecret-1-0
# Fedora
sudo dnf install git gtk3 pulseaudio-libs webkit2gtk4.1 libayatana-appindicator-gtk3 libsecret

Then:

git clone https://github.com/fzn0x/mixmusic
cd mixmusic
bun install
bun run dev

Nix

With Nix, nix develop gives you the tools releases are built with, at the versions flake.lock pins: Go 1.27, Bun, GoReleaser, jq, zip and Zola, and on Linux NSIS, osslsigncode and binutils. nix build builds MixMusic for Linux from source, into result/, and nix run github:fzn0x/mixmusic runs it.

Phones and tablets

For Android, any system with the Android SDK, its NDK and a JDK from 17 on: bun run build -- -platform android/arm64 builds an APK for phones and tablets, in build/android/. It is signed with the debug key, so uninstall it before you install a release's APK, which MixMusic's own key signs.

For an iPhone or iPad, a Mac with Xcode:

  1. In Xcode, add your Apple ID under Settings › Accounts. A free one does.
  2. On the device, turn on Developer Mode (Settings › Privacy & Security), and connect it to the Mac.
  3. Run bunx mygo devices for its name, then bun run dev -- -platform ios -device "<its name>", which builds MixMusic for it, signs it for your Apple ID and installs it.

A free Apple ID's apps stop opening after 7 days, until you build them again, and Apple lets a free account sign for only a few devices and apps (Apple's comparison of memberships). MixMusic hasn't been installed on an iPhone this way yet: tell us how it goes in an issue.

bunx mygo doctor says which of these tools a computer has, and how to get those it lacks. Phones and tablets tells how MixMusic builds for them.

Develop

bun run dev builds the app, starts it, and rebuilds it as you edit. Its data stays apart from an installed MixMusic, under the name MixMusic Dev.

bun run build:plugins          # the plugins' JavaScript, from their TypeScript
go test ./...                  # the app's tests
bun run typecheck              # the plugin SDK and the community's plugins
go run ./tools/registry -check # the community registry
bun run build                  # the packaged app for this system, in build/
bun run build -- -platform windows/amd64,linux/amd64,linux/arm64

In the Nix shell, build Linux downloads with .github/scripts/build.sh linux/amd64,linux/arm64, as releases do. A plain bun run build there makes a Linux program that asks for Nix's own loader, and it starts only on NixOS. go run ./tools/elfloader build/linux-amd64 checks a build.

The website is in site/, built with Zola, and the guides in docs/ are its /docs/ pages. go run ./tools/sitedocs && zola --root site serve previews it. Releases are built in the Nix shell and published by GoReleaser (.goreleaser.yaml).

CONTRIBUTING.md has the checks to run before a pull request, and docs/architecture explains how the parts fit together, a page for each.

Layout

The app is the root package, with the packages of internal/ under it. The packages outside internal/ are for anyone to import, and documented on pkg.go.dev.

*.go                 the app and its windows: the pages, the player bar, the
                     mini player, the tray, media keys, deep links
fonts/               the typefaces the windows draw with
locales/             the app's words, in English and 66 other languages
internal/app         the services the windows call, and the desktop integration
internal/player      the queue, played by the audio engine or on Spotify's devices
internal/audio       MixMusic's audio engine, and the system's audio output
internal/stream      audio streams, from YouTube or yt-dlp, opened for the engine
internal/youtube     YouTube Music's catalog, and your account there
internal/spotify     the Spotify Web API, its sign-in and Spotify Connect
internal/match       Spotify tracks matched to their YouTube Music recordings
internal/library     liked and disliked songs, mixes, history and stats
internal/localfiles  the music on this computer; tags and tagwrite, its tags
internal/romaji      Japanese lyrics in romaji, kanji read by kagome;
                     romanize, the Latin letters of other scripts
internal/cast        casting to Chromecasts; upnp, to DLNA renderers; fcast,
                     to FCast receivers; dnssd finds them on the network
internal/room        Listen with friends; remote, remote control; portmap,
                     the router's forwarded port
internal/mcp         AI assistants, over the Model Context Protocol
internal/lastfm      scrobbling to Last.fm; listenbrainz and librefm, to
                     theirs; scrobble, which plays count
internal/discord     what plays, on your Discord profile
internal/plugins     plugins, each in a JavaScript engine of its own
internal/addons      themes and plugins, and the community registry
internal/backup      backups and restores; playlistio and export, the files
                     of lists and tracks in and out
internal/diag        the log, without secrets, and the reports of crashes
internal/settings    your preferences and their defaults
builtin/themes       the themes MixMusic ships with
public/              the pages MyGo embeds: Spotify's player, on Windows and
                     macOS, and the picture of music videos
sdk/                 the types of the plugin API
community/           community themes and plugins, and their registry
docs/                the guides, the website's /docs/ pages
site/                the website, built with Zola
tools/               the commands that build and check the repository's parts
packaging/, nix/     the Flatpak, Flathub, AUR and Homebrew packages, and Nix
changelog.d/         the changelog entries of what isn't released yet

docs/architecture tells of the other packages of internal/, a page for each part of the app.

The packages you can import:

opus/                an Opus decoder in pure Go, a port of libopus's
aac/                 an AAC-LC decoder in pure Go
ac3/                 an AC-3 and E-AC-3 decoder in pure Go, written from ATSC A/52
flac/                a FLAC decoder in pure Go, as RFC 9639 has it
ogg/                 the packets of Ogg files, as RFC 3533 has them
webm/                the audio of WebM files: packets, times and seeking
mp4/                 the audio of MP4 files: packets, times and seeking
resample/            sample rate conversion, with Kaiser-windowed sincs
lyrics/              synced lyrics from Better Lyrics, Unison and LRCLIB, and translations
brand/               MixMusic's logo, for code that draws it

Community

Anyone can install community themes and plugins from the marketplace, the store icon in the sidebar, and you can add yours.

Make a theme

A theme is a theme.json file that sets colors, fonts and corners, which show in the layout the user chose. docs/themes.md lists every token and shows a complete theme. To try yours, put its folder in the themes folder (Settings › Appearance › open themes folder) and choose it in Settings › Appearance.

Make a plugin

A plugin is a small module, written in TypeScript or JavaScript, that adds pages, commands, track actions and widgets. docs/plugins.md documents the API, with its types for your editor. The community's sleep timer and spectrum are working examples.

Share it

  1. Fork this repository.
  2. Add one folder: community/themes/<id>/ with its theme.json for a theme, or community/plugins/<id>/ with its plugin.json and its index.ts for a plugin.
  3. Run bun install, bun run build:plugins, go run ./tools/registry and go run ./tools/registry -check.
  4. Open a pull request, with a screenshot.

Once it is merged, CI publishes it to the registry branch, and it shows up in everyone's marketplace. community/README.md has the details.

Privacy

MixMusic has no account, server, analytics or telemetry of its own. It talks to:

Plugins can send what they like: a plugin's permissions are shown to you, not enforced, which is why MixMusic asks you to trust a plugin before it enables it. Your data and privacy has a table of what each feature sends where.

What it keeps on your computer:

The library's history page clears what you played, Settings › Playback clears the cache and the covers, and signing out of a service deletes its sign-in. Clear, move or reset tells how to move your data, keep a portable copy with MIXMUSIC_DATA_DIR, or start afresh.

On Windows, the visualizer hears the audio of Spotify playing on this computer, in MixMusic or in the Spotify app, through Windows' process loopback, which hears only that app. On macOS 14.2 and later, it hears Spotify playing in MixMusic through a process tap, once you allow it, as macOS asks. It analyzes the audio in memory and never records or sends it.

Credits

MixMusic is built on these projects:

Credits names every project, paper and standard MixMusic builds on.

Contributing

Fixes, features, themes, plugins and bug reports are all welcome.

Everyone taking part follows the code of conduct. CONTRIBUTORS.md thanks the people whose code, ideas and reports shaped MixMusic.

License

MixMusic is dual-licensed: use it under the MIT license or the GNU General Public License, version 3, whichever you prefer. Contributions are accepted under both. The typefaces in fonts are under the SIL Open Font License: Selawik's, Quicksand's, Roboto Flex's and Archivo's. The Opus decoder is a port of libopus, under its BSD license, the AAC decoder derives from SharpJaad, under its MIT license, and the HCT color science is a port of Material Color Utilities, under its Apache license. Other parts keep the licenses of what they derive from, such as the filters of Chromium's Web Audio, go-mp3, jfreymuth/vorbis, kagome and the Unihan data: License lists each.

MixMusic is not affiliated with, endorsed by or sponsored by Spotify or Google. It plays what these services offer their users, through the services' own interfaces; use it as their terms allow. Spotify and YouTube Music are trademarks of their owners.

mixmusic (fzn0x/mixmusic)

material-ui
Searching Database…

What is this?MixMusic is a native desktop player that plays YouTube Music and Spotify in one app, with one search, one queue and one library, on macOS, Windows and Linux.
Is it a web app or a native program?It is a native program written in Go that draws its own windows on the GPU, with no browser inside, so it stays small.
Do I need an account or extra software?No: YouTube Music works with no account, and Spotify sign-in is optional. Linux needs GTK 3 plus PulseAudio or ALSA, and Windows 10 needs the WebView2 Runtime, which Windows 11 already includes.
Does Spotify playback work for every account?Playing Spotify inside MixMusic needs Spotify Premium and works only on Windows and macOS. Without Premium, Spotify tracks can still play through their YouTube Music recording.
Does it send my data to a server of its own?No: MixMusic has no account, server, analytics or telemetry of its own. Sign-ins are kept encrypted, and Last.fm and Discord are optional integrations.
Can I customize how it looks?Yes: four layouts (Blend, Expressive, Crate, Tiles), fourteen built-in themes, community themes from a marketplace, and an accent color taken from the playing cover.
Can I change keyboard shortcuts and add plugins?Yes: any command can get your own key, a command palette opens with Ctrl K, and plugins can add pages, commands, track actions and widgets through a typed API.
Why put YouTube Music and Spotify in one app?If your music is split between both, one search, one queue and mixed playlists save you from juggling two apps with separate searches and libraries.
Does it keep running in the background?It offers tray controls, track notifications, start at login, and global shortcuts that work whichever window is in front, plus media keys on all three systems.
Creator
fzn0x
Size
73.1 MB
Stars
462
Age
1mo
Commits · 90 Days