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-tau-mux-server

v1.0.8

Published

Standalone Tau server - aggregates multiple pi coding agent instances into one web UI with Tailscale support

Readme

Pi Tau Mux Server

Standalone server that aggregates multiple pi coding agent instances into one unified web UI.

Architecture

┌─────────────┐                    ┌──────────────────────┐                    ┌─────────────┐
│  Pi TUI     │                    │  pi-tau-mux-server   │                    │  Browser    │
│  (terminal) │    WebSocket /pi    │  (standalone daemon) │    WebSocket /ws   │  (Tau UI)  │
│             │◄───────────────────►│                      │◄──────────────────►│             │
└─────────────┘                    │  Aggregates all      │                    └─────────────┘
                                   │  Pi instances        │
┌─────────────┐                    │                      │                    ┌─────────────┐
│  Pi TUI     │                    │  Serves web UI       │                    │  Phone      │
│  (another)  │◄───────────────────►│  Scans sessions      │◄──────────────────►│  (QR scan)  │
└─────────────┘                    └──────────────────────┘                    └─────────────┘

This server = standalone daemon (web UI, session browser, Tailscale support)
pi-tau-mux = Pi extension (lightweight client that connects here)

Features

  • Session Browser — View all Pi sessions across projects with active/stale/ended status
  • Live Mirror — Connect multiple Pi instances, stream messages in real-time
  • Tailscale Support — Auto-detects Tailscale IP and MagicDNS for remote access
  • QR Codes — Scan from phone/tablet to access remotely
  • Status Tracking — Active (< 3 days), stale (< 30 days), ended detection
  • Clean Names — Shows basename-paneId instead of encoded paths

Install

npm install -g pi-tau-mux-server

Or run without installing:

npx pi-tau-mux-server

Usage

Start the server:

pi-tau-mux-server

With custom port:

TAU_PORT=3001 pi-tau-mux-server

Open the URL shown in the output (e.g., http://localhost:3001).

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | TAU_PORT | 3001 | Server port |

API Endpoints

| Endpoint | Method | Description | |----------|--------|-------------| | /api/health | GET | Server health + Tailscale info | | /api/sessions | GET | List all sessions grouped by project | | /api/sessions/:dir/:file | GET | Load session file contents (JSONL) | | /api/sessions/switch | POST | No-op (acknowledges session switch) | | /api/qr | GET | QR code page for mobile access |

WebSocket Endpoints

| Path | Description | |------|-------------| | /ws | Browser clients (web UI) | | /pi | Pi client connections (pi-tau-mux extension) |

Tailscale

If Tailscale is running, the server auto-detects it:

  1. Scans network interfaces for 100.x.x.x IPs
  2. Falls back to tailscale status --json CLI if available (for MagicDNS hostname)
  3. Uses Tailscale IP/hostname for QR codes

This lets you scan the QR code from any device on your tailnet — no port forwarding needed.

Session Status

| Status | Description | |--------|-------------| | active | Modified within last 3 days | | stale | Modified within last 30 days | | ended | Has session_end marker or older than 30 days |

How It Works

  1. Server starts — HTTP server on configured port, WebSocket endpoints ready
  2. Pi instances connect — The pi-tau-mux extension registers each Pi instance
  3. Events stream — Messages, tool calls, thinking blocks forwarded in real-time
  4. Sessions scanned — Server reads ~/.pi/agent/sessions for all historical sessions
  5. Browser connects — Web UI shows live sessions + session browser

Related

Why the Split?

The original Tau ran an HTTP server inside each Pi process. This mux architecture:

  • One server for all Pi instances — no port conflicts
  • One port to expose via Tailscale — easy remote access
  • Session aggregation — see all sessions from one UI
  • Lower overhead — server runs once, not per Pi instance

License

MIT