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

opencode-deja

v0.20.2

Published

deja-vu memory for opencode: the session history of thirty-two other coding agents, searchable and recalled on every request — a local index, no LLM.

Readme

opencode-deja

opencode remembers its own sessions. This plugin answers the other question: what you did in the thirty-two other coding agents on this machine — Claude Code, Codex, Cursor, Gemini and Zed among them — including the months before you installed anything.

It runs deja, a local Go binary that indexes the transcripts those agents already wrote to disk. No LLM, no embeddings, nothing leaves the machine.

Install

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

opencode installs the package on start. The deja binary comes with it, but a deja you installed yourself always wins — see Which binary.

deja install --auto wires opencode too, and is the shorter path if you have the CLI: it adds deja's MCP server and writes a plugin of its own. Having both is fine. This package reads what the installer left — the MCP entry in opencode.json, the plugin file in plugins/deja.js — and contributes only what is missing, so nothing is registered or recalled twice.

What you get

Six tools the model can call:

| Tool | Answers | |---|---| | deja_recall | past sessions matching an error, function, file or flag | | deja_session | the full digest of one past session — what was tried and decided | | deja_blame | the sessions that discussed a file, before you edit it | | deja_fix | what this machine ran after that same error, where it stayed fixed | | deja_how | the real build/test/deploy invocation, with the flags actually used | | deja_remember | store one durable decision |

And recall nobody has to ask for:

  • the project's recent sessions are pushed onto the system prompt once per session, with a one-time toast so you know memory arrived;
  • each prompt gets a relevance pass of its own — silent when nothing matches;
  • before compaction the working transcript is indexed, so the session survives the window collapsing.

Options

{
  "plugin": [["opencode-deja", { "autoRecall": false, "tools": true }]]
}
  • autoRecall (default true) — the three hooks above. Turn off to keep only the tools.
  • tools (default true) — the six tools. They are skipped on their own when deja install already wired the MCP server; set this to false to drop them when you reach deja some other way.
  • bin — path to a specific deja binary.

Which binary

In order: bin from the options, DEJA_BIN, a deja on PATH, the usual install locations (~/.local/bin, /usr/local/bin, /opt/homebrew/bin), and only then the copy npm installed with this package. Your own deja update or brew upgrade deja wins over whatever version this package shipped with.

Without deja anywhere, the tools say so instead of reporting an empty history, and the hooks stay quiet.

License

MIT