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-app

v0.8.13

Published

Web UI for the pi coding agent

Readme

pi-app

Web UI for the Pi AI coding agent.

Quick Navigation

What is pi-app?

Pi ecosystem has three components:

| Component | Role | |-----------|------| | pi | AI agent engine, CLI, multi-LLM support, tool invocation, session management | | pi-app (this repo) | Web frontend, macOS application, optional remote access | | Your workflow | Use via CLI (pi), browser, or desktop app — all connected to the same agent |

pi-app is the web UI and macOS shell for one local pi agent installation. When you run pi-app, it reads sessions from ~/.pi/agent/ (same location as pi CLI) and displays them in the browser. Both tools operate on the same data.

Why pi-app?

Session Management — Browse all conversations in one place, automatically grouped by working directory. Visualize, rename, and organize sessions.

Real-time Interaction — Stream output, switch models mid-chat, fork conversations into branches, and manage tools without restarting.

Multi-platform — Web (all browsers), macOS app, optional remote access. Local-first data storage with optional cloud sync.

Getting Started

I want to use pi-app

No installation needed:

npx pi-app@latest

Then open http://localhost:30141.

Or install globally:

npm install -g pi-app
pi-app

Configuration:

pi-app --port 8080               # Custom port
pi-app --hostname 127.0.0.1      # Localhost only
pi-app --remote                  # Open to network
PORT=8080 pi-app                 # Environment variable

First time? See docs/GETTING_STARTED.md for detailed setup, troubleshooting, and configuration options.


Already a pi CLI user?

pi-app and pi CLI share the same sessions and models. When you start pi-app, all your existing CLI sessions appear in the browser UI.

Setup:

  1. Ensure both pi and pi-app are installed
  2. Run pi-app to start the web server
  3. Open http://localhost:30141
  4. Your CLI sessions appear in the left sidebar

From the web UI, you can:

  • Browse and organize sessions from different projects
  • Visualize conversation branches
  • Switch models mid-chat
  • Edit tool permissions
  • Create session notes and summaries

Learn more: docs/INTEGRATION_WITH_CLI.md


Want to contribute?

pi-app is a Next.js + TypeScript project. We welcome contributions:

Setup for development:

git clone https://github.com/asiachrispy/pi-app.git
cd pi-app
npm install
npm run dev          # http://localhost:30142 (dev server + hot reload)
npm run build && npm start  # http://localhost:30141 (production)

Key principles:

  • Port 30141: daily use (production build)
  • Port 30142: development (hot reload, isolated data)
  • Run tests before submitting PRs: npm run test:run

Project structure: docs/DEVELOPMENT.md
Architecture overview: docs/DEVELOPMENT.md#architecture-overview
Contributing guide: CONTRIBUTING.md


Features

| Feature | What it does | |---------|--------------| | Session Browser | Browse all sessions grouped by working directory | | Real-time Chat | Stream output, mid-chat model switching, message editing | | Session Forking | Branch conversations at any point without losing original | | Branch Navigator | Visualize and switch between branches | | File Browser | Quick access to files in your working directory | | Tool Panel | Enable/disable agent tools per session | | Session Summaries | Auto or manual summaries for long conversations | | Model Switching | Change LLM without restarting | | Remote Access | Optional access from other devices (pairing link + token auth) |

Detailed feature guide: docs/FEATURES.md


Security & Privacy

Local-first: By default, pi-app binds to localhost:30141. All data stays on your machine.

Remote access: Opt-in with --remote flag. Uses token-based authentication (no passwords). See docs/remote-access.md.

Data directory: Sessions stored in ~/.pi/agent/sessions/ by default. Change with PI_CODING_AGENT_DIR environment variable.


Useful Links


License

MIT