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

@puejs/core

v1.0.0

Published

Next-generation acoustic feedback for modern web applications.

Readme

Pue JS

Next-generation acoustic feedback for modern web applications. Zero-dependency, strictly typed, purely organic scroll interactions.

Documentation: www.puejs.org

Install

npm install @puejs/core

Usage

import { createEmitter } from "@puejs/core";

const emitter = createEmitter(window, { preset: "organic" });

// Browsers only allow audio after a user gesture.
button.addEventListener("click", () => emitter.start());

Scrolling above 80 px/s now triggers emissions whose pitch and gain follow the scroll velocity.

Options

| Option | Default | Description | | ---------------------- | --------------- | --------------------------------------------------------- | | preset | "organic" | organic, crisp, deep, discreet or a full profile | | odors | preset odors | Samples available to the emitter | | pitch | preset | Playback rate, or a { min, max } range | | resonance | preset | Low-frequency body, from 0 to 1 | | duration | preset | Maximum emission length in milliseconds | | volume | preset | Master gain, from 0 to 1 | | tonnage | "logarithmic" | Velocity to intensity curve, or a custom function | | threshold | 80 | Minimum velocity in px/s | | throttle | "velocity" | "velocity", "distance" or an interval in milliseconds | | respectReducedMotion | true | Stay silent when the user prefers reduced motion | | autoUnlock | true | Resume blocked audio on the next user gesture | | audioContext | private | Share an existing AudioContext |

Odors

Built-in samples are inlined, so there is nothing to host. Presets use staccato and sustained; soprano, pesante, sforzando, fortissimo and cathedral are opt-in and only bundled when imported:

import { createEmitter } from "@puejs/core";
import { cathedral, fortissimo, pesante, sforzando, soprano, staccato, sustained } from "@puejs/core/odors";

createEmitter(window, {
  odors: [staccato, sustained, soprano, pesante, sforzando, fortissimo, cathedral],
  duration: 2600, // fortissimo lasts 2.5 s
});

Use your own samples with defineOdor:

import { createEmitter, defineOdor } from "@puejs/core";

const custom = defineOdor({ name: "custom", src: "/sounds/custom.mp3", tonnage: [0.3, 1] });
createEmitter(window, { odors: [custom] });

License

Released into the public domain under the Unlicense.