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

@rbrtdds/acp-cli

v0.1.5

Published

AI Context Protocol — CLI tool for managing AI memory

Readme

@rbrtdds/acp-cli

CLI tool for ACP (AI Context Protocol) — manage your AI memory from the terminal.

Install

npm i -g @rbrtdds/acp-cli @rbrtdds/acp-mcp

Requires Node.js >= 18.

Setup

acp init

acp init handles the full setup in one step:

  • Prompts for SQLite engine and embedding preferences
  • Saves config to ~/.acp/config.json
  • Registers the MCP server with Claude Code
  • Adds ACP instructions to ~/.claude/CLAUDE.md
  • Database is created automatically on first use

Commands

acp init

Full interactive setup. Prompts for:

  • SQLite engine: sqlite-wasm (zero native deps) or sqlite-native (faster, uses better-sqlite3)
  • Embeddings: local model (~23MB, offline) or disabled (keyword-only search)

Then automatically:

  • Registers MCP server via claude mcp add (with fallback instructions if claude CLI is not available)
  • Injects ACP instructions into ~/.claude/CLAUDE.md (updates existing block or prepends)

acp import claude-code

Import Claude Code sessions from ~/.claude/projects/.

acp import claude-code           # interactive project selection
acp import claude-code -a        # import all projects
acp import claude-code -n 10     # max 10 sessions per project
acp import claude-code -p <path> # import specific project path

| Option | Description | |--------|-------------| | -a, --all | Import all projects without prompting | | -n, --sessions <count> | Max sessions per project | | -p, --path <path> | Specific project path to import |

acp status

Show memory statistics.

acp status                # global stats
acp status -p my-project  # stats for specific project

acp sessions <project>

List sessions for a project.

acp sessions my-project
acp sessions my-project -l 50       # show up to 50 sessions
acp sessions my-project -t warm     # filter by tier (hot/warm/cold)

acp recall <query>

Search ACP memory.

acp recall "auth middleware"                    # search current project (from CWD)
acp recall "auth middleware" -p my-project      # search specific project
acp recall "auth middleware" --all              # search all projects
acp recall "query" -f json                      # raw format
acp recall "query" -t 1200                      # max 1200 tokens

| Option | Description | |--------|-------------| | -p, --project <name> | Limit search to specific project | | -f, --format <format> | Output format: system-prompt (default), structured, raw | | -t, --tokens <n> | Max tokens (default: 800) | | --all | Search across all projects |

acp facts <project>

List and manage facts.

acp facts my-project                        # list all facts
acp facts my-project -t decision            # filter by type
acp facts my-project --pinned               # show pinned only
acp facts add my-project decision "We use JWT for auth"
acp facts add my-project stack "Next.js 14, TypeScript" --pin
acp facts pin <factId>                      # pin a fact
acp facts remove <factId>                   # delete a fact

Fact types: stack, decision, architecture, convention, preference, learning, task, blocker, contact, custom

acp export <project>

Export project context.

acp export my-project              # export as CLAUDE.md block
acp export my-project -f json      # export as JSON

acp compact

Run memory compaction — demotes old sessions, removes low-confidence facts, frees storage.

acp compact                   # compact all projects
acp compact -p my-project     # compact specific project

acp embed

Generate embeddings for un-embedded chunks.

acp embed                    # embed all
acp embed -p my-project      # embed specific project

acp setup

Configure ACP instructions in CLAUDE.md.

acp setup global     # add to ~/.claude/CLAUDE.md
acp setup project    # add to ./CLAUDE.md

acp claude

Wrap claude CLI with ACP memory injection (legacy — use MCP server instead).

acp claude                        # launch claude with ACP context
acp claude --no-inject            # skip context injection
acp claude --no-import            # skip auto-import after session
acp claude --scope project        # scope: project or all
acp claude --max-tokens 1200      # max tokens for injected context
acp claude --dry-run              # show what would be injected

Related

License

MIT