# Témoin Spotify only exposes your last 50 played tracks, so whatever is not collected in time is lost. Témoin collects continuously — and proves it never stopped. Source: https://steevepommier.com/projects/temoin/ Section: Projects Published: 2026-08-03 Updated: 2026-11-29 Tags: data collection, self-hosted, spotify, home lab, Next.js, TypeScript, Tailwind CSS, SQLite, jose, Docker --- The Spotify API keeps a rolling window of the **last 50 tracks**. Miss the window and that listening history is not late, it is lost. So the interesting part of this project is not the collecting, it is proving the collecting never stopped. **Témoin** — French for a witness, and for the warning light on a dashboard — was called spotify-poller until November 2026. Its interface is a custody report on paper, in black ink and blue pen, where green only ever means *healthy*. ## Three collectors {% table %} - id - Source - Cadence --- - `played` - `/v1/me/player/recently-played` - every 30 min --- - `liked` - `/v1/me/tracks` - daily, hourly during the initial backfill --- - `artists` - `/v1/artists/{id}` - daily, hourly while a backlog remains {% /table %} Only `played` is critical, and only `played` pings the watchdog. `artists` is enrichment, not history: it fetches the genres of artists already collected, which Spotify attaches to the artist and never to a play. ## Detecting silence, not noise Two things here are easy to over-trust, and both are called out in the repo: - A Docker `HEALTHCHECK` under plain Compose **restarts nothing** — an `unhealthy` container simply stays unhealthy. It is a diagnosis, not a cure. - Push notifications cannot replace a heartbeat. A dead poller sends nothing, and a quiet phone reads exactly like a working one. So the load-bearing piece is an **external heartbeat**: the collector pings a watchdog on every successful run, and the watchdog alerts on *absence*. The UPS covers power loss; the watchdog covers everything else — ISP outage, full disk, silent crash, reboot without a clean restart. ## The custody report **Now** opens on one sentence — is every play being collected? — then today's listening drawn as a **trace**, the pen's line for each day, where a declared gap shows as a dashed amber stretch, never as an empty one. **Trace** lays the whole week out that way, and the **Journal** holds every collection attempt and every declared gap in one thread, by day. **Library** is what was collected: every play, filterable and exportable, listening sessions, and **Trends** — when you listen and what to, every bar, cell and row a link that narrows the others. **System** is the instrument itself: the database, the disk, backups, the watchdog, the accounts, and what is left to set up. Sign-in can go through [Sésame](/projects/sesame/), one passkey for every app; the dashboard installs on a phone's home screen, and a [showcase](https://costardrouge.github.io/temoin/) shows it over fixture data.