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

openclaw-memory-brainbox

v0.1.0

Published

Brainbox as OpenClaw's native memory backend (plugins.slots.memory): graph recall with confidence grades and evidence tags, automatic session choreography, server-side dreaming.

Downloads

142

Readme

openclaw-memory-brainbox

Brainbox as OpenClaw's native memory backend, via the exclusive plugins.slots.memory slot. Replaces memory-core's memory_search/memory_get (same names, same param schemas — drop-in for existing system prompts) with graph recall from your Brainbox tenant, and adds memory_store. MEMORY.md and the file layer stay host-owned.

Requires OpenClaw >= 2026.7.1 (registerMemoryCapability; legacy seams used as fallback via optional chaining).

Install

openclaw plugins install openclaw-memory-brainbox
# kind:memory plugins auto-switch the slot on install (verified on 2026.7.1-beta.5).
# If yours didn't: openclaw config set plugins.slots.memory memory-brainbox

Auth — never put the key in plaintext config

Option A, env template (simplest; the gateway process must have the var):

openclaw config set plugins.entries.memory-brainbox.config.apiKey '${BRAINBOX_KEY}'

Option B, macOS Keychain via an exec SecretRef (recommended on Mac):

security add-generic-password -a "$USER" -s brainbox-api-key -w 'bbk_...' -U
openclaw config set --json secrets.providers.keychain '{
  "source": "exec",
  "command": "/usr/bin/security",
  "args": ["find-generic-password", "-s", "brainbox-api-key", "-w"],
  "jsonOnly": false,
  "trustedDirs": ["/usr/bin"],
  "allowInsecurePath": true
}'
openclaw config set --json plugins.entries.memory-brainbox.config.apiKey \
  '{"source": "exec", "provider": "keychain", "id": "brainbox-api-key"}'

Notes learned the hard way:

  • trustedDirs + allowInsecurePath are both required for root-owned system binaries like /usr/bin/security — the secrets runtime otherwise insists the command be owned by the current user.
  • Exec SecretRefs materialize at gateway startup. openclaw agent --local (embedded, no gateway) resolves env templates but not exec refs — if the key reads as unconfigured under --local, that's why.

Transport

  • memory_search → REST POST /ask on brainbox-mcp.thexi.dev (raw recall results: salience, confidence grades, evidence tags, honest abstention).
  • memory_get / memory_store → the same worker's /mcp door (hand-rolled JSON-RPC client, no SDK); these need server-side embeddings and R2, which is why they don't use raw Cypher.

All three tools never throw: on any backend failure they return { disabled: true, unavailable: true, error } and open a cooldown window (default 60s) so a dead backend costs one timeout, not one per turn.

Config

| key | default | | | ------------------ | -------------------------------- | -------------------------------- | | apiKey | — | bbk_ tenant key (SecretRef/env) | | baseUrl | https://brainbox-mcp.thexi.dev | | | requestTimeoutMs | 8000 | per-request timeout | | failureCooldownMs| 60000 | backoff after a backend failure |