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

@harigovindarajan/pi-memory-adapter

v0.1.0-beta.2

Published

Local-first memory subsystem for Pi

Readme

Pi Memory Adapter

A memory add-on for Pi that helps your assistant remember things across sessions.

It is designed for real daily use:

  • easy to inspect by humans
  • safe defaults
  • works even when parts of retrieval fail

What you get

1) Human-readable memory files (default)

By default, memory is written to markdown files you can open and edit:

  • MEMORY.md → long-term important facts/preferences
  • memory/YYYY-MM-DD.md → daily notes

2) Safe read behavior

Reading a memory file that does not exist returns empty text instead of crashing.

3) Better retrieval quality controls

Optional retrieval tuning:

  • MMR (more diverse top results)
  • Temporal decay (newer memories can rank above stale ones)

Install

# from npm
pi install npm:@harigovindarajan/pi-memory-adapter

# or from git
pi install git:github.com/harigovindarajan/pi-memory-adapter

Then restart Pi (or run /reload).


Use in plain language

Save something

memory write "user prefers concise summaries"

Search memory

memory search "how does user like summaries"

Check health

memory doctor

See stats

memory stats

Where files are stored

Default base path:

~/.pi-agent/memory/

Inside each namespace:

{agent_id}/{user_id}/{project_id}/
  MEMORY.md
  memory/YYYY-MM-DD.md
  entries/*.json
  index/*

Notes:

  • Markdown files are the canonical user-facing memory.
  • JSON + index files are used for retrieval speed and compatibility.

Common checks

"Is markdown memory enabled?"

It is enabled by default.

You can still override with config at ~/.pi-agent/memory.config.json:

{
  "markdown_memory": { "enabled": true }
}

"Did it create files?"

After writing at least one memory, run:

find ~/.pi-agent/memory -type f \( -name "MEMORY.md" -o -path "*/memory/*.md" \)

If you are using it as a library

import { MemoryAdapter } from "@harigovindarajan/pi-memory-adapter";

const memory = new MemoryAdapter({
  agent_id: "my-agent",
  project_id: "my-project",
});

await memory.write({ content: "user prefers dark mode", type: "curated" });

const result = await memory.search("user preferences");
console.log(result.entries);

const read = await memory.get("memory/2026-03-01.md", 1, 100);
console.log(read.text);

Dev

npm install
npm run build
npm test

License

MIT

Project Status

  • Status: Active
  • Last Updated: 2026-03-02
  • Intent: Practical QA automation leadership and execution quality.