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

@csuwl/opencode-memory-plugin

v1.3.6

Published

OpenClaw-style memory system for OpenCode with full automation and real vector search

Downloads

162

Readme

@csuwl/opencode-memory-plugin

OpenClaw-style persistent memory system for OpenCode with flexible configuration for embedding models and search modes

Installation

# Install latest version
npm install @csuwl/opencode-memory-plugin -g

# Or install a specific version
npm install -g @csuwl/[email protected]

# Or install locally without -g
npm install @csuwl/opencode-memory-plugin

The plugin will be automatically configured for you!

Features

  • 9 core memory files (OpenClaw-style)
  • 8 memory tools (write, read, search, vector search)
  • 2 automation agents (auto-save, auto-consolidate)
  • Daily memory logs with automatic consolidation
  • Configurable semantic search using @huggingface/transformers
  • Multiple search modes: hybrid, vector-only, bm25-only, hash-only
  • Multiple embedding models: all-MiniLM-L6-v2, bge-small-en-v1.5, bge-base-en-v1.5, and more
  • 100% local - No API calls, models auto-download on first use

Configuration

The plugin supports flexible configuration via ~/.opencode/memory/memory-config.json.

Quick Configuration Examples

Default (Balanced) - Works out of the box:

{
  "search": { "mode": "hybrid" },
  "embedding": {
    "model": "Xenova/bge-small-en-v1.5"
  }
}

Fast Search (No model, keywords only):

{
  "search": { "mode": "bm25" },
  "embedding": { "enabled": false }
}

High Quality (Best model):

{
  "search": { "mode": "vector" },
  "embedding": {
    "model": "Xenova/bge-base-en-v1.5"
  }
}

Resource-Constrained (Smallest model):

{
  "search": { "mode": "vector" },
  "embedding": {
    "model": "Xenova/all-MiniLM-L6-v2"
  }
}

Available Search Modes

| Mode | Description | Speed | Quality | Model Required | |------|-------------|-------|---------|----------------| | hybrid | Vector + BM25 (best) | Medium | ⭐⭐⭐⭐ | Yes | | vector | Vector-only | Medium | ⭐⭐⭐ | Yes | | bm25 | Keywords only | Fast | ⭐⭐ | No | | hash | Hash fallback | Fast | ⭐ | No |

Available Embedding Models

| Model | Size | Quality | Speed | Best For | |-------|------|---------|-------|----------| | Xenova/all-MiniLM-L6-v2 | 80MB | Good | ⚡⚡⚡ | Baseline | | Xenova/bge-small-en-v1.5 ⭐ | 130MB | Excellent | ⚡⚡ | Best balance | | Xenova/bge-base-en-v1.5 | 400MB | Best | ⚡⚡ | High quality | | Xenova/gte-small | 70MB | Very Good | ⚡⚡⚡ | Small + fast |

See CONFIGURATION.md for details.

Usage

After installation, all memory tools are available in OpenCode:

# Write to memory
memory_write content="User prefers TypeScript" type="long-term"

# Search memory
memory_search query="typescript"

# Semantic search (respects your config)
vector_memory_search query="how to handle errors"

# List daily logs
list_daily days=7

What's New in v1.1.0

Flexible Configuration System

  • Choose from 5 embedding models (small to large)
  • 4 search modes (hybrid, vector, bm25, hash)
  • Configurable quality vs speed tradeoffs
  • Easy fallback to keyword-only search

True Semantic Search

  • Real vector embeddings using Transformers.js
  • Understands meaning, not just keywords
  • Works 100% offline after model download

Configuration

Memory files are located at ~/.opencode/memory/:

  • SOUL.md - AI personality and boundaries
  • AGENTS.md - Operating instructions
  • USER.md - User profile and preferences
  • IDENTITY.md - Assistant identity
  • TOOLS.md - Tool usage conventions
  • MEMORY.md - Long-term memory
  • memory-config.json - Plugin configuration
  • And more...

Documentation

License

MIT