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

@nomercy-entertainment/nomercy-music-player

v2.0.3

Published

Headless, plugin-driven music player engine. HLS-ready, crossfade-capable, externally-orchestratable, leak-tested.

Downloads

2,653

Readme

npm license bundlephobia

Full documentation: https://docs.nomercy.tv/nomercy-music-player/

nomercy-music-player

The headless audio engine behind music on NoMercy TV.

It nails the hard part of a music player: the hand-off between two tracks.

You get plain events and methods, and you wire your own interface.

  • Sample-accurate crossfade, or a gapless transition straight into the next track
  • A full equalizer chain and synced lyrics
  • Queue and backlog control, repeat and shuffle, a typed event bus
  • Lock-screen and notification controls, plus auto-advance

Built on nomercy-player-core, the shared engine for the queue, auth, plugins, i18n, and storage.

Install

npm install @nomercy-entertainment/nomercy-music-player

Adaptive HLS audio streams play out of the box. The backend detects an .m3u8 source and streams it, falling back to native HLS where the platform supports it, and hls.js ships with the player core so there is nothing extra to install.

Quick start

import { nmplayer } from '@nomercy-entertainment/nomercy-music-player';
import { AutoAdvancePlugin, MediaSessionPlugin } from '@nomercy-entertainment/nomercy-music-player/plugins';

const player = nmplayer('main')
  .addPlugin(AutoAdvancePlugin)
  .addPlugin(MediaSessionPlugin)
  .setup({
    baseUrl: 'https://raw.githubusercontent.com/NoMercy-Entertainment/nomercy-media/master/Music',
    playlist: [
      {
        id: 'bent-wyre-01',
        name: 'Ants Of The Beat',
        url: '/B/bent%20wyre/%5B2025%5D%20If%20Only%20Life%20Was%20This%20Easy%20Volume%205%20-%20The%20Beat%20Misdirect/01%20Ants%20Of%20The%20Beat.mp3',
        artistTracks: [{ id: 1, name: 'bent wyre' }],
      },
    ],
  });

player.on('ready', () => {
  player.item(0, { autoplay: true });
});

AutoAdvancePlugin advances the queue when a track ends, and MediaSessionPlugin wires the lock-screen and notification controls.

Bring your own UI

No UI is bundled. Nothing is forced on you.

Crossfade and gapless playback are built in, called when you want them. Everything else, lyrics, the equalizer, media controls, auto-advance, key handling, is a plugin you opt into with addPlugin. Build your own interface from the player's events, the path the Build a Player tutorial walks one piece at a time.

You can also swap any built-in behavior. Pass your own storage, URL resolver, shuffle strategy, or logger to setup(). No subclassing.

Upgrading from v1

See MIGRATION.md for the full breaking-change list, including renamed methods, changed event payloads, and the item.path to item.url rename that breaks silently if missed. Group listening queue serialization is particularly sensitive to this change.

Documentation

The docs site is the full reference, ordered from first track to plugin author:

License

Apache-2.0

Repository: github.com/NoMercy-Entertainment/nomercy-music-player