Taste Ledger
A shared account's recent listening as beads on a thread, each hanging by how much it moves your taste. Snip one and recommendations forget it.
Needs: A text embedding per track (title, artist, tags) from any model; raw sentence embeddings are fine. The demo runs bge-small (about 34 MB, downloaded once in the browser).
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| tracks | { id: string; title: string; artist: string; noun?: [one: string, many: string]; embedding?: ArrayLike<number> }[] | required | Every track the sessions play. noun is what to call it in "Your mix lost 4 lullabies", singular and plural ("track" by default). Without embeddings the pulls can't be worked out. |
| sessions | { id: string; label: string; hour: number; daysAgo: number; minutes: number; plays: { track: string; count: number }[] }[] | required | Recent listening, oldest first. hour is when it started in 24-hour time (2.25 is 2:15 am); plays lists track ids and how often each played. |
| mixSize | number | 8 | How many recommendations to show. |
| defaultExcluded | string[] | – | Session ids that start out not counting. |
| onChange | (excluded: string[]) => void | – | Called with the session ids that no longer count, each time that changes. |
| accent | string | "#c8502a" | Colour of new picks and the rule offer, any CSS colour. Left unset, a lighter orange is used in dark mode. |
| className | string | – | Class on the root element. |
| style | CSSProperties | – | Style on the root element. Theme it through the --mlui-* variables. |