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

caveat-cli

v0.11.1

Published

External spec gotcha knowledge base CLI (markdown + SQLite FTS5 + MCP + Claude Code hooks)

Downloads

1,640

Readme

caveat-cli

External spec gotcha knowledge base CLI — markdown + SQLite FTS5 + MCP server + Claude Code hooks. Personal / group knowledge tool, no central shared DB.

Source / full docs: https://github.com/kitepon-rgb/Caveat

Install

npm install -g caveat-cli
caveat init

caveat init (idempotent, --dry-run supported) does 3 things:

  1. Scaffolds ~/.caveat/own/ (your personal knowledge repo) + ~/.caveat/index/caveat.db
  2. Registers the MCP server with Claude Code (claude mcp add --scope user)
  3. Merges UserPromptSubmit / Stop hooks into ~/.claude/settings.json (existing entries preserved, backup written before any change)

Opt-out: --skip-claude. caveat uninstall reverses the Claude Code changes without touching ~/.caveat/. No central DB is auto-subscribed — add knowledge sources explicitly with caveat community add.

Basic usage

caveat search "rtx"                 # FTS across your own entries + subscribed repos
caveat list                         # recent entries
caveat community add <github-url>   # subscribe to a teammate / group repo
caveat community pull               # git-pull every subscribed repo
caveat community list               # show subscribed handles
caveat community remove <handle>    # unsubscribe + purge db rows
caveat pull                         # community pull + re-index everything
caveat serve                        # http://localhost:4242 read-only portal
caveat uninstall                    # reverse `caveat init` Claude integration

Sharing with a team

There is no caveat push (since v0.7). To share with teammates, use plain git:

  1. Create a GitHub repo (private or public), e.g. acme-corp/caveats, with an entries/ directory.
  2. Either point your knowledgeRepo at that repo (write directly to it) or copy shareable entries into it by hand. Then git push as usual.
  3. Each teammate runs caveat community add https://github.com/acme-corp/caveats once, and caveat pull to refresh.

Trust is defined socially — by who has write access to your group repo — instead of by automated content gates on stranger PRs.

MCP tools (6)

Exposed to Claude Code via the MCP server that caveat init registers:

caveat_search, caveat_get, caveat_record, caveat_update, caveat_list_recent, caveat_pull.

Claude can autonomously pull subscribed-repo updates (safe, idempotent). Recording / updating writes to your local ~/.caveat/own/ only — sharing is done by you via git push to your group repo.

Pointing at a different knowledge repo

If you want ~/.caveat/own/ to live elsewhere (e.g. a git-tracked directory you sync to a team repo), override in ~/.caveatrc.json:

{ "knowledgeRepo": "/absolute/path/to/your/caveats-repo" }

Requirements

  • Node 22.5+ (for built-in node:sqlite)
  • git for caveat community add / caveat community pull
  • Claude Code installed if you want MCP / hooks integration. Without it, caveat init --skip-claude still provisions local state.

License

MIT