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

@ghchinoy/lit-audio-ui

v0.4.10

Published

A pure Lit WebComponents port of modern audio UI components

Readme

Lit Audio UI

A lightweight, framework-agnostic Web Components library for high-performance audio visualization and control, built natively for the browser using Lit.

Take a look at the interactive gallery and documentation to see the components in action.

Why Lit Web Components?

When building complex, high-frequency audio visualizers (like real-time canvas waveforms), performance and bundle size are critical. By leveraging Lit and native Web Components, this library offers distinct advantages:

  • Microscopic Footprint: No massive framework runtimes. Lit simply provides lightweight, reactive syntactic sugar over standard browser APIs.
  • Blazing Fast Canvas & Audio: Direct DOM access means no Virtual DOM bottlenecks when piping 60fps data directly into <canvas> elements.
  • Framework Agnostic: Compiles to standard HTML tags. Drop these into React, Vue, Angular, Svelte, or vanilla HTML with zero friction.
  • Atomic Design: Organized into Atoms, Molecules, Organisms, and Providers for maximum reusability.

How to Use (For AI Agents)

If you are an AI coding agent integrating this library into an application, please refer to the AGENT_SKILL.md for specialized integration protocols, state management patterns, and "Zero-JS" branding guidelines.

How to Use (For Users)

1. Installation

npm install @ghchinoy/lit-audio-ui

2. Import the Library

// Import the entire library
import '@ghchinoy/lit-audio-ui';

// Or import specific categories for better tree-shaking
import '@ghchinoy/lit-audio-ui/atoms/ui-audio-play-button.js';
import '@ghchinoy/lit-audio-ui/molecules/ui-live-waveform.js';

3. Use in HTML

Once imported, custom elements are registered and used like standard HTML tags:

<!-- Example: A voice recording button -->
<ui-voice-button state="idle" label="Start Recording"></ui-voice-button>

<!-- Example: An audio visualizer canvas linked to an AnalyserNode -->
<ui-live-waveform .analyserNode="${myAudioAnalyser}"></ui-live-waveform>

Available Components

🧪 Atoms (Primitives)

  • <ui-audio-play-button>: Context-aware play/pause toggle.
  • <ui-audio-next-button> / <ui-audio-prev-button>: Playlist navigation buttons.
  • <ui-audio-progress-slider>: Reactive scrubber for playback.
  • <ui-audio-time-display>: Flexible time visualizer (elapsed, remaining, combined).
  • <ui-speech-record-button>: Atomic trigger for recording context.
  • <ui-shimmering-text>: Pure CSS text loading effect.

🧬 Molecules (Functional Units)

  • <ui-live-waveform>: Real-time visualizer for an active AudioContext.
  • <ui-spectrum-visualizer>: Traditional frequency-bar spectrum.
  • <ui-orb>: 3D WebGL (Three.js) agent visualizer.
  • <ui-3d-flip>: Layout utility for 3D card-flipping interactions.
  • <ui-playlist>: Reactive list component for queue management.
  • <ui-mic-selector>: Hardware enumeration and permission handler.
  • <ui-voice-picker>: Searchable persona selector with audio previews.

🧩 Providers (State)

  • <ui-audio-provider>: Headless state machine for playback and playlists.
  • <ui-speech-provider>: Headless lifecycle manager for voice recording (Auto, Simulation, or Manual mode).

Theming (Material Design 3)

Customize colors and typography via standard CSS variables:

:root {
  --md-sys-color-primary: #0066cc;
  --ui-speech-record-color: #ff4444; /* Custom branding */
  --ui-speech-preview-font-size: 18px;
}

Acknowledgements

Deeply inspired by the beautiful, open-source audio components built by ElevenLabs (@elevenlabs/ui). This project reimplement those designs as standard, universal browser APIs.

License

Apache 2.0; see LICENSE for details.