Skip to content

[ 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).

terminal
pnpm add @vllnt/convex-music
pnpm add @vllnt/convex-music@canary

Register the component

Add it to your app’s convex/convex.config.ts, then run npx convex dev to generate the references.

convex/convex.config.ts
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.

Read the 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
WeekDownloads
26 June 2026 to 29 June 2026533
30 June 2026 to 6 July 2026321
7 July 2026 to 13 July 202686
14 July 2026 to 20 July 2026239
21 July 2026 to 27 July 202627
28 July 2026 to 3 August 20264
4 August 2026 to 10 August 2026227
11 August 2026 to 17 August 202663
18 August 2026 to 24 August 202611
25 August 2026 to 31 August 2026421
1 September 2026 to 7 September 2026446
8 September 2026 to 14 September 2026554
15 September 2026 to 21 September 2026373
22 September 2026 to 28 September 2026176
29 September 2026 to 5 October 202636
6 October 2026 to 12 October 202627
13 October 2026 to 19 October 202638
20 October 2026 to 26 October 202663
27 October 2026 to 2 November 2026275
3 November 2026 to 9 November 2026157
10 November 2026 to 16 November 202658
17 November 2026 to 23 November 2026191

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
VersionKindPublished
0.2.0-canary.69003b8canary22 November 2026
0.1.1-canary.dbaff87canary31 October 2026
0.1.0stable1 September 2026
0.1.0-canary.679788acanary1 September 2026
0.1.0-canary.8a995c6canary31 August 2026
0.1.0-canary.8eed0fccanary31 August 2026
0.1.0-canary.09eea4ecanary31 August 2026
0.1.0-canary.a823b81canary26 June 2026
0.1.0-canary.de3838fcanary26 June 2026

Changelog

The newest stable releases of @vllnt/convex-music, with the notes from its changelog.

  1. 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 / albums tables with per-provider providers[] provenance, identity merge, the field-source projection policy, and a daily-rotation selectEligible primitive.
    • 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 bounded mapWithConcurrency.
    • 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 → atomic claimNextStale refresh → stuck-sync recovery), opt-in auto-import with per-budget rate limiting, and a runtime sources registry.
    • Credential seam (configure) storing provider secrets in a sandboxed providerConfig table, read only inside the component's token actions; optional tree-shakeable ./react hooks.
    • Cache core: a sandboxed cacheEntries table holding normalized track / artist / album facts, keyed by (kind, provider, externalId) with a by_isrc cross-reference and a by_expiry index.
    • Music client 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 idempotent pruneExpired sweep.
    • example/convex/ host-app harness with 100% end-to-end coverage via convex-test (happy path plus expired-entry, unknown-key, and cross-provider ISRC paths).
    Changed
    • Make freshness maintenance query indexed nextSyncAt due 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; track popularity scales sync staleness.
    • Treat Convex _generated output 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, update convex-test to ^0.0.56, and update @convex-dev/action-cache to ^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.
All releases of @vllnt/convex-music
Stable releases
RSSAtomJSON Feed
Canary builds
RSSAtomJSON Feed

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

Theme