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

@justestif/nb-agent

v1.0.1

Published

nb-native personal wiki plugin with agent-powered ask and distill commands

Readme

nb-agent

nb-native, agent-assisted personal wiki.

One command: npx @justestif/nb-agent setup. Seeds WIKI.md, installs wiki.nb-plugin, wires agent prompt command into nb ask.

E2E tested with: Pi (pi -p) · Claude Code (claude -p) · OpenCode (opencode run)

Prerequisites

  • Node.js 22+
  • nbnpm install -g nb (setup installs it if missing)

Install

npx @justestif/nb-agent setup

Pi package discovery:

pi install npm:@justestif/nb-agent

Commands

| Command | What it does | | ---------------------------------------- | --------------------------------------------------- | | nb journal "Met Sam about budget" | Timestamped note, auto-filed by type | | nb ask "What did I decide about sync?" | Prompt agent with WIKI.md context | | nb distill home --days 60 | Extract key facts from old notes, archive originals |

wiki shell helper = NB_DIR-scoped nb shortcut:

wiki journal "quick note"
wiki ask "what changed?"
wiki distill home --days 60

Wiki structure

~/.nb/
├── home/                    (nb notebook — one git repo, nb sync)
│   ├── journal/
│   ├── finance/
│   ├── projects/
│   └── reference/
├── archive/                 (distilled notes)
│   └── home/2026-04/
├── WIKI.md                  (working memory for nb ask)
├── wiki.json                (note types, agent prompt command, distill config)
├── node_modules/            (markdownlint-cli2, prettier)
├── .markdownlint.json
├── .prettierrc
└── package.json

Supported agents

| Agent | chatCmd | promptCmd | | ----------- | ---------- | -------------- | | Pi | pi | pi -p | | Claude Code | claude | claude -p | | OpenCode | opencode | opencode run | | Cursor | cursor . | cursor . |

Wizard writes chosen promptCmd to wiki.json. Plugin reads it at runtime.

Working memory (WIKI.md)

nb ask includes WIKI.md in agent prompt for persistent context.

Sections: Identity · Structure · Active context · Known facts · Preferences · Changelog

Setup wizard

  1. Agent — Pi, Claude Code, OpenCode, or Cursor
  2. Wiki location — default ~/.nb
  3. Note folders — journal, finance, projects, reference, plus custom
  4. Distillation — enable/disable, age threshold (default 30 days)

Distillation

nb distill                   # current notebook, default threshold
nb distill home --days 60    # notes older than 60 days
nb distill home --batch 20   # 20 notes per batch

Flow: list old notes → batch read → prompt agent → append to _digest.md → move originals to archive/nb sync.

Linting

nb journal runs background Markdown maintenance:

nb run npx markdownlint-cli2 --fix <note>
nb run npx prettier --write <note>
nb sync

Dry run

Preview generated files without writing:

npx @justestif/nb-agent dry-run

Development

npm run check   # format + lint + typecheck + secrets + build