Project #42026
Lucid
A small, native, ad-free YouTube Music client for Android.
Lucid is a lightweight, native YouTube Music client for Android built with Kotlin and Jetpack Compose. It communicates directly with YouTube’s internal InnerTube API and plays through Media3 without a backend server or audio ads, focusing on a clean player, essential themes, and core listening features.
KotlinJetpack ComposeAndroid SDKMedia3 ExoPlayerRoomQuickJS
Features
- Ad-free audio streaming directly from YouTube’s internal API
- Offline downloads for songs, albums, playlists, and automatic library syncing
- Google sign-in with multi-account switching and full YouTube Music library sync
- Synced third-party lyrics with source ordering, per-song timing nudge, and local caching
- Media3 playback with loudness normalization, ten-band equalizer, crossfade, and sleep timer
- Android Auto, home-screen widget, lock-screen controls, and Spotify playlist import
Challenges
- Resolving YouTube InnerTube streams client-side by minting PoTokens via a hidden BotGuard WebView and solving signature ciphers locally in QuickJS without a backend.
- Stripping down bloated UI layers, preset themes, and blurred headers from the upstream fork to maintain smooth scrolling and a lightweight footprint.
What I learned
- Managing foreground media playback services, disk caching, and system media sessions with AndroidX Media3.
- Integrating local Room persistence, multi-provider synced lyrics resolution, and client-side JavaScript execution in a modern Jetpack Compose architecture.
Questions or feedback about this project? Email me.