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

muzical-ui

v0.1.24

Published

Local Node.JS music player with library browse, queue playback and MusicBrainz

Readme

Muzical UI

Local-first music player built with Next.js. Scan folders on your machine, build a library, queue tracks, and play audio in the browser. Browse MusicBrainz and YouTube to discover and stream tracks when you do not have local files.

All library data and preferences stay on your device (IndexedDB and localStorage). Optional API keys for YouTube and Last.fm are stored in the browser only.

Features

  • Local library — Pick folders with the File System Access API, scan audio files, browse by artist/album/folder, favorites, and album art.
  • Playback queue — Drag-friendly queue, repeat/shuffle, playback speed, volume, seek steps, and optional restore of the last queue on reload.
  • MusicBrainz — Search releases and artists; play via embedded YouTube when no local file exists.
  • YouTube — Search and add videos to the queue; optional Data API key for reliable video resolution.
  • Last.fm — Optional API key for related-track suggestions in the empty-queue panel.
  • Layout — On large screens: resizable library, queue, and player columns; stacks vertically on small screens.
  • Settings — Library scan paths, playback, browse default tab, color palette themes, display density, and light/dark mode.

Requirements

  • Node.js 20+
  • A Chromium-based browser (or another browser with File System Access API support) for local folder scanning

Development

pnpm install
pnpm dev

Open http://localhost:3000.

Other scripts:

| Script | Purpose | | --- | --- | | pnpm build | Production build (standalone output) | | pnpm start | Run production server after build | | pnpm test | Vitest unit tests | | pnpm lint | Markdown + ESLint | | pnpm format | Prettier |

Production build

The app is configured with output: "standalone" for a self-contained server bundle under .next/standalone.

pnpm build
pnpm start

Or run the packaged CLI after a build:

node bin/muzical-ui.js
# or, when installed globally:
muzical-ui --version

The muzical-ui bin starts the standalone Next server. Build first if .next/standalone/server.js is missing.

Optional API keys

Configure in Settings (stored in localStorage on this device only):

| Service | Used for | | --- | --- | | YouTube Data API | Resolving MusicBrainz tracks to YouTube video IDs | | Last.fm API | Related tracks via track.getSimilar |

Without a YouTube key, Muzical falls back to in-player search when resolving streams.

Project layout

| Path | Role | | --- | --- | | app/ | Next.js App Router pages and API routes | | components/ | UI (player, library browser, settings) | | lib/ | Domain helpers (library scan, playback, YouTube, MusicBrainz) | | types/ | Shared TypeScript types | | bin/muzical-ui.js | CLI entry for standalone production server |

License

MIT — see CHANGELOG.md for release history.