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

@zhafron/pi-memory

v1.0.2

Published

Memory management extension for pi coding agent

Readme

pi-memory

Memory management extension for pi coding agent.

Features

  • Long-term Memory: Store crucial facts, decisions, and preferences in MEMORY.md
  • Identity Management: Define AI persona in IDENTITY.md
  • User Profile: Store user context in USER.md
  • Daily Logging: Track day-to-day activities in daily/YYYY-MM-DD.md
  • Auto Context Injection: MEMORY.md, IDENTITY.md, USER.md automatically injected into system prompt
  • First Run Setup: Interactive bootstrap process for new installations
  • Cross-platform: Works on Windows, macOS, and Linux

Installation

pi install git:github.com/tickernelz/pi-memory

Or via npm:

pi install npm:@zhafron/pi-memory

Configuration

Add to ~/.pi/agent/settings.json:

{
  "pi-memory": {
    "memoryDir": "~/.pi/agent/memory",
    "dashboard": false
  }
}

| Setting | Type | Default | Description | |---------|------|---------|-------------| | memoryDir | string | ~/.pi/agent/memory | Memory directory location | | dashboard | boolean | false | Enable dashboard widget |

Memory Files

| File | Purpose | |------|---------| | MEMORY.md | Long-term memory (crucial facts, decisions, preferences) | | IDENTITY.md | AI identity (name, persona, behavioral rules) | | USER.md | User profile (name, preferences, context) | | daily/YYYY-MM-DD.md | Daily logs (day-to-day activities) | | BOOTSTRAP.md | First run setup instructions (deleted after setup) |

Tools

memory

Unified memory management tool.

Actions:

| Action | Description | Parameters | |--------|-------------|------------| | read | Read memory file | target: memory, identity, user, daily | | write | Write to memory file | target: memory, identity, user, daily; content; mode: append/overwrite | | search | Search memory files | query, max_results (optional) | | list | List all files | - |

Targets:

| Target | File | Purpose | |--------|------|---------| | memory | MEMORY.md | Long-term memory (crucial facts, decisions, preferences) | | identity | IDENTITY.md | AI identity (name, persona, behavioral rules) | | user | USER.md | User profile (name, preferences, context) | | daily | daily/YYYY-MM-DD.md | Daily logs (day-to-day activities) |

Examples:

# Read memory files
memory --action read --target memory
memory --action read --target identity
memory --action read --target user
memory --action read --target daily --date 2026-02-18

# Write to memory files
memory --action write --target memory --content "Remember to use PostgreSQL for all projects"
memory --action write --target identity --content "- **Name**: Jarvis" --mode overwrite
memory --action write --target user --content "- **Location**: New York (EST)"
memory --action write --target daily --content "Fixed critical bug in auth module"

# Search and list
memory --action search --query "PostgreSQL"
memory --action list

First Run Flow

  1. Extension detects no MEMORY.md exists
  2. Creates BOOTSTRAP.md with setup instructions
  3. AI reads BOOTSTRAP.md and asks user questions interactively
  4. AI writes to MEMORY.md, IDENTITY.md, USER.md
  5. AI deletes BOOTSTRAP.md manually
  6. Setup complete

Context Injection

The following files are automatically injected into the system prompt at session start:

  • MEMORY.md — Long-term memory
  • IDENTITY.md — AI identity
  • USER.md — User profile

Daily logs are not auto-injected and must be accessed via the memory tool.

License

MIT