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

cli-memory

v1.0.0

Published

Local-first, private long-term memory for AI agents. Everything runs on your machine — data never leaves your disk. Backed by LanceDB and Ollama embeddings

Readme

cli-memory

Local-first, private long-term memory for AI agents. Everything runs on your machine — data never leaves your disk.

npm install -g cli-memory

Quick start

# Make sure Ollama is running with an embedding model (e.g. nomic-embed-text)
cli-memory store "The user prefers warm water" --topic health --memory-type Preference --importance 8
cli-memory search "warm water" --topic health
cli-memory serve  # http://127.0.0.1:3456 — web console + REST API

Why

LLM agents need durable, searchable long-term memory beyond the chat window. cli-memory gives every agent a local-first, topic-partitioned memory backend accessible via CLI, JSON-RPC (cli-memory call), REST API, or a built-in web admin console.

Your memories are stored in a local LanceDB database on your own disk. No cloud, no telemetry, no third party — not even for vector embeddings (Ollama runs locally). What you write stays yours.

Features

  • 100% local-first — all data stays on your disk, zero cloud dependencies
  • Topic-scoped — separate contexts (health, family, career) don't interfere
  • Hybrid search — vector similarity + full-text search reranked by importance, recency, and access frequency
  • Durable write gate — only importance >= 7 persists by default; avoids noise
  • Memory lifecycle — extract, capture, merge, consolidate, reflect, prune
  • Web admin console — browse, search, create, and edit memories from a built-in React UI
  • Agent-ready — JSON output, cli-memory call interface, REST API, bundled agent skill

Requirements

  • Node.js >= 18
  • Ollama running locally with an embedding model (default: nomic-embed-text)
  • A writable directory for LanceDB (default: ~/.config/cli-memory/memory-lancedb)

Configuration

Set any of these via environment variables or .env files (searched in order: $(pwd)/.env, then ~/.config/cli-memory/.env, then package fallback):

| Variable | Default | Description | |---|---|---| | MEMORY_LANCEDB_URI | ~/.config/cli-memory/memory-lancedb | LanceDB data directory | | OLLAMA_BASE_URL | http://127.0.0.1:11434 | Ollama server URL | | OLLAMA_EMBEDDING_MODEL | nomic-embed-text | Embedding model name | | MEMORY_API_KEY | (none) | REST API auth key |

Agent skill

Give any supported agent persistent long-term memory with one command:

cli-memory skill install opencode   # or: claude, codex, copilot

After installation, the agent automatically knows how to use cli-memory to store facts, recall past context, retrieve preferences, and manage memory topics — no manual prompting required. Restart the agent after installing.

Commands

cli-memory --help
cli-memory tools         # discover all machine-callable operations
cli-memory call store-memory '{"topicKey":"health","content":"Prefers warm water","importance":8}'
cli-memory topic list
cli-memory list --topic health --limit 10
cli-memory reflect --topic health --save

REST API

cli-memory serve                # http://127.0.0.1:3456 — web admin console + REST API
cli-memory serve -p 5000        # serve on port 5000
cli-memory serve --api-only     # REST API only, no UI
curl http://127.0.0.1:3456/api/topics

Docs