← back

Napster TV

Napster TV was built to run across big screens, from Xbox to Samsung TVs to set-top boxes. This was before AI-assisted coding, and it is one of my fondest memories of writing code. A web app inside a Chromium VM on an underpowered TV does not leave you much room, and that constraint led to two pieces of work I still like.

Most of my time went into the layout and LRUD navigation. The DOM is extremely slow, and relying on it for spatial navigation made the app feel poor, and on low-power devices unusable. So instead of walking the DOM, I kept a tree, very much like a virtual DOM, and navigated that. Left, right, up, and down became traversals. It was a clean solution, and it was extremely fast.

The second thing was to stop using the DOM at all. We started rewriting the React renderer, after a Netflix engineering post about a closed-source project called react-gibbon. The idea was to point React at a canvas instead of the DOM. Layout stayed flexbox, run by Yoga, and the sliders and rails were the same as before, only drawn to a canvas. Unfortunately, I never saw the renderer ship. Napster went through a series of acquisitions and layoffs, the teams were split up, priorities moved, and eventually the TV app was shut down. It was a good problem while it lasted. I do wonder how much easier it would be to replicate today, with an agent that can hold those tree traversals in its head better than I ever could.

Napster TV home screen with Popular on Napster and New Music Videos
Napster TV now playing drivers license by Olivia Rodrigo
Napster TV recently played screen
Napster TV video playback of Male Fantasy by Billie Eilish
Napster TV search screen with an on-screen keyboard