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

v0.1.6

Published

A full-featured web UI for Pi coding agent

Readme

Pi-Deck

A web interface for Pi, the terminal coding agent. This is a personal project I built for my own workflow — it lets me use Pi from a browser instead of the terminal, with multi-workspace support so I can manage several projects at once.

Note: This is personal tooling, not a general-purpose product. It works for my setup and I make no guarantees about stability, compatibility, or support. Feel free to fork or take ideas from it.

Features

  • Multi-workspace tabs — open multiple project directories side by side
  • Real-time streaming — chat with Pi via WebSocket, see responses as they arrive
  • Tool visualization — watch tool calls execute with live output
  • Thinking blocks — collapsible display for reasoning model internals
  • Session management — switch between sessions, pick models per workspace
  • Image support — paste or drag images into prompts
  • Persistent state — open workspaces, theme, and drafts sync across devices via SQLite
  • Directory allowlist — control which directories are accessible from the UI

Stack

  • Frontend: React 19, Vite, TailwindCSS
  • Backend: Express, WebSocket, Pi SDK
  • Storage: SQLite for UI state

Install from npm

npm install -g pi-deck
pi-deck

Or run without installing:

npx pi-deck

Requires Node.js 20+ and an API key configured (e.g. ANTHROPIC_API_KEY).

Open http://localhost:9741 in your browser.

CLI options

pi-deck                # start the server on port 9741
pi-deck --port 8080    # use a custom port
pi-deck --build        # rebuild before starting (for local dev)
pi-deck --help         # show all options

Development setup

Clone the repo and install dependencies:

git clone https://github.com/user/pi-deck.git
cd pi-deck
npm install

Dev mode (hot-reload)

npm run dev       # frontend on :9740, backend on :9741

Production mode (no hot-reload)

npm run build     # build everything
npm start         # start the server on :9741

Local CLI

To use the pi-deck command from your local checkout:

npm run build
npm link          # creates a global 'pi-deck' symlink
pi-deck           # works from any directory

To remove: npm unlink -g pi-deck

Publishing to npm

npm run publish:npm patch      # 0.1.0 → 0.1.1
npm run publish:npm minor      # 0.1.0 → 0.2.0
npm run publish:npm major      # 0.1.0 → 1.0.0
npm run publish:npm patch -- --dry-run   # preview without publishing

The script will: check for a clean working tree on main, bump the version in all package.json files, build, run tests, publish to npm, commit, tag, and push.

The published package includes a bundled server (dist/server.js) and the pre-built client SPA (packages/client/dist/). Workspace dependencies are inlined by esbuild; only runtime dependencies (express, better-sqlite3, etc.) are installed by npm.

Job Management

Pi-deck integrates with Pi's job management system. Jobs are markdown files with YAML frontmatter that track work through phases (backlog → planning → ready → executing → review → complete).

Configurable Job Locations

By default, jobs are stored in two locations:

  • ~/.pi/agent/jobs/<workspace-name>/ (primary)
  • <workspace>/.pi/jobs/ (local)

You can configure custom job directories by creating a .pi/jobs.json file in your workspace root:

{
  "locations": [
    "~/.pi/agent/jobs/pi-deck",
    ".pi/jobs",
    "./custom-jobs-folder",
    "/absolute/path/to/jobs"
  ],
  "defaultLocation": "~/.pi/agent/jobs/pi-deck"
}

Configuration options:

  • locations (required): Array of directory paths to scan for jobs. Supports:
    • Relative paths (resolved from workspace root): "./jobs", ".pi/jobs"
    • Absolute paths: "/Users/you/projects/jobs"
    • Home directory expansion: "~/.pi/agent/jobs"
  • defaultLocation (optional): Where new jobs are created. If not specified, uses the first location in locations.

The configuration file is optional — without it, the default two-location behavior is preserved for backward compatibility.

See .pi/jobs.json.example for a template.

Configuration

Create a config file at ~/.config/pi-deck/config.json:

{
  "port": 9741,
  "host": "0.0.0.0",
  "allowedDirectories": ["~/projects", "~/code"]
}

Or use environment variables: PORT, HOST, PI_ALLOWED_DIRS (colon-separated).

Running as a service

I run this on a Mac mini with Tailscale for always-on access from any device.

npm run service:install    # install as launchd service (starts on login)
npm run service:uninstall  # remove it

Logs go to ~/Library/Logs/pi-deck/.

License

MIT