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

@operad-io/memory

v0.5.1

Published

a wiki and memory that agents search and keep up to date

Readme

@operad-io/memory

The memory plugin. It owns the shared wiki and a bot's memory: a Markdown directory with a git history, a SQLite FTS5 index of the wiki, the memory and a bot's chats, the memory skill every bot mounts, and the commit that records what a bot reply wrote. A new home turns it on; a home made before needs operad plugin enable memory.

This package is part of operad. Most people install only @operad-io/cli.

Documentation

MIT licensed.

Memory regression set

Cases are exchanges where the bot got something wrong or the person corrected it (a correction counts as a miss): the context it had, the question and the right answer. They contain private chat text, so they live in the operad home (~/.operad/memory-cases/<id>.json, schema memory-case.schema.json), never in this repository. examples/ holds a synthetic set and its memory.

  • memory score [--cases <dir>] [--bot <name>] [--memory <dir>] [--window <n>] [--no-record] [--answer-with <program> [args]] runs the set against the bot's current memory and appends the score, the settings it was taken under and the per-case pass/fail (ids only) to memory-scores.jsonl in the home. It prints the change since the last run of the same set.
  • memory propose [--chat <id>] finds corrections in the chat record and stores each as a pending proposal. Approve it with the phrases a right answer states (one phrase per line, and optionally the wrong phrases); reject it to drop it. Nothing is added to the set without approval.

Scoring is by exact phrases, not a model judge. A case passes when every phrase is stated (ignoring case, spaces and punctuation) and no avoid phrase is. A judge adds its own drift to a number whose job is to show the memory's drift, costs a call per case, and a fixed rubric does not remove either. The phrases are short phrases the person approved. The cost is that a right answer in other words fails; write the phrase as the part that must not change (a name, a date).

The default answerer needs no model: it assembles what the bot would have in front of it (the last --window messages, as a compaction keeps them; the memory index cut at its limit; what a memory search of the question returns, including the messages the window dropped) and scores that. --answer-with runs a program that gets {question, context, memory} as JSON on stdin and prints an answer, to score a real bot.