Back

A personal project: native macOS, open source

Rift

YouTube Music, made native for Mac.

Rift is a crafted, native Mac experience for YouTube Music: beautiful to look at, clean and easy to use, and powerful where it counts. Your library, playlists and recommendations, offline listening, synced lyrics and a Dynamic Island in the notch. Private by design and local-first, so your listening stays on your Mac.

RiftFri 9:41
The Rift app window on a Mac desktop

The Dynamic Island the Mac was missing. Hover the notch to open it.

Role
Solo: product, design and engineering
Platform
macOS 14 Sonoma and later, built in Swift 6
License
Open source under GPL-3.0
First sound
About 0.5 s from tap, instant if saved

Why I built it: a personal project, not client work

I wanted YouTube Music on my Mac as a real app. The only option was a browser tab.

The problem
YouTube Music has apps for phones and TVs, but on the Mac it has only ever lived in the browser: one more tab among forty, a queue that vanishes when the browser restarts, and nothing that behaves like it belongs on macOS.
What I built
Rift, a native player crafted for the Mac: clean enough to use on day one, private by default, with the notch and the menu bar as first-class surfaces. YouTube Music stays the catalogue and the recommendations; Rift is everything you see and hear.
  • A native Mac experience

    SwiftUI and AppKit, not a web page in a frame. Media keys, Now Playing, the notch and the menu bar all behave the way a Mac app should.

  • Easy from the first second

    Drag it to Applications and press play. No Homebrew, no Python, no setup screen, and no account needed to start listening.

  • Private and local-first

    No tracking, no analytics. Sign-in lives in the Keychain; history, stats and AI lyrics are worked out on your Mac and stay there.

From idea to finished product.

I took Rift from a blank Xcode project to an app anyone can download, and made every call along the way.

  • Product

    Shaped what a native player should be: one library, one queue, a notch that earns its place, and a signed-out mode that still just works.

  • Design

    Crafted a clean, beautiful interface in SwiftUI around Apple's Liquid Glass, keeping the same layout on Sonoma and Sequoia.

  • Engineering

    Built the playback engine, the YouTube Music client, offline caching, the notch and menu-bar players, and on-device AI lyrics.

  • Launch

    Packaged the app with its engine inside so it installs in one drag, then wrote the changelog and built the website.

Clean, calm, and unmistakably Mac.

Rift home with Liked Music, recently played and recommendations, and the floating player
Rift full-screen player with time-synced lyrics
Time-synced lyrics
Rift full-screen player with the Up Next queue
Queue you can reorder
Rift's menu-bar player popover
Menu-bar player for Macs without a notch
TAP · PlaybackSource.load()SAVED AUDIO · on diskRESOLVED STREAM · cacheYT-DLP · out of process

From tap to sound

01 / 05One call, one protocol

You press play.

Every screen hands the track to a single PlaybackSource and moves on. None of them knows, or needs to know, where the sound will come from.

Powerful, private, and local-first.

Keeps working when YouTube changes

On every launch Rift checks for a newer engine and updates it in the background. Playback recovers from YouTube's weekly changes without an app release.

Launch: check engine
Newer yt-dlp found
Updated in background

Offline that stays offline

A track that has played once is saved as audio. Two cache layers make replays instant and keep music playing with Wi-Fi off.

StreamCacheresolved URL, until it expires
AudioFileCachethe audio itself, 2 GB budget
Wi-Fi off, still playing

Lyrics in your script

Synced lyrics, transliterated and translated by Apple Intelligence or a local Ollama model. Nothing leaves the Mac.

Original, on this Mac

तुझ में रब दिखता है

Your listening, charted

Top songs, top artists and listening clocks, computed from a local file.

0006121823

history.jsonl, never uploaded

No second-class Macs

Liquid Glass on macOS 26; the same layout in blur on Sonoma and Sequoia.

Now playing
macOS 26, Liquid Glass

Nothing above the seam knows where audio comes from.

SurfacesCoordinatorThe seamSources & dataMain windowSwiftUI · Liquid GlassNotch islandAppKit panel · SpacesMenu-bar playerNon-notch MacsPlayerControllerQueue · history · crossfade timingPlaybackSourceNativePlayer (AVFoundation)InnerTube clientBrowse · search · recsyt-dlpOut of processCachesStreams · audio · 2 GBKeychainGoogle sign-in
Playback commandsAudio & storageYouTube Music API

Three surfaces drive one PlayerController. It plays through a single PlaybackSource; browsing and recommendations come from a Swift reimplementation of YouTube Music's InnerTube API, with no code ported from other clients.

The calls that shaped it.

Planned a hidden web player, shipped a native one

The first plan let YouTube's own web player run inside the app. A web view can't crossfade two tracks or play saved files, so audio moved to AVPlayer with yt-dlp resolving streams on the side.

One seam between the UI and the audio

Every screen talks to a single PlaybackSource protocol. Swapping how audio is fetched is one new class, with no screen touched.

Ship the engine inside the app

A trimmed Python runtime and a 3 MB yt-dlp unpack on first launch in about half a second. Nothing to install, nothing to configure, on any Mac.

Warm what the listener is looking at

Opening an album or a carousel quietly resolves the first tracks, three at a time, so the tap that follows is a cache hit.

Let the engine heal itself

v1.0.1 checks for a newer yt-dlp on every launch and stopped pinning a player client YouTube had already deprecated. Breakage gets fixed without shipping an app update.

Keep listening data on the Mac

History is a local file, stats are computed from it, lyrics AI runs on Apple Intelligence or Ollama locally, and credentials live in the Keychain.

Stack

App

Swift 6SwiftUIAppKitCombineLiquid Glass

Audio

AVFoundationMPNowPlayingInfoCenteryt-dlpBundled CPython

Data

InnerTube (reimplemented)KeychainWKWebView sign-inJSONL history

On-device AI

Apple Intelligence (FoundationModels)OllamaNaturalLanguage

Honest limits

  • Rides on yt-dlp. When YouTube changes faster than yt-dlp ships a fix, cold tracks wait for the update; cached and saved tracks keep playing.
  • Unofficial client. Not affiliated with Google or YouTube. Downloading may conflict with the service's terms, so the app ships no ads and no bundled credentials.
  • Some features need macOS 26. Liquid Glass, crossfade and Apple Intelligence lyrics; earlier versions get the fallback.
  • The notch builds on open source. The island adapts GPL code from Atoll, credited in the repo; everything else is written for Rift.

Have something worth building?

Tell me what you're building and where it's stuck. Every message reaches me directly, and I reply personally.

Available for freelance© 2026 Mustafa Patharia. All rights reserved.