Skip to content
feelyourwarmthPublic
forked from dodo986/valen

About

A cross platform music player for linux and android. With various sources, full of features and an unusually beautiful design. An alternative to any music app.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

the valen tag, drawn stroke by stroke

NOT READY TO USE, YET.

linux + android · kotlin · compose multiplatform · spotify · youtube music · soundcloud · gpl-3.0

One player for Linux, Windows and Android — Spotify, YouTube Music, and SoundCloud in a single app.

Valen is a music player written once in Kotlin for Linux, Windows and Android. One queue, one now-playing screen, one library. You can throw a Spotify track between a SoundCloud set and a YouTube Music album without caring where each file came from—unless you actually want to check.

Check out the Roadmap (TODO.md) to see what's coming next.

three services, one queue

a marker line with a drip

The queue belongs to Valen. Spotify, YouTube Music, and SoundCloud sit behind a single interface, so the UI doesn't care which backend is active and no service gets to hijack your queue. Each service plays one track at a time, in the exact order you lined them up.

Playback runs through each service's own official player (Spotify Web Player in a headless bundled Chrome instance on desktop, the YouTube Music web app, and SoundCloud's streams). No DRM is bypassed, Valen never asks for your passwords, and it doesn't store credentials. On desktop, signing in opens the service's login page in your normal default browser and imports the session cookies (sp_dc, YouTube Music cookies, or SoundCloud oauth_token) into a private local store (0600, under ~/.local/share/valen on Linux and %APPDATA%\Valen on Windows). Likes, the queue and playlists created in Valen stay local. Adding a song to a playlist from a connected service also adds it to the original playlist, using your account’s edit permissions.

how does it work??
  • Spotify runs through its official Web Player via Chrome DevTools on desktop, and in a WebView on Android (the sign-in is Spotify's own page; Valen never sees the password). A build can leave it out with valen.android.spotify=false, and then Spotify tracks fall back to YouTube Music or SoundCloud. Since the Spotify web player pauses if it thinks the tab is hidden, desktop Valen spoofs window focus so you can keep it in the background.
  • YouTube Music and SoundCloud run natively on both platforms without a browser: NewPipeExtractor grabs the stream URL, and ffplay handles audio on desktop while ExoPlayer takes care of it on Android. A desktop needs FFmpeg (ffplay) on PATH; the Windows installer carries its own Chrome for Spotify, so nothing else has to be installed.
  • Spotify streams are never downloaded. The audio is DRM-protected and Spotify actively flags bulk fetching. If you save a Spotify track for offline use, Valen grabs the matching recording from YouTube Music (or SoundCloud as a fallback) using strict track-matching rules.
  • Encrypted HLS tracks on SoundCloud are skipped in search rather than decrypted. Valen will offer the same song from another service instead.

the wall

home on a wide window: a greeting, the playing song, the services

Home screen on desktop, pulling colors from the current cover art.

home, now playing, lyrics and your week on a phone

a marker line with a drip

the small things

  • Downloads. Save any playlist or individual track right from its menu.
  • Playlists. Playlists live inside Valen. Paste a Spotify, YouTube Music, or SoundCloud link—or pull from a connected account—and Valen keeps the exact playable tracks, matches the rest across other services, and flags anything it couldn't find instead of playing a bad cover or remix. Re-importing updates the list in place without wiping your manual edits, and additions to service playlists are confirmed on the original service before appearing locally. Songs from another service are matched to the same recording in the destination catalogue. Sign-in, permission or matching failures are shown instead of silently saving only in Valen; removals and renames remain local.
  • Disk caching. YouTube Music and SoundCloud streams cache as you listen, and the next track pre-fetches automatically so replays start instantly. Cache caps at 3 GB on desktop and 1.5 GB on Android, evicting the oldest plays first.
  • Offline mode. Valen automatically maintains an "Offline" playlist containing everything currently cached or downloaded on your device. It shows up once you have a song saved, disappears if you clear everything, and can be hidden under Settings → Downloads.
  • Local files. Play your local audio files and mix them directly into playlists alongside cloud tracks.
  • Self-updating. Both clients pull updates straight from GitHub Releases. The Linux AppImage swaps itself out for the next launch, the Windows installer runs after Valen has closed, and the Android app downloads and triggers the installer in one tap. Everything is verified via SHA-256 before applying. See RELEASING.md.
  • Unified artist pages. Artist views combine metadata and catalogs from Spotify and YouTube Music into one page.
  • Discord. Your profile says what you're playing, from the first launch (Settings → Discord turns it off), and everything on that card is yours to set — the two lines (with the song's title, artist, album, service, queue place or the line being sung filled in), what the member list says, the cover and Valen's mark, the time bar, what happens when you pause, and two buttons. Settings → Discord previews the card as you change it; Discord draws the buttons for other people only.
  • Recommendations & Radio. Home mixes, artist mixes, and "For You" rankings adapt based on your onboarding picks, listen duration, and early skips. Hit "Start radio" on any track to keep similar music rolling.

a marker line with a drip

credit

Valen is licensed under GPL-3.0. It builds on a lot of great open-source work (see NOTICE for full details):

  • Orpheon — Spotify Web Player plumbing, hidden-page scripts, YouTube Music integration, and the base immersive UI style (GPL-3.0).
  • Mochy Music — UI inspiration: tight semi-bold typography, full-bleed fading covers, ambient backdrops, liquid glass, the floating capsule player, queue layout, and playlist-matching logic (GPL-3.0; all code in Valen is written from scratch).
  • Metrolist — Lyrics handling and the ported Lyprio lyrics provider (GPL-3.0).
  • Astra — Parametric EQ filter model, presets, and AutoEQ parsing (GPL-3.0).

Valen is not affiliated with Spotify AB, Google/YouTube, or SoundCloud.

Note: LLMs were used to assist during development, though the architecture, direction, and plenty of the code are my own. If you still want to call it vibecoded, I don't really mind.

About

A cross platform music player for linux and android. With various sources, full of features and an unusually beautiful design. An alternative to any music app.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages