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

@lykling/pi-supermemory

v0.2.0

Published

Persistent Supermemory cloud memory for the Pi coding agent. Shares the same memory store as your opencode supermemory plugin.

Readme

pi-supermemory

Supermemory persistent memory for the pi coding agent — and it shares the same memory store as your opencode supermemory plugin.

Both agents derive identical per-repo container tags (repo_<name>__<hash>), so anything you told opencode to remember is recalled by pi in the same repository, and vice versa.

What it does

  • Registers a supermemory tool with modes: add, search, list, forget, profile, help — the same interface as the opencode plugin.
  • Hybrid recall (v0.2.0, the default autoRecall: "hybrid"):
    • At the first prompt of a session it injects a small deterministic preload: user profile + a recent-project snapshot (latest 3, with age labels) + semantic search hits for the opening prompt, within a hard character budget.
    • For the rest of the session, per-turn reasoned recall: the tool's prompt guidelines tell the model when to search (topic shift, references to past decisions) and when to skip (self-contained or trivial messages).
    • After context compaction, profile + snapshot are re-injected, because the session-start block does not survive summarization.
    • add refuses once on near-duplicates (similarity ≥ 0.9) and suggests forget-then-add, keeping the store from stacking stale copies.
  • Redacts <private>...</private> blocks before sending anything to the cloud.
  • Reuses your existing Supermemory credentials — zero extra setup if you already use opencode-supermemory.

Install

pi install npm:@lykling/pi-supermemory

Configuration

API key resolution order (first match wins):

  1. SUPERMEMORY_API_KEY environment variable
  2. ~/.pi/agent/supermemory.json — pi-native config:
    { "apiKey": "sm_...", "autoRecall": "full" }
  3. ~/.config/opencode/supermemory.jsonc — shared with opencode
  4. ~/.supermemory-opencode/credentials.json — opencode device-flow login

Other options:

  • SUPERMEMORY_API_BASE_URL — override https://api.supermemory.ai
  • SUPERMEMORY_REPO_TAG — force a fixed container tag
  • SUPERMEMORY_ISOLATE_WORKTREES=true — give each git worktree its own tag
  • autoRecall in ~/.pi/agent/supermemory.json: "hybrid" (default; profile + recent snapshot + prompt search on both scopes), "full" (legacy eager dump), "profile" (profile only), or "off"
  • Tunables in the same file: snapshotCount (3), maxContextChars (4000), compactReinject (true), dedupeOnAdd (true), dedupeThreshold (0.9), similarityThreshold (0.6), maxMemories (5), maxProjectMemories (10), maxProfileItems (5)

The tool

| mode | args | description | |---|---|---| | add | content, type?, scope?, force? | Store a memory (scope: user/project, default project; force: true skips the near-duplicate check) | | search | query, scope?, limit? | Hybrid search over memories | | list | scope?, limit? | List recent memories | | profile | query? | User profile extracted by Supermemory | | forget | memoryId | Delete a memory | | help | — | Usage guide |

Development

npm install
npm run typecheck
npm test

The extension is plain TypeScript loaded by pi via jiti — no build step.

License

MIT