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

@cnife/pi-footer

v0.3.0

Published

个人专属 pi footer:两行工作区/模型状态,全 dim,仅 ASCII+Unicode

Readme

@cnife/pi-footer

个人专属 pi footer。两行布局,全 dim,仅 ASCII + Unicode(无 nerd font),无配置。

个人扩展。安装:pi install npm:@cnife/pi-footer

布局

<目录> · <分支> ↑<ahead> ↓<behind> *<未提交数> · <会话名>
<provider>/<model_id> · <思考强度> · <已用>/<总量> (<百分比>) · $<花费> · <tps>t/s
  • 各项 · 分隔,空值自动省略(无 git 段、无会话名、cost=0、无 tps 等均不显示)
  • git:main ↑1 ↓2 *3,ahead/behind/未提交数为 0 时隐藏
  • cost:<0.01 用 3 位小数,否则 2 位;为 0 时整项隐藏
  • token:<1000 原值,<1MX.XK≥1MX.XM
  • tps:单条 assistant message 输出速率 NN.Nt/s,无数据时整项隐藏;口径 usage.output / (message_end − before_provider_request),elapsed 含网络 + 排队 + 生成(对齐 pi 官方 tps.ts

刷新

  • git 状态:10s 定时器 + tool_result(agent 工具执行后即时)+ user_bash!/!! 命令后 1.5s debounce)+ onBranchChange
  • 其余字段随 pi 内部状态自动重渲染
  • tps:message_end 后刷新并保持到下一条;切模型 / compact / 树导航 / 新会话时重置;stopReasonaborted/error 时丢弃

字符约束

仅 ASCII + Unicode 基本平面字符(· ↑ ↓ *),不依赖 nerd font。