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

faust-orbit-ui

v0.1.0

Published

Orbit-based UI component for Faust-style parameter control, driven by JSON metadata and callbacks.

Readme

faust-orbit-ui

faust-orbit-ui screenshot

Orbit-based UI component for Faust-style parameter control, driven by JSON metadata and callbacks.

What It Is

faust-orbit-ui renders and manages an interactive Orbit control panel from Faust-like UI JSON.

You provide:

  • a DOM root element,
  • a UI JSON description,
  • a callback paramChangeByUI(path, value).

What It Is Not

  • No DSP/audio engine.
  • No WebAudio integration.
  • No Faust compiler/runtime dependency.

It is a UI layer only.

Quick Start

Run commands from the repository root.

  1. Install dependencies:
npm install
  1. Build package:
npm run build
  1. Start demo server:
npm run demo:serve
  1. Open:
  • http://localhost:4173/demo/index.html

Minimal Integration Example

<div id="orbit-root" style="height: 480px"></div>
<link rel="stylesheet" href="./dist/faust-orbit-ui.css" />
<script type="module">
  import { FaustOrbitUI } from './dist/index.js';

  const ui = [
    {
      type: 'vgroup',
      label: 'synth',
      items: [
        { type: 'hslider', label: 'frequency', address: '/synth/frequency', min: 20, max: 2000, step: 1 },
        { type: 'hslider', label: 'pressure', address: '/synth/pressure', min: 0, max: 1, step: 0.01 },
        { type: 'button', label: 'trigger', address: '/synth/trigger' }
      ]
    }
  ];

  const root = document.getElementById('orbit-root');
  const orbit = new FaustOrbitUI(root, (path, value) => {
    console.log('paramChangeByUI', path, value);
  });

  const state = orbit.buildControlsFromUnknown(ui);
  orbit.setOrbitState(state);
</script>

Public API (Core)

new FaustOrbitUI(root, paramChangeByUI, options?)

Constructor

  • root: HTMLElement
  • paramChangeByUI: (path: string, value: number) => void
  • options?: FaustOrbitUIOptions

Main methods

  • buildControlsFromUnknown(input: unknown): OrbitState
  • setOrbitState(state: OrbitState): void
  • getOrbitState(): OrbitState
  • setParamValue(path: string, value: number): void
  • random(c: number): void
  • center(): void
  • beginUpdate(): void
  • endUpdate(): void
  • destroy(): void

Options

Main options in FaustOrbitUIOptions:

  • title?: string
  • disabledPaths?: string[]
  • onOrbitStateChange?: (state) => void
  • onInteractionStart?: () => void
  • onInteractionEnd?: () => void
  • tooltips?: { ... }

UI JSON Expectations

Input should follow the common Faust UI metadata shape:

  • groups: vgroup, hgroup, tgroup
  • active widgets: hslider, vslider, nentry, button, checkbox
  • passive widgets are parsed but not interactive controls in Orbit.

Unknown nodes are ignored. Invalid top-level input (not an array) throws.

CSS

The package exposes Orbit stylesheet at:

  • faust-orbit-ui/faust-orbit-ui.css

No automatic style injection is done by JS.

You must include the CSS in your host app.

Demo vs Package Usage

  • demo/ is only an example app.
  • src/ + dist/ are the package itself.

Troubleshooting

OSError: [Errno 48] Address already in use

Port 4173 is already used.

Use another port:

python3 -m http.server 4174 -d .

Then open http://localhost:4174/demo/index.html.

Orbit panel appears empty

Check both:

  • CSS is loaded (faust-orbit-ui.css).
  • Root element has explicit height (or parent layout gives it height).

Repository Layout

  • src/: package source
  • dist/: build output
  • demo/: browser demo app

Publishing Checklist

Before publishing to npm:

  1. Remove "private": true from package.json.
  2. Bump version.
  3. Build with npm run build.
  4. Publish with npm publish --access public.