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

@muse-player/component

v1.0.0

Published

UI components for Muse Player, styled with StyleX

Downloads

169

Readme

@muse-player/component

npm version license

UI components for Muse Player, styled with StyleX.

Installation

pnpm add @muse-player/component react react-dom

@muse-player/component depends on @muse-player/core and @stylexjs/stylex. React 18+ is a peer dependency.

Styles are bundled with the component and imported automatically — no additional CSS setup is needed.

Components

<PlaybackControls>

Play/pause/stop buttons, progress bar with seek, time display, and tempo slider.

import { PlaybackControls } from "@muse-player/component";

<PlaybackControls
  currentMeasure={currentMeasure}
  currentTime={currentTime}
  onPause={pause}
  onPlay={play}
  onSeek={seek}
  onStop={stop}
  onTempoChange={updateTempo}
  playing={playing}
  tempo={tempo}
  totalDuration={totalDuration}
/>

| Prop | Type | Description | |------|------|-------------| | currentMeasure | number | 0-based index of the current measure | | currentTime | number | Current playback position in seconds | | onPause | () => void | Called when pause is clicked | | onPlay | () => void | Called when play is clicked | | onSeek | (time: number) => void | Called when the progress bar is clicked | | onStop | () => void | Called when stop is clicked | | onTempoChange | (tempo: number) => void | Called when the tempo slider changes | | playing | boolean | Whether playback is active | | tempo | number | Current BPM (range: 40–240) | | totalDuration | number | Total duration in seconds |

Styling

This package uses StyleX instead of Tailwind CSS, so consumers do not need to install or configure Tailwind. All styles are compiled to atomic CSS at build time.

If your bundler does not automatically resolve CSS imports from node_modules, you can explicitly import the stylesheet:

import "@muse-player/component/style.css";

Build

pnpm build

Built with Rslib (ESM, unbundled, DTS generation) + StyleX CLI for atomic CSS extraction.

Related Packages

| Package | Description | |---------|-------------| | @muse-player/core | React hooks for score loading, MIDI playback, note highlighting, and auto-scrolling | | @muse-player/server | Node.js server-side MXL rendering via Verovio WASM | | @muse-player/cli | CLI tool for pre-rendering MXL files to static assets | | @muse-player/instruments | Piano sample manifests and audio files |

License

MIT