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

mui-audio-ui

v0.1.0

Published

React UI components for audio plugin interfaces

Readme

mui-audio-ui

React UI components for audio plugin interfaces — knobs, sliders, and controls designed for VST/AU plugins and DAW-style UIs. Built on MUI and fully theme-aware.

Currently ships a polished, accessible Knob component. More controls are on the way.

Features

  • SVG rotary knob with a 270° arc sweep, value track, and indicator
  • Multiple interactions — vertical drag, scroll wheel, and keyboard focus
  • Theme-aware — inherits MUI palette tokens (text.secondary, primary.main) so it looks correct in light or dark mode
  • Accessiblerole="slider" with aria-* values and focus-visible styling
  • Plugin-friendlyonDragStart / onDragEnd lifecycle hooks for DAW gesture notifications
  • Zero-runtime CSS — pure inline styles via MUI's sx, no stylesheet import required

Install

npm install mui-audio-ui

Peer dependencies

This library expects the host app to provide React and MUI:

{
  "react": "^18.0.0 || ^19.0.0",
  "react-dom": "^18.0.0 || ^19.0.0",
  "@mui/material": "^5.0.0 || ^6.0.0 || ^9.0.0",
  "@mui/icons-material": "^5.0.0 || ^6.0.0 || ^9.0.0",
  "@emotion/react": "^11.0.0",
  "@emotion/styled": "^11.0.0"
}

Usage

import { useState } from "react";
import { MuiAudioKnob } from "mui-audio-ui";

export function GainControl() {
  const [value, setValue] = useState(0.5);

  return (
    <MuiAudioKnob
      label="Gain"
      info="Output level (0–100%)"
      value={value}
      onChange={setValue}
      valueDisplay={`${Math.round(value * 100)}%`}
      // accentColor="#6f86e8"  // optional; defaults to the MUI primary blue
    />
  );
}

The MuiAudioKnob works with a normalized 0–1 value. Convert from your parameter's actual range when reading and writing:

// 0–1  <->  -inf..+12 dB
const toParam = (v: number) => v * 12;        // 0..1 -> 0..12
const fromParam = (db: number) => db / 12;    // 0..12 -> 0..1

<MuiAudioKnob value={fromParam(gainDb)} onChange={(v) => setGainDb(toParam(v))} />

Components

MuiAudioKnob

A rotary control with an arc track that fills as the value increases.

| Prop | Type | Default | Description | | ----------------- | -------------------------- | ------------ | ----------------------------------------------------------------- | | value | number | — | Value between 0 and 1. Required. | | onChange | (value: number) => void | — | Called with a new value (0–1) on each change. Required. | | onDragStart | () => void | — | Fired when a drag gesture begins (notify the DAW). | | onDragEnd | () => void | — | Fired when a drag gesture ends. | | label | string | — | Label displayed above the knob (uppercase caption). | | info | string | — | Help text shown in a tooltip on hover. | | size | number | 52 | Diameter of the knob SVG in px. | | dragSensitivity | number | 200 | Pixels of vertical drag for the full 0→1 range. | | accentColor | string | "#6f86e8" | Accent color for the value arc and focus ring. | | valueDisplay | string | — | Text shown below the knob on hover/drag (e.g. "42%"). | | className | string | — | Additional CSS class on the root element. |

Development

Clone and run the demo app:

npm install
npm run dev       # Vite demo playground at localhost:5173

| Command | Description | | ------------------- | -------------------------------------------- | | npm run dev | Start the Vite demo app | | npm run build | Type-check and build the library (ES + CJS) | | npm run typecheck | Run tsc --noEmit | | npm run preview | Preview the production build |

Project layout

src/
├── lib/
│   ├── index.ts            # public exports
│   └── components/
│       └── MuiAudioKnob.tsx        # Knob component + MuiAudioKnobProps
└── dev/
    ├── main.tsx            # demo entry point
    └── DevApp.tsx          # demo playground

The library is built in library mode via Vite (src/lib/index.ts), producing dist/mui-audio-ui.{js,cjs} plus a rolled-up index.d.ts. MUI, Emotion, and React are treated as externals.

License

MIT © Gregory Buchenberger