npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

musiclink-api-sdk

v0.1.2

Published

Typesafe client SDK for the MusicLink API

Downloads

366

Readme

musiclink-api-sdk

Typesafe Node.js / TypeScript client for the MusicLink API.

Full SDK docs → · Try it for free →

What is MusicLink?

Give MusicLink a track from any major platform — Spotify, Apple Music, Deezer, Tidal, or a bare ISRC — and get back a unified record with links to every platform we support, plus a shareable MusicLink page.

You send: a Spotify ID, Deezer ID, Tidal ID, Apple Music URL, or ISRC
You get: title, artist, ISRC, artwork, and links to 10+ platforms (Spotify, YouTube, Apple Music, Deezer, Tidal, SoundCloud, and more)


Get an API key

  1. Sign up at ml.jadquir.com — free plan available, no credit card required
  2. Go to your Dashboard
  3. Copy your API key

Installation

npm install musiclink-api-sdk

Usage

import { MusicLinkClient } from "musiclink-api-sdk";

const client = new MusicLinkClient({ apiKey: "your-api-key" });

Lookup by platform

const { data } = await client.lookup("spotify", "4cOdK2wGLETKBW3PvgPWqT");
const track = data[0];

console.log(track.title);       // "Never Gonna Give You Up"
console.log(track.artist);      // "Rick Astley"
console.log(track.isrc);        // "GBARL9300135"
console.log(track.links);       // { spotify: "...", youtube: "...", apple_music: "...", ... }

Supported platforms: "spotify" "apple" "deezer" "tidal" "isrc" "musiclink"

Lookup by ISRC

const { data } = await client.lookup("isrc", "GBARL9300135");

Resolve a MusicLink page

Note: These methods only work for tracks that have already been resolved and stored by MusicLink. If a track doesn't exist yet, you'll get a 404 — use lookup() instead to resolve it from scratch.

// By public ID
const { data } = await client.resolve("huUKtw-D");

// By slug
const { data } = await client.resolveBySlug("rick-astley", "never-gonna-give-you-up");

Embed URL

Every track has a getEmbedUrl() helper that returns an iframe-ready URL:

const url = track.getEmbedUrl();
// "https://ml.jadquir.com/embed/ml/huUKtw-D"

track.getEmbedUrl({ compact: true });
// "https://ml.jadquir.com/embed/ml/huUKtw-D?mode=compact"

track.getEmbedUrl({ compact: true, light: true });
// "https://ml.jadquir.com/embed/ml/huUKtw-D?mode=compact&theme=light"

| Option | Default | Description | |--------|---------|-------------| | compact | false | Small horizontal layout with icon grid | | light | false | Light colour scheme (default is dark) |

Drop it into an <iframe>:

<iframe
  src="https://ml.jadquir.com/embed/ml/huUKtw-D?mode=compact"
  width="400"
  height="160"
  frameborder="0"
/>

Health check

const { ok } = await client.health(); // true

Error handling

All methods throw a MusicLinkError on non-2xx responses:

import { MusicLinkClient, MusicLinkError } from "musiclink-api-sdk";

try {
  const { data } = await client.lookup("spotify", "invalid-id");
} catch (err) {
  if (err instanceof MusicLinkError) {
    console.log(err.message);     // "Track not found."
    console.log(err.status);      // 404
    console.log(err.retryAfter);  // seconds to wait (set on 429)
  }
}


Questions? [email protected]