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

@devtheops/opencode-plugin-mempalace

v1.2.0

Published

MemPalace plugin for OpenCode. Installs the Python package, registers the MCP server, and injects commands and a bundled skill.

Readme

opencode-plugin-mempalace

npm version npm downloads GitHub stars Build status License

An OpenCode server plugin that integrates MemPalace without vendoring the MemPalace application code.

The plugin:

  • requires an existing mempalace installation and logs startup diagnostics if it is missing
  • registers a local mempalace MCP server
  • injects MemPalace slash commands into OpenCode
  • injects a bundled mempalace skill into OpenCode
  • automatically mines OpenCode session transcripts into MemPalace conversation memory
  • can inject mempalace wake-up memory into the system prompt and compaction context

Installation

Add the plugin to your OpenCode config:

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

You can configure automatic conversation mining with a per-session message threshold:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [["@devtheops/opencode-plugin-mempalace", { "threshold": 30 }]]
}

Full plugin options:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [["@devtheops/opencode-plugin-mempalace", {
    "threshold": 15,
    "autoMine": true,
    "injectWakeUp": true,
    "injectOnCompaction": true,
    "maxWakeUpChars": 4000,
    "flushOnIdle": true,
    "flushOnExit": true
  }]]
}

threshold rules:

  • default: 15
  • 0: disable threshold-triggered mining and only flush on idle, delete, and compaction
  • invalid or negative values fall back to 15

Other options:

  • autoMine: enable or disable automatic conversation mining entirely
  • injectWakeUp: inject mempalace wake-up output into the system prompt
  • injectOnCompaction: inject mempalace wake-up output into compaction context
  • maxWakeUpChars: truncate injected wake-up memory to this many characters
  • flushOnIdle: flush dirty sessions when OpenCode marks them idle or deleted
  • flushOnExit: register graceful process-exit hooks

For local development you can point OpenCode directly at this checkout:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["/path/to/opencode-mempalace/src/index.ts"]
}

Requirements

  • OpenCode
  • Python 3.9+
  • MemPalace installed already, either as mempalace on PATH or as a Python module importable by python3 or python

What It Adds

The plugin injects these commands:

  • /mempalace-help
  • /mempalace-init
  • /mempalace-mine
  • /mempalace-search
  • /mempalace-status

It also injects:

  • a mempalace skill
  • a local mempalace MCP server that runs python3 -m mempalace.mcp_server or falls back to python -m mempalace.mcp_server

If a mempalace MCP server is already configured, the plugin leaves it alone.

Runtime Behavior

When OpenCode loads the plugin, it checks for the mempalace CLI first, then falls back to verifying whether the mempalace package is importable through python3 or python.

If MemPalace is missing, the plugin does not install it automatically. Instead it logs explicit warnings so MCP startup failures are easier to diagnose.

The plugin also exports OpenCode session transcripts through the OpenCode client API and mines them with:

mempalace mine <transcript-file> --mode convos

Threshold-based mining is configurable through the plugin threshold option.

Development

bun install
bun run typecheck
bun test

See CONTRIBUTING.md for development and release workflow details.