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

@yuechou/pi-memory

v4.0.2

Published

Persistent memory for Pi Coding Agent via my-agent-memory

Readme

@yuechou/pi-memory

Pi Coding Agent 扩展:持久化记忆、Wiki、日记、三元组、图谱系统。

连接到 my-agent-memory HTTP API。

安装

# npm
npm install -g @yuechou/pi-memory

# pi
pi install @yuechou/pi-memory

工具 (42)

记忆 (6)

| 工具 | 功能 | |------|------| | memory_save | 保存记忆 | | memory_search | 搜索记忆 | | memory_list | 列出记忆 | | memory_get | 获取单条记忆 | | memory_delete | 删除记忆 | | memory_stats | 统计信息 |

RAG (4)

| 工具 | 功能 | |------|------| | rag_ingest | 摄入文档 | | rag_search | 搜索文档 | | rag_list | 列出文档 | | rag_delete | 删除文档 |

Wiki (8)

| 工具 | 功能 | |------|------| | wiki_save | 创建/更新页面 | | wiki_get | 读取页面 | | wiki_list | 列出页面 | | wiki_delete | 删除页面 | | wiki_search | 搜索页面 | | wiki_link | 管理链接 | | wiki_backlinks | 查找反向链接 | | wiki_move | 移动/重命名页面 | | wiki_tree | 获取目录树 | | wiki_ingest | 从源文档综合进 wiki | | wiki_lint | 健康检查 | | wiki_export_obsidian | 导出为 Obsidian 格式 |

日记 (6)

| 工具 | 功能 | |------|------| | diary_save | 保存日记 | | diary_update | 更新日记 | | diary_get | 获取单条日记 | | diary_delete | 删除日记 | | diary_search | 搜索日记 | | diary_list | 列出日记 |

三元组 (4)

| 工具 | 功能 | |------|------| | triple_add | 添加三元组 | | triple_query | 查询三元组 | | triple_extract | 从文本提取三元组 | | triple_stats | 统计信息 |

图谱 (4)

| 工具 | 功能 | |------|------| | graph_link | 创建关联 | | graph_related | 获取关联记忆 | | graph_path | 查找路径 | | graph_stats | 统计信息 |

系统 (6)

| 工具 | 功能 | |------|------| | memory_ping | 健康检查 | | memory_dream | 生命周期管理 | | memory_update | 更新记忆 | | rag_update | 更新文档 | | wiki_update | 更新页面 | | diary_stats | 日记统计 |

配置

环境变量

| 环境变量 | 默认值 | 说明 | |----------|--------|------| | PI_MEMORY_URL | http://111.229.146.134:8765 | 记忆服务器地址 | | PI_MEMORY_AGENT | pi | Agent ID |

CLI 参数

pi --memory-url http://your-server:8765
pi --memory-agent your-agent-id

优先级

  1. CLI 参数(最高)
  2. 环境变量
  3. 默认值(最低)

自动化

  • before_agent_start — 注入 wiki/diary 指南到系统 prompt
  • turn_end — 累积对话内容
  • session_shutdown — 自动生成会话日记

相关链接