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

@anson-no-bug/pi-pet-plus

v0.2.1

Published

A real-time pet companion for pi with progression, localization, and optional news delivery

Downloads

86

Readme

@anson-no-bug/pi-pet-plus

English README | 中文

这是一个给 pi 用的全局宠物插件,特点是:

  • 紧凑的 ASCII 宠物 widget
  • 长期成长系统
  • 中英文本地化
  • 可选的 pet-news 新闻播报模块
  • 跨项目、跨 session 的全局存档

安装

从 npm 安装

pi install npm:@anson-no-bug/pi-pet-plus

本地开发加载

pi -e ./src/index.ts

目前包含什么

模块

  • pet-core
    • 宠物 widget
    • 成长系统
    • speech 气泡层
    • 命令与设置
  • pet-news
    • 新闻抓取
    • 轮播
    • 以宠物发言为主的播报方式
    • 可选 footer 模式

当前物种

  • 电气鼠
  • 种子兽
  • 火龙兽

成长阶段

分支前的可见阶段:

  1. 宝宝
  2. 学园期
  3. 高中
  4. 大学

大学毕业后可选两条职业线:

  • 学术线:硕士 → 博士 → 教授 → 院士
  • 工程线:实习生 → 工程师 → 高级工程师 → 领域专家

交互式使用方式

主宠物菜单

打开菜单:

/pet

你可以在菜单里:

  • 查看状态
  • 切换宠物
  • 新建宠物
  • 删除宠物
  • 打开 pet-news
  • 毕业后选择职业线
  • 打开设置
  • 显示 / 隐藏 widget

新闻菜单

可以直接打开:

/news

也可以从宠物里进入:

/pet news

在新闻详情面板里,点击 Open ↗ 可以打开完整文章链接。

命令列表

宠物命令

/pet
/pet status
/pet new
/pet rename <name>
/pet switch
/pet switch <name>
/pet delete <name>
/pet news
/pet branch
/pet preview <state>
/pet demo
/pet config
/pet toggle

新闻命令

/news
/news open
/news toggle
/news on
/news off
/news next
/news prev
/news refresh
/news config
/news add-rss <url> [label]
/news remove <sourceId>
/news status

默认设置

当前默认值:

  • 宠物动画速度:0.5 FPS
  • 新闻滚动速度:100ms
  • 语言:zh
  • 新闻展示方式:speech

设置入口:

/pet config
/news config

开发 / 调试命令

本地调试视觉时可以使用:

/pet dev xp <totalXp>
/pet dev stage <baby|kindergarten|elementary|middle-school|high-school|university>
/pet dev branch <none|academia|engineering> [rank]
/pet dev reset

例如:

/pet dev stage baby
/pet dev stage university
/pet dev branch academia 4
/pet dev branch engineering 4

存储位置

全局文件位于:

  • ~/.pi/agent/pet/config.json
  • ~/.pi/agent/pet/state.json
  • ~/.pi/agent/pet/news-cache.json

开发

npm run typecheck
npm test

相关文档

License

MIT