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

openclaw-hybrid-memory

v2026.2.240

Published

Give your OpenClaw agent lasting memory: structured facts, semantic search, auto-capture & recall, decay, optional credential vault. Part of Hybrid Memory v3.

Readme

OpenClaw memory-hybrid plugin

Your OpenClaw agent forgets after each session. This plugin gives it lasting memory: structured facts (SQLite + FTS5) and semantic search (LanceDB), with auto-capture, auto-recall, TTL-based decay, dynamic memory tiering (hot/warm/cold), LLM auto-classification, graph-based spreading activation for zero-LLM recall, and an optional credential vault. Progressive disclosure lets you inject a lightweight memory index instead of full texts—the agent uses memory_recall to fetch only what it needs, saving tokens. One install, one config—then your agent remembers preferences, decisions, and context across conversations.

Part of the OpenClaw Hybrid Memory v3 deployment.

Repository: GitHub · Docs: Quick Start · README

Requirements

  • OpenAI API key — Required. The plugin uses it for embeddings (default model text-embedding-3-small); without a valid embedding.apiKey in config the plugin does not load. Optional features (auto-classify, summarize, consolidate, memory classification) use the same key with a chat model (e.g. gpt-4o-mini). With store.classifyBeforeWrite: true, new facts are classified as ADD/UPDATE/DELETE/NOOP against similar existing facts (by embedding similarity) before storing; reduces duplicates and stale contradictions. Applies to the memory_store tool, auto-capture, CLI hybrid-mem store, and extract-daily. Maintenance cron jobs and self-correction spawn use a model chosen from your config (Gemini / OpenAI / Claude)—no hardcoded model names. See CONFIGURATION.md and TROUBLESHOOTING.md.
  • Build tools for better-sqlite3: C++ toolchain (e.g. build-essential on Linux, Visual Studio Build Tools on Windows), Python 3.

Installation

1. Install the plugin (OpenClaw installs to ~/.openclaw/extensions and runs npm install; a postinstall script rebuilds better-sqlite3 for your platform):

openclaw plugins install openclaw-hybrid-memory

If you see "duplicate plugin id detected", remove the global copy once so only the NPM copy is used: run ./scripts/use-npm-only.sh from the repo root. Then use openclaw hybrid-mem upgrade for upgrades.

Upgrade to latest — One command, no fighting:

openclaw hybrid-mem upgrade

Then restart the gateway. The upgrade command removes the current install, fetches the latest from npm, rebuilds native deps, and tells you to restart.

Or with npm directly: npm i openclaw-hybrid-memory in your OpenClaw extensions folder if you manage it yourself.

2. Configure. Set your OpenAI API key and enable the plugin. Easiest: run openclaw hybrid-mem install to merge full defaults (memory slot, compaction prompts, nightly session-distillation job) into ~/.openclaw/openclaw.json, then set plugins.entries["openclaw-hybrid-memory"].config.embedding.apiKey to your key.

3. Restart the gateway and run openclaw hybrid-mem verify [--fix] to confirm SQLite, LanceDB, and the embedding API. Use --fix to add any missing config (e.g. embedding block, nightly job).

More options: Quick Start and Configuration (manual config merge, from-source install).

Files in this directory

| File | Description | |------|-------------| | package.json | npm package and OpenClaw extension entry | | openclaw.plugin.json | Plugin manifest and config schema | | config.ts | Decay classes, TTL defaults, config parsing (incl. autoRecall, store, etc.) | | index.ts | Plugin implementation (SQLite+FTS5, LanceDB, tools, CLI, lifecycle) | | versionInfo.ts | Plugin and memory-manager version metadata |

Dependencies

  • better-sqlite3 ^12.0.0
  • @lancedb/lancedb ^0.23.0
  • openai ^6.16.0
  • @sinclair/typebox 0.34.47

Build tools required for better-sqlite3: C++ toolchain (e.g. build-essential on Linux, Visual Studio Build Tools on Windows), Python 3. You may see an npm warn deprecated prebuild-install message during install; it comes from better-sqlite3's optional dependency and is harmless until WiseLibs/better-sqlite3#655 is resolved.

Credits

Based on the design in Give Your Clawdbot Permanent Memory (Clawdboss.ai). The plugin has since been extended with auto-capture, auto-recall, decay/TTL, auto-classify, token caps, consolidation, verify/uninstall CLI, and more — see the repo README and docs/.