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

synxed-sdk

v0.3.26

Published

Synxed music SDK — integrate streaming music playback into any web app

Readme

Synxed SDK

Add Music to your website, Game or App in a few minutes — Stream Licensed Music, Create and manage playlists, Listen to live radio, voice commands to stream songs or create custom playlist, and a ready-made player UI

Synxed has already paid for the right to make that music available, you do not need to pay any license fees, we handle that for you.

npm version

What you need

  1. A Synxed API key (from your Synxed developer account https://portal.synxed.com).
  2. Our API URL is https://api.synxed.com.
  3. A playlist code, Single Song, AI DJ mode or choose live radio.

Install

npm install synxed-sdk

Easiest setup — built-in player

This adds a floating music bar to your page. No React or special framework required.

Play a playlist

<script type="module">
  import { SynxedWebPlayer } from "synxed-sdk";

  SynxedWebPlayer.mount({
    apiKey: "YOUR_SYNXED_API_KEY",
    serverUrl: "https://api.synxed.com",
    source: { type: "playlist", playlistCode: "sxpl_YOUR_CODE" },
  });
</script>

Play one song

Use the songId copied from the Synxed developer portal.

SynxedWebPlayer.mount({
  apiKey: "YOUR_SYNXED_API_KEY",
  serverUrl: "https://api.synxed.com",
  source: { type: "song", songId: "SYNX_EX_SONG_ID" },
});

Play live radio

SynxedWebPlayer.mount({
  apiKey: "YOUR_SYNXED_API_KEY",
  serverUrl: "https://api.synxed.com",
  source: { type: "radio" },
});

Put the player inside your own box

SynxedWebPlayer.mount({
  container: document.getElementById("my-player"),
  apiKey: "YOUR_SYNXED_API_KEY",
  serverUrl: "https://api.synxed.com",
  source: { type: "playlist", playlistCode: "sxpl_YOUR_CODE" },
});

Player sizes

| Mode | What it looks like | | ------- | ------------------------------- | | wide | Bar across the bottom (default) | | mini | Small round DJ button | | large | Bigger card with visualizer |

SynxedWebPlayer.mount({
  apiKey: "...",
  serverUrl: "...",
  source: { type: "playlist", playlistCode: "sxpl_..." },
  mode: "mini",
});

Move the player on screen

SynxedWebPlayer.mount({
  apiKey: "...",
  serverUrl: "...",
  source: { type: "radio" },
  position: { placement: "top-left", offsetX: 16, offsetY: 16 },
  draggable: true,
});

Match your brand colors

SynxedWebPlayer.mount({
  apiKey: "...",
  serverUrl: "...",
  source: { type: "playlist", playlistCode: "sxpl_..." },
  theme: {
    accent: "#22c55e",
    background: "#0a0a0a",
    glow: "rgba(34, 197, 94, 0.35)",
  },
});

Talk to the DJ (voice playlists)

Hold the Synxed DJ avatar (the spinning circle) and say what you want to hear — for example “play me drake songs for workout”.

  • Tap the DJ → play or pause the music.
  • Hold the DJ → speak your request; release when done (or stop talking and it sends automatically).
  • While you speak, the DJ icon switches to the AI listening view.
  • Music pauses while you talk and can resume when you tap again.

To turn voice off:

SynxedWebPlayer.mount({
  enableVoice: false,
  // ...other options
});

Skip button and ads

  • During normal playback, the skip button jumps to the next song.
  • During an ad, the same button shows a short countdown (about 5 seconds), then you can skip the ad.
  • After the ad, the skip button works again for the next song.

Build your own UI (optional)

If you want full control over buttons and layout, use SynxedPlayer instead of SynxedWebPlayer:

import { SynxedPlayer } from "synxed-sdk";

const player = new SynxedPlayer({
  apiKey: "YOUR_SYNXED_API_KEY",
  serverUrl: "https://api.synxed.com",
  autoConnect: true,
  // AI voice is enabled by default. Set this to false to ship music only.
  voice: { enabled: false },
});

await player.playSong({ songId: "SYNX_EX_SONG_ID" });
// or
await player.playPlaylist({ playlistCode: "sxpl_YOUR_CODE" });

document.getElementById("play").onclick = () => player.resume();
document.getElementById("pause").onclick = () => player.pause();
document.getElementById("skip").onclick = () => player.skip();

Voice with your own buttons

const dj = document.getElementById("dj-avatar");

dj.addEventListener("pointerdown", () => player.beginVoiceHold());
dj.addEventListener("pointerup", () => player.endVoiceHold());

Clean up when leaving the page

const ui = SynxedWebPlayer.mount({
  /* ... */
});

// When your app unmounts or navigates away:
ui.destroy();

Radio “now playing” title

For radio, you can show the current song name on your own label:

import { fetchRadioNowPlaying } from "synxed-sdk";

const info = await fetchRadioNowPlaying("https://api.synxed.com");
if (info) console.log(info.title);

Poll every 10–15 seconds to keep the title fresh.

License

Copyright © Synxed.com