Skip to main content
Selected work

Listening archive

echo

Keep what you listened to.

A private Spotify listening archive that saves recently played tracks to a playlist you own. No feed, no social graph.

Year
2026
Platform
Self-hosted web app
Source
Private repository
Recently played tracks become a private Spotify playlist, with the newest additions first.

The idea

A song can disappear into yesterday's listening history before you remember to save it. Echo periodically reads your recently played tracks and adds them to a private Spotify playlist, newest first. The archive lives in Spotify, where you can return to it without opening another app.

How it works

  1. Connect Spotify

    Authorize your Spotify account. Echo creates a private playlist and keeps the credentials on the server.

  2. Listen as usual

    A background worker checks recent listening, every five minutes by default. Newly played tracks are added at the front of the playlist.

  3. Choose what to keep

    Archive each track once, or keep every play, including repeat listens. The dashboard shows recent additions and sync status. Disconnecting leaves the Spotify playlist in place.

Under the hood

  • Go
  • Postgres
  • templ

A small server-rendered interface

Go, Chi and templ render the landing page, dashboard and account controls. The browser does not need JavaScript. PostgreSQL holds account credentials, archive checkpoints and synchronization state.

Synchronization that remembers its progress

Checkpointed batches and playlist reconciliation help the worker resume without creating an extra playlist after an uncertain response. The archive can skip tracks already saved or preserve repeated plays, depending on the account's setting.

A clear connection and exit

Spotify authorization uses PKCE and one-use state. The browser receives an encrypted session cookie, and account actions use CSRF protection. Disconnecting deletes Echo's local account data and playlist association while preserving the playlist in Spotify.

Good to know

Echo is a personal, self-hosted listening archive. Because Spotify only provides a limited window of recent plays, Echo cannot guarantee a complete listening history. Changes to archive mode apply to future syncs and leave existing playlist entries unchanged.