[ CONVEX COMPONENT · STABLE · MIT ]
@vllnt/convex-music
Provider-neutral, cached music catalog — Spotify, Apple Music, and more behind one API
STABLE 0.1.0 · 2 GitHub stars
Package details
Install
The untagged install gets the latest stable version (0.1.0). The canary tag tracks main (0.2.0-canary.69003b8).
pnpm add @vllnt/convex-music
pnpm add @vllnt/convex-music@canaryRegister the component
Add it to your app’s convex/convex.config.ts, then run npx convex dev to generate the references.
import { defineApp } from "convex/server";
import music from "@vllnt/convex-music/convex.config";
const app = defineApp();
app.use(music);
export default app;Use it
Usage, options and examples are in the package README.
Downloads
- Last 7 days
- 191
- Since first publish
- 4,326
Downloads per week since 26 June 2026, oldest on the left. Weeks count back from 23 November 2026, so the first one may be shorter than seven days.
191 downloads in the last 7 days. 4,326 downloads since 26 June 2026. Source: npm, counted through 23 November 2026.
Show downloads per week as a table
| Week | Downloads |
|---|---|
| 26 June 2026 to 29 June 2026 | 533 |
| 30 June 2026 to 6 July 2026 | 321 |
| 7 July 2026 to 13 July 2026 | 86 |
| 14 July 2026 to 20 July 2026 | 239 |
| 21 July 2026 to 27 July 2026 | 27 |
| 28 July 2026 to 3 August 2026 | 4 |
| 4 August 2026 to 10 August 2026 | 227 |
| 11 August 2026 to 17 August 2026 | 63 |
| 18 August 2026 to 24 August 2026 | 11 |
| 25 August 2026 to 31 August 2026 | 421 |
| 1 September 2026 to 7 September 2026 | 446 |
| 8 September 2026 to 14 September 2026 | 554 |
| 15 September 2026 to 21 September 2026 | 373 |
| 22 September 2026 to 28 September 2026 | 176 |
| 29 September 2026 to 5 October 2026 | 36 |
| 6 October 2026 to 12 October 2026 | 27 |
| 13 October 2026 to 19 October 2026 | 38 |
| 20 October 2026 to 26 October 2026 | 63 |
| 27 October 2026 to 2 November 2026 | 275 |
| 3 November 2026 to 9 November 2026 | 157 |
| 10 November 2026 to 16 November 2026 | 58 |
| 17 November 2026 to 23 November 2026 | 191 |
Release history
Every release on a timeline, oldest on the left. A tall mark with its version is a stable release; a short mark is a canary build. The time axis is the one of the downloads chart, so a release stands above the week it shipped in.
1 stable release and 8 canary builds since 26 June 2026. Latest stable: 0.1.0 on 1 September 2026.
Show every release as a table
| Version | Kind | Published |
|---|---|---|
| 0.2.0-canary.69003b8 | canary | 22 November 2026 |
| 0.1.1-canary.dbaff87 | canary | 31 October 2026 |
| 0.1.0 | stable | 1 September 2026 |
| 0.1.0-canary.679788a | canary | 1 September 2026 |
| 0.1.0-canary.8a995c6 | canary | 31 August 2026 |
| 0.1.0-canary.8eed0fc | canary | 31 August 2026 |
| 0.1.0-canary.09eea4e | canary | 31 August 2026 |
| 0.1.0-canary.a823b81 | canary | 26 June 2026 |
| 0.1.0-canary.de3838f | canary | 26 June 2026 |
Changelog
The newest stable releases of @vllnt/convex-music, with the notes from its changelog.
0.1.0
Added
- First release of
@vllnt/convex-music— a provider-neutral, cached music catalog as a sandboxed Convex component. - Durable catalog store: unified
artists/tracks/playlists/albumstables with per-providerproviders[]provenance, identity merge, the field-source projection policy, and a daily-rotationselectEligibleprimitive. - Provider adapters behind one interface — Spotify, Apple Music (V8 Web-Crypto ES256 developer
token), Deezer, MusicBrainz, Wikidata — plus a resilient
fetchJson(429 + overload retry,Retry-After, capped backoff + jitter, per-request timeout) and boundedmapWithConcurrency. - Read-through fetch (
fetch,search,resolveByIsrc) and the import engine (importArtist/importTrack/importPlaylist/importAlbum) over a component-owned, guarded request control-plane with dedup. - Sync lifecycle (freshness
mark-stale→ atomicclaimNextStalerefresh → stuck-sync recovery), opt-in auto-import with per-budget rate limiting, and a runtimesourcesregistry. - Credential seam (
configure) storing provider secrets in a sandboxedproviderConfigtable, read only inside the component's token actions; optional tree-shakeable./reacthooks. - Cache core: a sandboxed
cacheEntriestable holding normalized track / artist / album facts, keyed by(kind, provider, externalId)with aby_isrccross-reference and aby_expiryindex. Musicclient class:put,get,getByIsrc,invalidate,pruneExpired,stats.- Per-entry TTL (
ttlMs) with a never-expires sentinel; expired entries read as cache misses and are reclaimed by the idempotentpruneExpiredsweep. example/convex/host-app harness with 100% end-to-end coverage viaconvex-test(happy path plus expired-entry, unknown-key, and cross-provider ISRC paths).
Changed
- Make freshness maintenance query indexed
nextSyncAtdue rows so fresh rows cannot starve stale detection, and make cache pruning/stats bounded via self-draining batches plus a maintained count. - Track facts now carry
genres(Apple) +popularity(Spotify), folded across providers; trackpopularityscales sync staleness. - Treat Convex
_generatedoutput as CLI-owned, exclude it from formatting, and expose a dedicated codegen script. - Refresh all direct dependencies to their latest compatible releases for canary validation.
- Require
convex@^1.45.0, updateconvex-testto^0.0.56, and update@convex-dev/action-cacheto^0.3.1.
Fixed
- Dispatch registered sources only to compatible import APIs, including albums, and leave failed imports due for retry instead of marking them imported.
- Recover abandoned import requests so dead deduplication rows cannot block future work, prune terminal request history after 30 days, and rotate provider token-cache keys with credentials.
- Detect truncated provider album/playlist membership and merge newly observed tracks into existing membership instead of destructively replacing it with a partial page or caller-limited import.
- Reconcile the maintained cache counter for pre-upgrade rows in bounded batches, and heartbeat running imports so abandoned-request recovery does not invalidate healthy traversals.
- First release of
Licence
Released under the MIT licence. The full text is in the source repository.
[ PACKAGE ]
- Stable
- 0.1.0
- Canary
- 0.2.0-canary.69003b8
- GitHub stars
- 2 GitHub stars
- Licence
- MIT
- Issues
- Open an issue