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

tuner-cli

v2026.4.1

Published

Terminal chromatic instrument tuner (Node.js CLI) using tuner-core and decibri / PortAudio for microphone capture.

Readme

tuner-cli

Chromatic instrument tuner in the terminal: live pitch from your microphone, needle-style cents display, and optional string hints. Built with tuner-core (detectors + session) and decibri (PortAudio capture).

A guitar tuner in your terminal

Requirements

  • Node.js 20+
  • A microphone and an OS where decibri can open an input (prebuilt binaries when available; otherwise a local build toolchain may be needed for that package)

Install

npm install -g tuner-cli

Run tuner on your PATH. To try without a global install:

npx tuner-cli

Usage

Start the tuner with defaults (guitar, host default input, 48 kHz):

tuner

Discover inputs and built-in instruments:

tuner --list-devices
tuner --list-instruments
tuner --list-tunings guitar

Point at a specific input and instrument:

tuner --device 1 --instrument bass --tuning bass-standard
tuner --rate 44100 --detector pyin --verbose

Use -h / --help for full CLI text and more examples.

Options

| Flag | Description | |------|-------------| | -h, --help | Help | | -v, --verbose | Print resolved config on stderr before audio starts | | --list-devices | List audio inputs | | --list-instruments | List instrument ids | | --list-tunings <id> | List tunings for an instrument | | --device … | Input device: numeric index or substring of the device name | | --rate <hz> | Sample rate (default 48000) | | --instrument <id> | Instrument (default guitar) | | --tuning <id> | Tuning (default: first for that instrument) | | --detector <kind> | yin, pyin, mpm, autocorrelation (default yin) | | --cents-threshold <n> | In-tune window for the string hint (default 5) | | --style <name> | standard, colors, ansi | | --color <mode> | auto, always, never (honours NO_COLOR / FORCE_COLOR when auto) |

Interactive terminal

If stdin and stdout are a TTY, you can change settings without restarting the whole program:

| Key | Action | |-----|--------| | i | Instrument | | t | Tuning | | s | Display style | | a | Advanced (detector, rate, device, cents, color, style) | | q, Esc, | Quit (when no menu is open; in lists, Esc / goes back) | | Ctrl+C | Quit |

In lists: / (or j / k) move; Enter or (or l) select; Esc or (or h) cancel. Changing detector, rate, or device in Advanced restarts the audio stream.

Developing

This package lives in the Tuner monorepo.

git clone https://github.com/mducharme/Tuner.git
cd Tuner
pnpm install
pnpm dev:cli          # run from source via tsx
pnpm --filter tuner-cli build
pnpm --filter tuner-cli test
pnpm --filter tuner-cli run package:assert

Releases and versioning are handled in the monorepo (see the root README and CHANGELOG).

License

MIT — see LICENSE.