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

@oipsanthony/pi-tps

v0.1.6

Published

Measure request, prompt, and session token throughput and latency in Pi and OMP.

Readme

pi-tps

在 Pi 和 OMP 中显示每个 Prompt 的 token throughput 和 latency,并汇总当前 session branch 的历史数据。

安装

Pi:

pi install npm:@oipsanthony/pi-tps

OMP:

omp install @oipsanthony/pi-tps

使用

每个 Prompt 完成后,扩展会显示一行摘要,包括输出 token、active TPS、effective TPS、TTFT、耗时和请求数。

查看当前 active branch 中所有已完成 Prompt 的汇总:

/tps

统计数据会保存在 session 中。切换 session tree 分支后,汇总也会切换到对应 branch。

指标

| 指标 | 含义 | |------|------| | active TPS | 模型实际生成期间的 token 速度,扣除检测到的 streaming stall | | effective TPS | 输出 token 除以完整 Prompt 处理时间 | | TTFT | Provider request 开始到第一个 content delta 的时间 | | stall | content stream update 之间至少 500 ms 的停顿 | | requests | 一个 Prompt 内完成的 Provider request 数量 |

当 stream 事件不足或测量结果不可靠时,active TPS 会显示 n/a

数据

扩展会将 token usage、timing、Provider、模型、HTTP status 和 stop reason 写入当前 session。失败请求可能包含 Pi 提供的 error message。数据不会发送到外部服务。

Attribution

本 package 包含基于 monotykamary/pi-tpsbadlogic/pi-mono 修改的代码。版权与许可证信息见 NOTICELICENSE