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

opencode-named-memory

v0.0.13

Published

Named persistent memory plugin for OpenCode - gives each agent or project its own long-term memory store backed by a local SQLite database

Readme

opencode-named-memory

A persistent named memory plugin for OpenCode. Gives each agent, project, or person their own long-term memory store backed by a local SQLite database with hybrid semantic + keyword search.

Features

  • Named memory stores - separate isolated memory per name (e.g. richard, work, my-project)
  • Auto-ingest - automatically captures important user messages into the active memory
  • Auto-inject - relevant memories are prepended to the context during session compaction
  • Hybrid search - combines semantic (vector) and keyword (BM25) search via fastmemory
  • Importance filtering - only stores genuinely novel/important content, not every message
  • Age decay - recent memories are weighted higher during injection

Installation

npm install opencode-named-memory

Usage

Add to your OpenCode configuration:

{
  "plugins": ["opencode-named-memory"]
}

Then tell the agent which memory to use at the start of a session:

Use named memory 'richard' for this session.

This calls the named_memory_use tool, activating that store. All subsequent memory operations use it automatically.

Configuration

Optional config in your OpenCode config file:

{
  "plugins": ["opencode-named-memory"],
  "opencode-named-memory": {
    "importanceThreshold": 0.009,
    "noveltyThreshold": 0.87,
    "maxMemories": 7
  }
}

| Option | Default | Description | |---|---|---| | importanceThreshold | 0.009 | Minimum importance score for auto-ingesting a message | | noveltyThreshold | 0.87 | Minimum novelty score (avoids storing duplicate information) | | maxMemories | 7 | Maximum number of memories injected per session compaction |

Storage

Memory databases are stored in your OpenCode config directory:

~/.config/opencode/named-memory/named-memory-<name>.db

Each name gets its own SQLite file, so memories are fully isolated.

Tools

All tools require calling named_memory_use first to activate a store.

named_memory_use

Activate (or switch to) a named memory store.

named_memory_use({ name: "richard" })

Names are auto-lowercased and sanitized. You can switch stores mid-session by calling this again with a different name.

named_memory_search

Search the active memory with a natural language query.

named_memory_search({ query: "preferred coding style", limit: 5 })

named_memory_add

Force-add a specific piece of information to the active memory.

named_memory_add({ content: "Prefers TypeScript with strict mode off", type: "preference" })

named_memory_stats

Show how many entries are in the active memory store.

named_memory_stats()

License

MIT