Local Listening Analytics

Build per-user listening or usage analytics entirely on-device — an append-only event table plus a denormalized per-contributor table that carries a copy of the timestamp, two completion thresholds instead of one, bare ids in events enriched to titles and artwork only at read time, and every window query parameterised as (start, end) so "last N days" stays an argument. Use when adding a "your year in review" or top-items screen without a backend, when a time-window chart is slow, when a chart is mysteriously shorter than the row count says it should be, or when a per-contributor total refuses to add up to the period's own figure.

maxrave-dev b3e8d93 8.1 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/local-listening-analytics commit b3e8d93b2a

Frequently asked questions

npx skillmds@latest add maxrave-dev/local-listening-analytics