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

@rnubel/frets

v1.0.4

Published

A terminal-based guitar fretboard trainer. Drills you on note positions across the neck with adaptive weighting (the notes you miss appear more often; the notes you get right appear less often).

Downloads

482

Readme

frets

A terminal-based guitar fretboard trainer. Drills you on note positions across the neck with adaptive weighting (the notes you miss appear more often; the notes you get right appear less often).

npx @rnubel/frets

🎸 Frets — Fretboard Trainer
Type the note name (e.g. G#, Bb, F). Ctrl+C to quit.

 ‖   |   |   |   |   |   |   |   |   |   |   |   |   |   |   
 ‖   |   |   |   |   |   |   |   |   |   |   | ▲ |   |   |   
-X-  |   | ▲ |   | ▲ |   | ▲ |   | ▲ |   |   | ▲ |   |   | ▲ 
 ‖   |   | ▼ |   | ▼ |   | ▼ |   | ▼ |   |   | ▼ |   |   | ▼ 
 ‖   |   |   |   |   |   |   |   |   |   |   | ▼ |   |   |   
 ‖   |   |   |   |   |   |   |   |   |   |   |   |   |   |   
> G
  ✓ Correct! (8.3s)
  Score: 1/1 (100%) | Avg: 8.3s

See #usage for more options and customizations.

Requirements

  • Node.js 20+

Installation

You can run this directly with npx:

npx @rnubel/frets

Or, build from source and run:

git clone https://github.com/rnubel/frets.git
cd frets
npm install
npm run build

Then run it:

node dist/index.js

Or run without building (uses ts-node):

npm start

Usage

npx @rnubel/frets [options]
node dist/index.js [options]

| Option | Default | Description | |---|---|---| | --max-fret <n> | 15 | Highest fret to include (0–24) | | --strings <list> | E,A,D,G,B,E | Comma-separated list of strings to drill | | --fretboard | true | Show ASCII fretboard diagram instead of a text prompt | | --smart | true | Adaptively weight positions toward your weak spots | | --persist <file> | (none) | File path to load/save adaptive weights between sessions | | --debug | false | Print the full weight matrix after each answer |

Examples:

# Drill only the low strings up to fret 12
node dist/index.js --strings E,A,D --max-fret 12

# Text-only prompts, no fretboard diagram
node dist/index.js --no-fretboard

# Disable adaptive weighting
node dist/index.js --no-smart

# Save and resume adaptive weights across sessions
node dist/index.js --persist ~/.frets-weights.json

Press Ctrl+C at any time to end the session and see your summary.

How it works

In smart mode, each string/fret position has a weight that starts at 1×. An incorrect answer raises the weight up to 4×, making that position appear proportionally more often. A correct answer lowers the weight toward 0.5×, with the reduction scaled by response time — slow correct answers don't reduce the weight as aggressively as fast ones.

License

Free use.