Project

TuneTurtle

a music player that streams your own library from an S3 bucket

Live at tuneturtle.io. Source on github.com/craigloftus/tuneturtle.

TuneTurtle plays music that you keep in your own S3 bucket. It is a web page and nothing else: there is no server behind it, no account, and no copy of your library anywhere but the bucket and your browser.

What leaves the browser

Requests to S3, and that is all. The AWS SDK runs in the page and signs a URL for each track that lasts an hour, so the audio goes from the bucket to the <audio> element with nothing in between. The list of tracks is kept in localStorage. Titles and artists come from the files’ own tags, read with music-metadata.

The TuneTurtle library with two rows, Local Album by Artist A and Remote Album by Artist B, and download, refresh and settings buttons in the header

The library, one row per album folder. This is not a real collection. It is the two-album fixture from the project’s Playwright tests, loaded into the real app.

It works offline

A track or a whole album can be downloaded into the browser’s Origin Private File System and played with no connection. The download button in the header cuts the library down to what is on the device.

The same library with the download filter on, showing only Local Album and a line reading Using 141.55 KB of 10 GB storage space

The same fixture with the filter on. Only the album marked as downloaded is left, and the line above it reports how much of the browser’s storage quota is in use.