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-extensions-tool-display

v1.1.1

Published

Pi tool display host and shared result-rendering protocol for extensions

Readme

pi-extensions-tool-display

pi-extensions-tool-display 提供 Pi 工具展示宿主,以及扩展共享的工具结果展示协议和组件工具包。

它提供:

  • 结果渲染 middleware 的注册、注销和状态判断;
  • Pi 展示宿主尚未加载时的 pending 注册队列;
  • 安全识别组件,以及把审计面板追加到原始工具结果后的通用组件组合。

它同时是一个独立的 Pi 扩展。可以把这个包直接加入 Pi 的 package 列表加载工具展示宿主;pi-distillpi-tool-supervisor 的包清单也会声明这个依赖的扩展入口,因此安装功能包时只会加载一个公共宿主,不需要额外安装第二份宿主包。

设计边界

这个包负责实际工具展示、展示协议和通用组件组合。具体业务的审计数据提取、文案、状态和布局仍由调用方维护,避免把不同扩展耦合在一起。

内建工具覆盖只替换 Pi 当前已经激活的工具;registerToolOverrides 不会启用原本未激活的内建工具。

上游引用

本包的展示集成设计用于兼容 MIT 许可的 MasuRii/pi-tool-display,这是 Pi 生态中原始的完整工具展示项目。感谢 MasuRii 的工作。

宿主实现基于 MIT 许可的上游项目,并迁移到本包中统一维护,消费者不再需要额外安装第二个宿主包。

安装

如果只需要工具展示宿主,可以直接安装:

pi install npm:pi-extensions-tool-display

安装 pi-distillpi-tool-supervisor 时,它们的包清单会同时加载这个宿主扩展入口。

开发

npm test
npm run typecheck

许可证

MIT