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

@youweichen/pi-web-ui

v0.47.5

Published

Web chat interface for the pi coding agent, powered by the pi SDK (@earendil-works/pi-coding-agent) — one-command run, Docker/systemd/launchd deployable

Readme

pi-web-ui

Web chat interface for the pi coding agent SDK — chat in the browser, browse the file tree, attach files, built-in terminal (xterm.js + node-pty), model management, sound notifications, Chinese/English UI.

Fork of xing-shuyin/pi-web-ui with personal fixes (e.g. Kimi-style </antThinking> leaked-reasoning tags).

Requirements

  • Node.js >= 22.19.0
  • A configured pi agent (~/.pi/agent, e.g. via pi CLI) with at least one model provider

Install & run

npm i -g @youweichen/pi-web-ui
pi-web-ui                 # http://127.0.0.1:8787
pi-web-ui --port 9000 --cwd /path/to/project

or without installing:

npx @youweichen/pi-web-ui

Upgrade

npm i -g @youweichen/pi-web-ui@latest
pi-web-ui server restart   # if you installed the autostart service

Autostart on boot

pi-web-ui server install    # macOS → launchd, Linux → systemd, Windows → Task Scheduler
pi-web-ui server status     # start | stop | restart | uninstall also available

Desktop app (Electron)

There's also an Electron shell around the same server/UI — a native window with a tray icon instead of a browser tab.

Download: prebuilt installers (mac dmg/zip, Windows nsis/portable/zip, Linux AppImage/deb) are published to GitHub Releases whenever a v* tag is pushed. Unsigned, so macOS Gatekeeper will refuse the first launch — right-click the app and choose "Open" to bypass it once.

Or build it yourself from source:

npm install
npm run build              # build:web + build:server first
npm run dev:electron       # run the shell against the local build
npm run build:electron:mac # or :win / :linux — produces an installer under release/

The Electron window loads the same server as the CLI (server/index.ts), just spawned as a hidden child process instead of opening a browser tab. Desktop-app data lives in ~/.pi-web-desktop (separate from the CLI's ~/.pi-web, so the two don't fight over client-state.json if you run both — chat history itself is shared, it lives in ~/.pi/agent).

See docs/deployment.md for details.

Notes

  • Binds to loopback (127.0.0.1) by default; set PI_WEB_HOST to expose on LAN.
  • Optional shared-password auth: PI_WEB_TOKEN=secret pi-web-ui.
  • node-pty is a native module — on Windows you may need Visual Studio Build Tools if no prebuilt binary matches.

中文简介

pi 编码智能体的 Web 聊天界面:浏览器对话、文件树、附件、内置终端、模型管理、声音提醒、中英文切换。全局安装后一条命令启动,支持开机自启(launchd / systemd / Windows 计划任务)。

也有一个 Electron 桌面版壳子(原生窗口 + 托盘,不用开浏览器标签页)——打 v* tag 后 CI 会自动把 mac/win/linux 安装包发到 GitHub Releases,未签名,mac 首次打开需要右键「打开」跳过 Gatekeeper;也可以自己本地源码构建(npm run build:electron:mac/:win/:linux),见 docs/deployment.md

License

MIT