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

@notegraph/cli

v0.1.1

Published

notegraph — read and write one NoteGraph graph from the command line, built for coding agents: ranked search with snippets, section reads, atomic appends, and a self-describing guide.

Readme

@notegraph/cli

notegraph reads and writes one NoteGraph graph from the command line. It is built for coding agents — Claude Code, Codex, Cursor, anything that can run a shell command — so a project's context lives in a graph every collaborator's agent shares, instead of being re-explained every session.

npm install -g @notegraph/cli
notegraph guide            # how to store and find context so it is found again — paste into your agent's instructions

Connect to a graph

In the NoteGraph app open a graph card → gear → Agent access, name a token, and save what it shows as .notegraph in your repository (the file is found in the working directory or any directory above):

{ "url": "https://notes.example.com:9020", "token": "ng_1f2e3d4c.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }

Or notegraph init <url> <token>, or NOTEGRAPH_URL + NOTEGRAPH_TOKEN in the environment. The token is the scope: one graph, no way to reach another.

Commands

notegraph guide                                    how to use the graph well — agent-agnostic, ~10 KB
notegraph index [--compact] [--depth N] [--tag T] [--label L] [--since 2d]
notegraph search <words> [--limit N] [--offset N] [--in <id>] [--tag T] [--label L]
notegraph read <id|root> [--outline] [--section "<heading>"]   "root" is the graph root — its own README
notegraph labels
notegraph create --title T [--parent <id>] [--body B | --body-file F | --stdin] [--label L] [--subgraph]
notegraph append <id> --body B                     atomic on the server
notegraph write <id> [--title T] [--body B] [--if-match <updated>]
notegraph import <file.md> [--parent <id>] [--split h2|h3|none]
notegraph tag <id> <name>  ·  notegraph untag <id> <name>
notegraph delete <id>  ·  notegraph files <id>  ·  notegraph transcribe <id> --file <fileId>  ·  notegraph rewrite <id> --prompt P
notegraph help [--json]                            every command; --json is a machine-readable manifest

--json on any command prints the raw response. Search returns ranked hits with snippets and a path, never bodies — read is the follow-up, --outline and --section for long notes.

Start of an agent session

notegraph read root                    # how this graph is organised and meant to be queried — read it first
notegraph index --compact --depth 1    # the first ring with ids, ~1–2 KB (--depth 2 when the ring is topics)
notegraph index --since 2d             # what changed while you were away
notegraph search "<what you need>"     # then read <id> --section "<heading>"

The root node is the graph's README: whatever its people wrote there about shelves, tags, labels and sections overrides the defaults in notegraph guide.

The server side is the NoteGraph app: https://github.com/kalevski/notegraph — docs/cli.md there documents the agent API this tool talks to.