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

audiora

v1.0.0

Published

Picture-driven synthesis for the web — maps color and light into pitch, timing, and texture.

Readme

How to install

npm install audiora

Usage

Import the instrument, load an image, and either play live or render offline:

import { Audiora, PRESETS } from "audiora";

const audiora = new Audiora({
  waveCanvas: document.getElementById("wave_canvas"),
  mapCanvas: document.getElementById("map_canvas"),
});

await audiora.loadImage("/photo.jpg");
audiora.applyParams(PRESETS.Haze, { tween: false });

await audiora.play(); // needs a user gesture in most browsers

// offline WAV
const blob = await audiora.toBlob({
  params: PRESETS.Bite,
  duration: 12,
});

Importing audiora has no side effects — it does not create an AudioContext or touch the DOM until you call methods.

See the API reference for constructors, params, presets, scan modes, and TypeScript types.

Live shell (demo)

The www/ folder is a Vite app (landing + instrument UI). It is not published to npm.

cd www
npm install
npm run dev

Open the demo, load an image, tweak presets, and listen. Use warmUp() / Play after a click so the browser can resume audio.

Mapping

Time is shaped by the image: bright areas slightly accelerate the system, darker areas slow it down. Each block is a musical event.

| Source | Maps to | | ---------------- | --------------------------------------------------- | | Hue | Scale degree (pitch), stereo position, micro-detune | | Lightness | Octave, amplitude, subtle timing / duration | | Saturation | Velocity weighting | | Spatial position | Traversal path (scan_mode) |

The goal is coherence of behavior, not literal accuracy of translation. Small parameter changes matter; most adjustments are intentionally subtle.

Built-in scan modes: linear, vertical, zigzag, drift, spiral. Timing modes: expressive, stable.

Presets

| Name | Role | | ------------------------ | ----------------------------------------- | | Haze | Default — soft, expressive, higher reverb | | Leap / Pulse | Faster, stable phrasing | | Bite / Spark / Raw | Sharper / drier identities |

audiora.applyParams(PRESETS.Haze);
audiora.applyParams(PRESETS.Raw, { tween: false }); // hard cut

TypeScript

Types ship with the package source entry. No separate @types package required.

import { Audiora, type PresetData, type RenderOptions } from "audiora";

Notes

  • First play() may show the scan cursor slightly ahead of audio while the context starts; later plays are stable.
  • The visual cursor leads audio by a small lookahead window by design.
  • At reverb_mix = 1.0, stereo pan spread is reduced (fully wet signal) — lower the mix to restore imaging.