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

@mem-weave/opencode-plugin

v0.5.6

Published

MemWeave OpenCode plugin: ships a .mcp.json so oh-my-openagent auto-registers the MemWeave remote MCP, and auto-injects summary-only memory XML into the agent's system prompt at session_start, prompt_delta, and file_pack phases. Also writes every chat mes

Readme

@mem-weave/opencode-plugin

MemWeave OpenCode plugin — registers the @mem-weave/mcp server as an MCP provider inside OpenCode, and auto-injects summary-only memory XML into the agent's system prompt at session_start, prompt_delta, and file_pack phases. Closes the progressive disclosure loop: the LLM sees summaries in the system prompt, then calls memory_expand to fetch full content.

This is the OpenCode integration half of the MemWeave stack. The complementary packages are:

Install

# 1. Install the server + mcp
npm install -g @mem-weave/server @mem-weave/mcp
# 2. Install this plugin as an OpenCode plugin
npm install -g @opencode-ai/plugin   # peer dep
npm install -g @mem-weave/opencode-plugin

Then add to ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@mem-weave/opencode-plugin"]
}

Restart OpenCode. The plugin loads on startup and:

  1. Registers mcp["memweave"] — OpenCode auto-spawns @mem-weave/mcp and the 10 memory_* tools become available to the LLM.
  2. Hooks experimental.chat.system.transform — appends <memory-context> XML (summary-only) to the system prompt at every turn.
  3. Hooks tool.execute.before — when the LLM calls Read/Edit/Write/Glob/Grep, queues a file_pack XML for the next system turn.

Progressive disclosure, end to end

plugin loads  →  config hook registers mcp["memweave"]
            ↓
OpenCode  →  10 memory_* tools in LLM's tool list
            ↓
LLM starts  →  system.transform injects summary-only XML
            ↓
LLM sees m_abc  →  calls memory_expand({memoryId: "m_abc"})
            ↓
MCP server  →  proxies to GET /api/v1/memories/m_abc
            ↓
LLM gets full content

The plugin itself is a thin coordinator — no business logic. All memory work happens in @mem-weave/server, surfaced via @mem-weave/mcp's 10 tools.

Environment variables

| Var | Default | Meaning | |---|---|---| | MEMWEAVE_URL | http://127.0.0.1:3131 | MemWeave server base URL | | MEMWEAVE_PLUGIN_TIMEOUT | 10000 (ms) | Per-inject-request timeout. Overridable. |

License

MIT