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

simple-pi-memory

v0.1.1

Published

A minimal one-file memory extension for pi: one memory file loaded into the system prompt every turn, with add/remove/load tools and a /memory-char-cap command.

Downloads

305

Readme

simple-pi-memory

A minimal memory extension for pi. One file, one memory per line, loaded into the system prompt every turn.

How it works

Memories are stored as plain text in ~/.pi/simple-memory/memory.md, one per line with a [YYYY-MM-DD] date prefix. The file is read and injected into the system prompt on every turn through the before_agent_start hook. The full file is always injected and never truncated. The character cap is enforced on write, not on read.

pi rebuilds the system prompt each turn, so memory must be re-injected each turn to stay available. Loading once at session start would drop it after the first turn.

Install

pi install npm:simple-pi-memory

Or load a local checkout for development:

pi --no-extensions -e ./index.ts

Tools

| Tool | What it does | |------|-------------| | memory_add | Add one memory as a single line. Refuses on an exact duplicate or when the file is at the character cap. | | memory_remove | Remove one memory by its exact line text. Returns "not found" if no line matches exactly. | | memory_load | Read the full memory file and show the current size and cap. |

Command

/memory-char-cap [n]

No argument shows the current cap. An integer from 1 to 30000 sets it. Values outside that range are rejected. Lowering the cap below the current file size is refused; edit the memory file by hand first.

Config

~/.pi/simple-memory/config.json stores the cap:

{ "charCap": 5000 }

Default 5000. Range 1 to 30000.

Notes

  • The memory file is ~/.pi/simple-memory/memory.md. Editing it by hand is supported; changes appear on the next turn.
  • If another memory extension is installed (such as pi-memory), both will inject into the system prompt. Run one at a time.
  • Concurrent writes from multiple pi sessions are not guarded.

License

MIT.