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

@paulpierre/memvid-openclaw

v0.2.0

Published

Memvid memory plugin for Clawdbot - single-file AI memory with instant retrieval

Readme

memvid-openclaw

Memvid Memory Plugin for Clawdbot — Single-file AI memory with instant retrieval and long-term storage.

npm version License: MIT

Overview

This plugin integrates Memvid into Clawdbot, providing:

  • Persistent Memory: Store facts, preferences, decisions, and context in portable .mv2 files
  • Instant Retrieval: Sub-5ms local search with hybrid vector + BM25 ranking
  • Multiple Collections: Organize memories by project, context, or any custom grouping
  • Auto-Capture (optional): Automatically capture memories from conversations based on triggers

Quick Install

One-liner (curl | bash)

curl -fsSL https://raw.githubusercontent.com/paulpierre/memvid-openclaw/main/install.sh | bash

Manual Install

# Install the plugin
clawdbot plugins install @paulpierre/memvid-openclaw

# Or install from GitHub
clawdbot plugins install https://github.com/paulpierre/memvid-openclaw.git

# Or clone and link for development
git clone https://github.com/paulpierre/memvid-openclaw.git
cd memvid-openclaw
npm install
npm run build
clawdbot plugins install -l .

Configuration

Add to your clawdbot.json:

{
  "plugins": {
    "entries": {
      "memvid": {
        "enabled": true,
        "config": {
          "storagePath": "~/.clawdbot/memvid",
          "defaultCollection": "memories",
          "embedding": {
            "provider": "local",
            "model": "bge-small-en-v1.5"
          },
          "search": {
            "topK": 10,
            "snippetChars": 200,
            "hybrid": true
          },
          "autoCapture": {
            "enabled": false,
            "triggers": ["preference", "decision", "important", "remember"]
          }
        }
      }
    }
  }
}

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | storagePath | string | ~/.clawdbot/memvid | Directory for .mv2 memory files | | defaultCollection | string | memories | Default collection for storing memories | | embedding.provider | local | openai | local | Embedding provider | | embedding.model | string | bge-small-en-v1.5 | Embedding model name | | search.topK | number | 10 | Default number of search results | | search.snippetChars | number | 200 | Characters in result snippets | | search.hybrid | boolean | true | Use hybrid search (vector + BM25) | | autoCapture.enabled | boolean | false | Auto-capture from conversations | | autoCapture.triggers | string[] | [...] | Keywords that trigger auto-capture |

Tools

The plugin provides these tools to the agent:

memvid_store

Store a memory or fact in the knowledge base.

// Parameters
{
  content: string;      // Required: Content to store
  title?: string;       // Optional: Title for the memory
  collection?: string;  // Optional: Collection name
  tags?: object;        // Optional: Key-value tags
}

// Example
await memvid_store({
  content: "User prefers dark mode in all applications",
  title: "UI Preference",
  tags: { category: "preference", priority: "high" }
});

memvid_search

Search for relevant memories.

// Parameters
{
  query: string;        // Required: Natural language query
  collection?: string;  // Optional: Specific collection
  topK?: number;        // Optional: Number of results
  tags?: object;        // Optional: Filter by tags
}

// Example
await memvid_search({
  query: "user preferences",
  topK: 5
});

memvid_list

List all collections and their stats.

await memvid_list();
// Returns: { collections: [{ name, path, sizeBytes, lastModified }] }

memvid_delete

Delete a memory by ID (note: memvid uses append-only storage).

await memvid_delete({ id: "memory-id", collection: "memories" });

Local Embedding Models

For local embeddings, download the model files:

mkdir -p ~/.cache/memvid/text-models

# BGE-small (recommended, 384 dimensions)
curl -L 'https://huggingface.co/BAAI/bge-small-en-v1.5/resolve/main/onnx/model.onnx' \
  -o ~/.cache/memvid/text-models/bge-small-en-v1.5.onnx
curl -L 'https://huggingface.co/BAAI/bge-small-en-v1.5/resolve/main/tokenizer.json' \
  -o ~/.cache/memvid/text-models/bge-small-en-v1.5_tokenizer.json

Development

# Clone and install
git clone https://github.com/paulpierre/memvid-openclaw.git
cd memvid-openclaw
npm install

# Build
npm run build

# Run tests
npm test

# Watch mode
npm run dev

Project Structure

memvid-openclaw/
├── src/
│   ├── index.ts           # Plugin entry point
│   ├── memvid-manager.ts  # Core manager class
│   └── types.ts           # TypeScript definitions
├── tests/
│   └── memvid-manager.test.ts
├── clawdbot.plugin.json   # Plugin manifest
├── package.json
├── tsconfig.json
└── README.md

How It Works

  1. Storage: Memories are stored in .mv2 files (memvid's capsule format) — portable, versioned, and self-contained.

  2. Collections: Each collection is a separate .mv2 file. Organize by project, context, or any grouping that makes sense.

  3. Search: Uses hybrid search combining:

    • Vector search: Semantic similarity via embeddings
    • BM25: Keyword relevance ranking
  4. Auto-Capture: When enabled, the plugin can automatically capture memories when trigger keywords appear in conversations.

Integration with Clawdbot Memory Stack

This plugin complements other memory systems:

| System | Type | Best For | |--------|------|----------| | Native Markdown | Files | Human-readable logs, curated notes | | memvid (this) | Binary | Fast retrieval, portable capsules | | mem0 | Remote | Cross-session entities, relationships |

Use them together for comprehensive agent memory.

License

MIT — see LICENSE

Links