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

@aminovsky/cli-memory

v0.3.0

Published

Cross-CLI memory bridge with local transcript import, MCP serving, and npx distribution

Readme

cli-memory-bridge

cli-memory-bridge is a local-first memory bridge for terminal coding agents and MCP-enabled CLIs. It imports conversation history from supported providers on your machine, stores canonical transcripts and embeddings locally, and serves that memory back through cmb commands and an MCP-compatible stdio server.

The current Rust build supports transcript import and retrieval for:

  • Codex
  • Claude
  • Gemini
  • Copilot
  • Zed
  • OpenCode
  • Hermes
  • Antigravity CLI

It also ships an npm package surface so MCP configs can launch it through:

npx -y @aminovsky/cli-memory serve

Features

  • cmb init to detect providers and import local conversations
  • cmb refresh to incrementally import only new or changed sources
  • cmb resume <hash-id> to restore a conversation transcript by stable hash
  • cmb conv-search <query> to search imported conversation content
  • cmb forget <provider> <hash-id> to soft-ban a conversation from future retrieval
  • cmb serve to expose the stdio MCP tool surface
  • cmb doctor and cmb stats for diagnostics
  • cmb install <provider> to render provider install/config bundles
  • cmb unlink <provider> and cmb unlink --all to render provider cleanup bundles
  • cmb uninstall to render full package removal guidance

Install

npm / npx

For MCP usage and command execution through npm:

npx -y @aminovsky/cli-memory --help

On first install, the npm package downloads a platform-specific cmb binary from the matching GitHub release for this package version and stores it under npm/vendor/<platform>/.

If you install the package globally:

npm install -g @aminovsky/cli-memory
cmb --help

Local Rust build

cargo build --release
./target/release/cmb --help

Quick start

Import local transcripts and start using retrieval:

cmb init
cmb doctor
cmb stats
cmb conv-search "run the app"

Run the MCP server through npx:

npx -y @aminovsky/cli-memory serve

MCP launch

The npm package is designed for MCP configs that accept command plus args. The preferred launcher shape is:

{
  "command": "npx",
  "args": ["-y", "@aminovsky/cli-memory", "serve"]
}

Provider install

Render a provider-specific install bundle:

cmb install gemini
cmb install zed
cmb install codex

Current install behavior is render-only. It prints the config/assets you should apply for that provider.

Provider unlink

Render cleanup instructions for one provider:

cmb unlink gemini
cmb unlink zed
cmb unlink codex

Render cleanup bundles for every supported provider:

cmb unlink --all

unlink removes provider wiring only. It does not remove the cli-memory package or the local memory database.

Full uninstall

Render full uninstall guidance:

cmb uninstall

The intended order is:

cmb unlink --all
npm uninstall -g @aminovsky/cli-memory

If you only use npx -y @aminovsky/cli-memory ..., there may be no global npm package to remove.

Supported local transcript sources

  • Codex: ~/.codex/sessions, ~/.codex/session_index.jsonl
  • Claude: ~/.claude/projects
  • Gemini: ~/.gemini/tmp/*/chats/session-*
  • Copilot: ~/.copilot/session-state/*/events.jsonl
  • Zed: ~/.config/zed/conversations/*.zed.json
  • OpenCode: ~/.local/share/opencode/storage/session_diff/*.json with opencode.db fallback
  • Hermes: ~/.hermes/sessions / ~/.hermes/history
  • Antigravity CLI: ~/.gemini/antigravity/brain/*

Release notes

For npm release prep, this repo now includes:

Before publishing to npm:

  • build release binaries for each supported platform
  • upload them to the GitHub release tagged v<package.json version>
  • use asset names in the form cmb-<version>-<platform-arch> and cmb.exe-<version>-<platform-arch> for Windows
  • verify with npm pack --dry-run and a clean npx -y @aminovsky/cli-memory --help install test

Status

This build is production-oriented but still evolving:

  • transcript import and retrieval are implemented
  • provider lifecycle commands are implemented
  • some providers are reconstructed from artifact trails rather than full native session models
  • graph/knowledge-linking is intentionally deferred

Special Thanks

This project takes reference and inspiration from: