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

@zoeyetc/computational-listening-engine

v0.4.0

Published

A framework for computational listening

Readme

Computational Listening Engine

A framework for computational listening.

Installation

npm install @zoeyetc/computational-listening-engine
import { hzToMidi, midiToNoteName } from '@zoeyetc/computational-listening-engine';

const midi = hzToMidi(440); // 69
console.log(midiToNoteName(midi)); // A4

This repository is UI-independent and product-independent. It accepts PCM data and explicit timeline inputs; it does not acquire browser audio or render a presentation.

Model

  • Signal: bounded PCM analysis derives amplitude, spectrum, pitch, rhythm, percussion, harmony, tonal center, and structure.
  • Evidence: retained frames and diagnostics preserve observations and uncertainty separately from accepted musical capabilities.
  • Listening: ListeningMap holds the analyzed result; ListeningSnapshot resolves current musical truth from an explicit time.
  • Temporal reasoning: retained evidence selection and timeline crossings use the supplied musical time without creating a transport clock.
  • Timeline: ListeningTimeline produces deterministic snapshots and discrete events, including seek and map-replacement behavior.
  • Streaming: RollingListeningSession analyzes bounded rolling PCM and retains causal evidence.
  • Diagnostics: analysis characterization is exposed through the same package API without changing production decisions.

The engine has no React, UI, product, DOM, Web Audio acquisition, permission, or device-selection dependency. Audio acquisition and source metadata belong to the browser audio-source client.

Consumers

  • Zoë — computational listening instrument.
  • Z.land — music-driven physical world.

Both products consume @zoeyetc/computational-listening-engine; neither owns its implementation.

Development

Requires Node.js 22.12+ and npm.

npm install
npm run check:boundaries
npm run typecheck
npm test
npm run build

The package publishes one root API. dist/ contains ESM JavaScript and declarations. The package is versioned independently of its consumers.

Dual-Path Listening v0.1

The opt-in Dual-Path Listening architecture adds an independent Bass Path over existing candidate evidence. It does not change the existing Melody path or claim bass accuracy before a ground-truth dataset exists.

Evaluation

The independent Evaluation Suite v0.1 scores pitch, melody, rhythm, harmony, and confidence calibration without changing Engine analysis. Run npm run test:evaluation for metric tests and npm run benchmark to generate evaluation-report.md from deterministic synthetic PCM. The evaluation documentation covers metric definitions, its local API, and adding datasets.

Package publication

@zoeyetc/computational-listening-engine is configured for public publication to the npm registry. Its only exported entry point is the package root, backed by dist/index.js and dist/index.d.ts. The tarball includes dist/, this README, LICENSE, and package.json.

Before a release, run:

npm test
npm publish --dry-run

Packing and publishing automatically check source boundaries, typecheck, and rebuild dist/ from scratch. The dry run prepares the package without publishing it. Actual publication requires a separate, explicit release step and npm access to the @zoeyetc scope.

License

MIT. See LICENSE.