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

yasb-cli

v1.0.1

Published

Command-line client for yasb — read, write, and trash your notes from the terminal.

Readme

yasb-cli

Command-line client for yasb — read, write, and trash your notes from the terminal.

Install

npm i -g yasb-cli

Requires Node.js 20+.

Get started

  1. Open yasb in your browser, go to Settings → API keys → New key, copy the yk_… value (shown once).

  2. In your terminal:

    yasb login           # paste the key when prompted
    yasb vaults          # list your vaults
    yasb ls              # list notes (newest first)

yasb login defaults to the production yasb backend. Pass --dev to point at the development deployment.

Commands

| Command | What it does | | ------------------------------------------- | ----------------------------------------- | | yasb login [--dev] | Save site URL + API key locally. | | yasb logout | Delete the saved credentials. | | yasb whoami | Print the authed user and granted scopes. | | yasb vaults | List your vaults. | | yasb ls [--all] | List notes; --all includes trashed. | | yasb cat <id> | Print a note's markdown. | | yasb new --vault <id> --title <t> | Create a note. Reads markdown on stdin. | | yasb edit <id> [--title <t>] | Update title and/or markdown (stdin). | | yasb rm <id> | Soft-delete a note (restore from device). |

Examples

# Pipe a file into a new note
cat draft.md | yasb new --vault v_abc123 --title "Draft"

# Rename a note
yasb edit n_xyz789 --title "Better title"

# Replace a note's body from your editor
$EDITOR /tmp/scratch.md && yasb edit n_xyz789 < /tmp/scratch.md

# Find a note by title
yasb ls | grep -i project

# Print full markdown for backup
yasb cat n_xyz789 > backup.md

Where credentials live

~/.config/yasb/config.json (override with $YASB_CONFIG_DIR). The file is chmod-600 and holds the raw API key — losing it means minting a new one in Settings, since the server only stores the hash.

What the CLI can do

The CLI talks to the same Convex backend as the Android, web, and desktop apps over an HTTPS /api/v1 surface, authenticated with personal API keys scoped to notes:read / notes:write (and strokes:* for future ink support). Ink notes can be listed but not edited from the terminal — those flow through the device apps' sync path.

License

MIT