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

brethof-brain-opencode

v0.1.2

Published

brethof-brain cloud memory for OpenCode and Kilo Code — session brief, ambient recall and full-session archive as a native plugin.

Readme

brethof-brain for OpenCode & Kilo Code

One native plugin, two platforms — Kilo Code's core is OpenCode-derived and exposes the identical plugin interface. Full ambient contract:

  • Session brief — the model is briefed on your project with the first message of the session.
  • Ambient recall — every user message pulls the matching memory in ahead of the answer; no tool call, no command.
  • Archive — when a turn settles, the exchange lands in your Brain's complete chat archive.

Injected memory parts are flagged synthetic (the platform's own convention for machine text), so the human's words and the injected memory never mix — in the archive or anywhere else. Every hook is fail-open: if the Brain is unreachable, the agent just runs without memory.

Install — OpenCode

Drop the plugin file in place (project or global):

mkdir -p .opencode/plugins && cp lib/index.js .opencode/plugins/brethof-brain.js

or global: ~/.config/opencode/plugins/brethof-brain.js — or add the npm package to opencode.json:

{ "plugin": ["brethof-brain-opencode"] }

Install — Kilo Code

Same file, Kilo's locations: .kilocode/plugin/brethof-brain.js (project) or ~/.config/kilo/plugin/brethof-brain.js (global), or the plugin array in kilo.json. One install covers Kilo's VS Code, JetBrains, CLI and TUI — they are all clients of the same core.

Configure

~/.brethof-brain/config.json (the file every brethof-brain adapter reads):

{
  "api_key": "bmv2_...",
  "endpoint": "http://127.0.0.1:8610",
  "default_project": "my-project"
}

Environment variables override the file: BRETHOF_BRAIN_API_KEY, BRETHOF_BRAIN_ENDPOINT, BRETHOF_BRAIN_PROJECT. Hosted memory: add BRETHOF_BRAIN_UNLOCK_PASSPHRASE (or unlock_passphrase in the config file) and the plugin unlocks your memory itself when it has locked after idle; BRETHOF_BRAIN_LOCK_AFTER_MINUTES sets that idle time (5-60).

Get a key at brethof.ai/account.