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

@k3_2o/pi-remote

v0.5.0

Published

A thin server runtime for Pi Coding Agent — WebSocket-first, HTTP as sugar. Turns pi --mode rpc into a network service.

Downloads

226

Readme

pi-remote

WebSocket-first server runtime for Pi Coding Agent. Start it once, talk to Pi from anywhere.

npm install -g @k3_2o/pi-remote
pi-remote start
curl -X POST http://localhost:8080/v1/chat -H "Content-Type: application/json" -d '{"message":"say hello"}'

pi-remote is a thin server that turns Pi's RPC mode into a network service. It handles process management, session multiplexing, and transport. Pi does the thinking. The pipe is dumb.


Features

  • WebSocket — the real protocol. Connection = session. All Pi commands available. Extension UI flows bidirectionally.
  • HTTP — sugar layer for curl, cron, webhooks. /v1/chat streams SSE.
  • Session management — one Pi process per session. Auto-cleanup. Pool with eviction. Idle reset policies.
  • Auth — optional API key middleware on both transports.
  • Daemon mode--detach for quick dev, systemd for production.
  • CLIstart, stop, status, health, sessions, logs, relay.
  • SDKs — JavaScript and Python clients. Import from npm or copy-paste.
  • Zero config — sensible defaults for everything. Config file optional.

Quick Start

npm install -g @k3_2o/pi-remote       # you also need Pi: npm install -g @earendil-works/pi-coding-agent
pi-remote start                # server on :8080
pi-remote health               # check it's alive
pi-remote sessions             # list sessions

Documentation

Documentation Index

| Document | Type | What's in it | |---|---|---| | Getting Started | Quick Start | Five-minute install + curl test — verify it works | | Your First Chat | Tutorial | Step-by-step from zero — install, connect, send your first message, learn the SDK | | Deploy to a VPS | Tutorial | Bare Ubuntu server to production pi-remote behind nginx with TLS, auto-start, and API key auth | | Build a Discord Bot | How-to | Connect pi-remote to a Discord bot — real example | | Triggers | How-to | Discord bots, cron jobs, webhooks — patterns for connecting anything | | Daemon Mode | How-to | Background, systemd, logs | | Docker | How-to | Run in a container | | Production Setup | How-to | TLS, rate limiting, log rotation | | SDK Reference | Reference | Every method and event — abstracted vs raw, examples | | CLI Reference | Reference | Every command with options | | Configuration | Reference | Every config option with defaults | | Protocol | Reference | WebSocket handshake, commands, events, extension UI | | Deployment Paths | Reference | VPS providers, tunnel alternatives, bare metal — comparison and trade-offs | | How It Works | Explanation | The pipe model — what we built vs what emerged from Pi | | Architecture | Explanation | Why WebSocket, process model, design decisions |


Contributing

See CONTRIBUTING.md for guidelines.

License

MIT