Music Vault
GitHub

Open source · Self-hosted

Your music, in your own vault.

A music library and player for people who keep their own music. A Windows app, an Android app and a web app share one account, one library, and the same playlists, favorites and listening history.

Your songs live in your own private Cloudflare R2 bucket and your library in your own Supabase project. Upload the music you own and play it anywhere, online or off.

  • Free, MIT license
  • Windows · Android · Web
  • No analytics
The Music Vault library: every song with its album and length, the sidebar with smart playlists and playlists, and the player bar along the bottom
The library on Windows and the web. Every song and cover shown is invented.

Three apps

One library on every screen you use.

Sign in with the same email and password on each device. Favorites, playlists, edits, the queue, settings and play history follow you between them.

  • Windows

    Windows 10 or 11

    • A Rust audio engine with gapless playback and crossfade
    • A 10-band equalizer and ReplayGain
    • FLAC, ALAC, APE, WavPack and the common lossy formats
    • A mini player, tray controls and Windows media keys
  • Android

    Android 9 or later

    • Background and lock-screen playback
    • Notification and Android Auto controls
    • Gapless, crossfade and the same equalizer
    • Share files to Music Vault to upload them
  • Web

    A current browser; Chrome and Edge are tested

    • Plays in the browser, with the same 10-band equalizer
    • Installs as an app (PWA) that opens offline
    • Drop files on the window to upload them
    • The user guide lives in its Help page

Features

A complete player for the music you already own.

There is no catalog to stream from: just your files, organized and playable everywhere. The full feature list and where the apps differ are on GitHub.

  • Library

    • Upload songs from any app and review each song’s details first; tags only pre-fill the form.
    • Edit title, artist, album, genre, language, release date, lyrics and cover, for one song or many.
    • Browse by song, album, artist, genre, year and language, and search across all of them.
    • Playlists with drag-and-drop ordering, favorites, and smart playlists built from rules.
  • Playback

    • A queue with play next and add to queue.
    • Synced lyrics, a visualizer, a sleep timer and a 10-band equalizer in every app.
    • Gapless playback and crossfade on Windows and Android.
  • Offline

    • Songs you play are cached on the device, from Off to 10 GB, so nothing downloads twice.
    • Download a song, album, artist or playlist to keep it.
    • “Download all songs automatically” keeps the whole vault on a device.
    • Every download is checked against the song’s BLAKE3 hash before it is kept.
  • Statistics

    • Listening time, plays, streaks and an activity chart.
    • The last six months as a heatmap, with your whole history a click away.
    • A listening clock and your top artists, albums, genres and songs.
    • A yearly recap on Windows and the web.
  • Sync

    • Favorites, playlists, edits, settings and play history sync between devices.
    • Pause on one device and the next one you open picks up the same song.
    • Edits made offline wait in a queue and go up when you reconnect.
    • When two devices disagree, the newest edit wins.

Screens

See it before you set it up.

Windows and the web share these screens; Android has its own, built for touch. Each follows your light or dark theme, as this page does.

Windows and web

  • An album page: a large cover, Play and Shuffle, and the album’s songs
    An album, with downloaded songs ticked.
  • The full player: the cover, title and artist, and the Up next queue beside them
    The full player, with what plays next.
  • Statistics: summary cards, the listening activity chart and a six-month heatmap
    Statistics: listening time, activity and a six-month heatmap.
  • Downloads: the auto-download switch, the auto-cache limit with Clear cache, and the downloaded songs
    Downloads: auto-download, the cache limit and kept songs.

Android

  • Android library: songs with covers, Play and Shuffle, the mini player and the bottom tabs
    Library
  • Android full player: a large cover, the seek bar, playback controls, and Up next and Lyrics
    Full player
  • Android statistics: range chips, summary cards and the listening activity chart
    Statistics
  • Android album page: a large cover, Play, Shuffle and Download, and the album’s songs
    Album
  • Android Downloads: the auto-download and Wi-Fi switches, the auto-cache limit and the downloaded songs
    Downloads

Every song, cover and number in these images is invented. They come from a demo library built into the source code, captured without an account.

How it works

No shared server. Just your own two accounts.

Each install runs on its owner's free Supabase project and Cloudflare R2 bucket. The apps talk to those directly; nothing in between belongs to this project.

The Windows, Android and web apps sync with Supabase, ask the vault function for signed URLs, and upload and download audio directly from Cloudflare R2. YOUR DEVICESWindows appTauri 2 · React · RustAndroid appKotlin · Compose · Media3Web appNext.js · PWAEach keeps a local copy and works offlinesyncask for a signed URLupload and download audioSupabaseaccount · song details · playlistsplay history · sync statevault functionsigns short-lived URLsholds the R2 keysCloudflare R2your audio and covers The Windows, Android and web apps sync with Supabase, ask the vault function for signed URLs, and upload and download audio directly from Cloudflare R2. YOUR DEVICESWindowsTauri · RustAndroidKotlin · ComposeWebNext.js · PWAEach keeps a local copy and works offlineSYNC BOTH WAYSSupabaseaccount · song details · playlistsplay history · sync stateASK FOR A SIGNED URLvault functionsigns short-lived URLsholds the R2 keysUPLOAD AND DOWNLOADCloudflare R2your audio and covers
  • Supabase holds the library

    The account, every song's details and the sync state live there, behind row-level security, so each account only ever sees its own rows.

  • R2 holds the music

    The vault is a private R2 bucket. Only the vault function holds its keys; the apps ask it for short-lived upload and download URLs.

  • Each app keeps a local copy

    So it starts instantly and works offline. Changes go into a local queue and sync in the background.

More detail in the architecture notes and the sync protocol.

Privacy

Your music stays yours.

Music Vault keeps one person's music in their own accounts.

  • Stored in your accounts

    Audio and covers sit in your R2 bucket; song details, playlists, favorites, play history and sync state in your Supabase project. No server run by this project sees any of it.

  • No tracking

    The apps contain no analytics and no crash reporting. This page has none either.

  • Row-level security

    The Supabase anon key is built into every app by design; row-level security, keyed to the signed-in account, is what protects the data.

  • Keys stay on the server

    The R2 keys exist only as Supabase secrets read by the vault function, which hands the apps short-lived signed URLs.

  • Checked downloads

    Every download is checked against the song’s BLAKE3 hash before it is kept.

Run your own

Four steps, each with its own guide.

Music Vault has no shared server, so there is nothing to sign up for. You set up your own backend once, on free tiers, and every app you build connects to it.

  1. Create a Supabase project

    A free project, with the migrations applied. It holds your account and library.

    Read the guide: Create a Supabase project
  2. Set up the vault

    An R2 bucket with its CORS rules and API token, and the vault Edge Function that signs its URLs.

    Read the guide: Set up the vault
  3. Deploy the web app

    Import the repository into Vercel and add your Supabase project’s URL and anon key.

    Read the guide: Deploy the web app
  4. Build the Windows and Android apps

    Built with your project’s URL and anon key, so they connect to your backend and no one else’s.

    Read the guide: Build the Windows and Android apps

FAQ

Questions, answered.

Is Music Vault free?

Yes. The code is open source under the MIT license. It runs on Supabase, Cloudflare R2 and Vercel, which all have free tiers; whether your library fits in them depends on its size, so check their current limits.

Is there a hosted version I can sign up for?

No. Each install runs on its owner’s own Supabase project and R2 bucket. Nobody else, including this project, holds your music or your library.

Can I stream music I don’t own?

No. There is no catalog to stream from. You upload the music you own, from any of the three apps, and play it anywhere.

Which audio formats play?

The Windows app plays FLAC, ALAC, APE, WavPack, MP3, AAC, Ogg Vorbis and WAV. Android plays what its built-in media player supports, and the web app what your browser supports, so APE and WavPack files play on Windows only.

Is there an iPhone or Mac app?

No. The web app runs in a current browser, but only Chromium-based browsers (Chrome, Edge) are tested.

Does it work offline?

Yes. Each app keeps a local copy of your library and of the songs it has played or downloaded. Edits made offline wait in a queue and sync when you reconnect.

Can I contribute or report a bug?

Yes. Issues and small pull requests are welcome; for anything larger, open an issue first. Report security problems privately, as the security policy describes.