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

@runminton/pi-powershell-tool

v0.1.1

Published

Pi extension that provides a native PowerShell 7+ tool for Windows

Readme

@runminton/pi-powershell-tool

最小版 Pi PowerShell extension。

文件

  • index.ts — 注册一个 powershell 工具
  • package.json — 运行时依赖和 pi package 入口
  • docs/pi-tui-rendering-playbook.md — PI TUI 插件渲染排障与实现经验

功能

  • 仅使用 PowerShell 7+ 的 pwsh(会在结果里报告实际 PowerShell 版本)
  • 不 fallback 到 Windows PowerShell 5.1;找不到 pwsh 或版本低于 7 会明确失败
  • 支持 cwd
  • 支持 timeoutMs,超时会尝试终止进程树
  • 支持 pi abort signal(例如 Esc 取消)
  • 使用 -EncodedCommand 传递命令,并设置 UTF-8 输出编码
  • 超长命令自动落到临时 .ps1 执行,避免 Windows 命令行长度限制
  • 使用流式 UTF-8 解码,避免中文/emoji 跨 chunk 乱码
  • 输出保留尾部并截断;默认 stdout 最多返回 500 行或 20KB,stderr 最多 120 行或 8KB;截断时完整输出保存到临时文件
  • PI TUI 中长命令和输出支持使用 Ctrl+O 展开/收起
  • 长命令运行时会推送 Running PowerShell... Ns 进度

Install

pi install npm:@runminton/pi-powershell-tool

Restart Pi or start a new session after installation. The extension adds a powershell tool for Windows PowerShell 7+ sessions.

临时测试

pi -e ./index.ts

单元测试

npm install
npm test

长期使用

把这个目录接到 pi 的 extensions/package 配置里,或者复制到:

  • ~/.pi/agent/extensions/
  • .pi/extensions/