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

@opitacode/dark-memory-mcp

v2.20.0

Published

dark-memory-mcp cross-platform wrapper — installs the right binary for your OS via optionalDependencies. Persistent memory + vibe-loop engine + agent governance for AI agents (MCP server).

Readme

@opitacode/dark-memory-mcp

Cross-platform npm wrapper for the dark-memory-mcp MCP server.

What is this?

This package is a shim. It does not contain the dark-memory-mcp binary itself. Instead, it ships a tiny Node.js script that detects your OS + CPU architecture, then loads the matching platform-specific sub-package (which does contain the real Go binary).

This pattern is the same one used by the official Microsoft MCP server and by npm install itself for native binaries. It lets you install one package name everywhere and let npm pick the right binary for your platform.

Install

For Claude Code / Cursor / VS Code / opencode etc., add this to your MCP host config (~/.config/opencode/opencode.jsonc, ~/Library/Application Support/Claude/claude_desktop_config.json, etc.):

{
  "mcpServers": {
    "dark-memory": {
      "command": "npx",
      "args": ["-y", "@opitacode/dark-memory-mcp"]
    }
  }
}

That's it. The first invocation downloads the wrapper + your platform's binary; subsequent invocations use the npm cache.

How it works

npx -y @opitacode/dark-memory-mcp
  |
  v
node wrapper/index.js   <-- this package
  |   (detects platform + resolves @opitacode/dark-memory-mcp-{platform}-{arch})
  v
spawn node platform-package/index.js   <-- sub-package
  |   (locates bin/dark-mem-mcp[.exe])
  v
spawn dark-mem-mcp[.exe]   <-- real Go MCP server, stdio MCP protocol

All three layers inherit stdio so the JSON-RPC stream from your AI client reaches the Go binary unchanged.

Supported platforms

| OS | Arch | Package | |----------|--------|-----------------------------------------------| | macOS | x64 | @opitacode/dark-memory-mcp-darwin-x64 | | macOS | arm64 | @opitacode/dark-memory-mcp-darwin-arm64 | | Linux | x64 | @opitacode/dark-memory-mcp-linux-x64 | | Linux | arm64 | @opitacode/dark-memory-mcp-linux-arm64 | | Windows | x64 | @opitacode/dark-memory-mcp-win32-x64 | | Windows | arm64 | @opitacode/dark-memory-mcp-win32-arm64 |

Windows note

On Windows, some MCP hosts have trouble invoking npx directly. If you see "command not found" or PATH issues, use the cmd /c wrapper:

{
  "mcpServers": {
    "dark-memory": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@opitacode/dark-memory-mcp"]
    }
  }
}

Environment variables

The wrapper passes through all CLI args to the underlying binary. You can also set environment variables:

| Variable | Default | Purpose | |------------------------------|--------------------------|------------------------------------------| | DARK_DB | platform user data dir | Where the SQLite DB lives | | SDD_LLM_BASE_URL | (empty) | Base URL for Anthropic-compatible LLM endpoint (e.g. MiniMax) | | ANTHROPIC_API_KEY | (empty) | API key for Anthropic-compatible LLM (drift_judge, mindset) | | OPENAI_API_KEY | (empty) | OpenAI API key (for drift_judge) | | GEMINI_API_KEY | (empty) | Gemini API key (for drift_judge) | | DARK_DRIFT_JUDGE_DAEMON_URL| (empty) | Drift judge daemon endpoint (virtual-key pool) |

Set them in your MCP host config under env:

{
  "mcpServers": {
    "dark-memory": {
      "command": "npx",
      "args": ["-y", "@opitacode/dark-memory-mcp"],
      "env": {
        "DARK_DB": "C:\\Users\\you\\dark-memory.db",
        "ANTHROPIC_API_KEY": "sk-ant-..."
      }
    }
  }
}

License

MIT — same as dark-memory-mcp itself. See LICENSE.

Source

  • Repository: https://github.com/Opita-Code/dark-memory-mcp
  • npm wrapper source: https://github.com/Opita-Code/dark-memory-mcp/tree/main/npm/wrapper
  • Issue tracker: https://github.com/Opita-Code/dark-memory-mcp/issues
  • Official MCP Registry entry: io.github.Opita-Code/dark-memory-mcp