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

pi-memory-extension

v3.1.2

Published

A persistent memory extension for Pi Coding Agent. Markdown-based, human-curated, Global + Workspace dual-layer memory.

Readme

Pi Memory Extension

A persistent memory extension for Pi Coding Agent. Human-curated, Markdown-stored, Git-versioned long-term knowledge for Pi. v1 focuses on Pi only — not a replacement for Codex / Claude memory systems.

Philosophy

  1. Human decides what becomes memory. Only human-approved knowledge enters authoritative files.
  2. Markdown is the source of truth. Plain text, Git-diffable, reviewable, revertible.
  3. Session history is not memory. Pi JSONL stores raw conversations; memory/ stores distilled knowledge.

Installation

# From npm (recommended)
pi install npm:pi-memory-extension

# Or from GitHub
pi install git:[email protected]:appleface2050/pi-memory-extension.git
pi install git:https://github.com/appleface2050/pi-memory-extension.git

# Restart Pi or /reload

Quick Start

# 1. Initialize Global Memory (personal preferences, cross-project knowledge)
/memory:init global

# 2. Initialize Workspace Memory (project-specific knowledge)
cd your-project
/memory:init workspace

# 3. Check status
/memory:status
/memory:list

Commands

| Command | Description | |---------|-------------| | /memory:init global | Initialize ~/.pi/memory/ (personal layer) | | /memory:init workspace | Initialize .pi/memory/ in current project | | /memory:status | Show detailed loaded memory info | | /memory:list | Show file counts for Global and Workspace | | /memory:refresh | Reload all memory files | | /memory:checkpoint | Generate session summary to workspace inbox (requires workspace) | | /memory:promote <file> <targetDir> <targetFile> | Promote inbox content to authoritative file | | /memory:clear-task | Clear state/current-task.md (interrupt recovery done) |

Storage Layout

Global Memory (~/.pi/memory/)

~/.pi/memory/
├── user/                       # Personal preferences
│   ├── preferences.md
│   ├── coding-style.md
│   └── tools.md
├── facts/                      # Background facts
│   ├── environment.md
│   └── references.md
├── knowledge/                  # Cross-project knowledge
│   ├── decisions.md
│   ├── patterns.md
│   ├── lessons.md
│   └── bugs.md
├── state/                      # Working state
│   └── current-task.md
├── inbox/                      # Pending memory candidates
└── archive/                    # Historical archive

Workspace Memory (project/.pi/memory/)

project/.pi/memory/
├── decisions.md
├── patterns.md
├── lessons.md
├── experiments.md
├── inbox/
└── archive/

Memory Merge Behavior

When both Global and Workspace memory are loaded, they are merged with the following priority:

  1. Working state (state/current-task.md) — always injected first, highest priority
  2. Workspace Memory — fully preserved, takes precedence over Global
  3. Global Memory — included if budget allows

File override by basename: If Workspace has a file named decisions.md, it overrides any Global file with the same basename (e.g., knowledge/decisions.md), regardless of subdirectory. This ensures project-specific decisions take precedence over generic ones.

If total content exceeds the character budget (default 8000), Workspace is fully preserved and Global is truncated from the tail.

Design Document

See docs/design.md for the full design specification.

License

MIT