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

@0xkahi/pi-arsenal

v0.2.5

Published

pi arsenal of useful tools

Readme

pi-arsenal

A multi-tool Pi extension with opt-in, configurable tools.

Installation

Add @0xkahi/pi-arsenal to your Pi package dependencies and ensure it is listed in your Pi configuration so the extension loads at session start.

pi install npm:@0xkahi/pi-arsenal

Configuration

pi-arsenal reads layered JSON configuration from the following locations:

  1. Defaults built into the extension.
  2. Global configuration at <agent-dir>/extensions/pi-arsenal/config.json.
  3. Trusted project configuration at <project-root>/.pi/extensions/pi-arsenal/config.json, applied only when the project is trusted.

Feature objects are shallow-merged, so a project override only replaces the fields it specifies.

JSON Schema

The generated schema at assets/config.schema.json documents all supported configuration fields and can be referenced from your configuration file:

{
  "$schema": "https://raw.githubusercontent.com/0xKahi/pi-arsenal/main/assets/config.schema.json"
}

p2p_council — Peer-to-Peer Agent Communication

Connect multiple Pi agent sessions into a local council for real-time collaboration over WebSocket.

Requirements

  • Pi must be running in TUI mode for the modal and status widget (tools work in any mode).

Configuration

{
  "$schema": "https://raw.githubusercontent.com/0xKahi/pi-arsenal/main/assets/config.schema.json",
  "p2p_council": {
    "enabled": true,
    "layout": "inline"
  }
}
  • enabled (boolean, default false) — whether p2p_council tools and the /p2p-council command are active.
  • layout ("inline" | "overlay", default "inline") — modal presentation style.

Agent Identity

Create <cwd>/.arsenal/p2p-role.yml to set your agent's name and description:

name: backend-agent
description: Handles API and database work

Falls back to basename(cwd) when absent.

Command

| Command | Description | |---------|-------------| | /p2p-council | Open the council modal to browse, create, join, or disconnect from councils |

The extension also listens for a pi.vimKeys.event:pi-arsenal.p2p_council event, which external vim-key integrations can emit for quick access.

Tools

| Tool | Description | |------|-------------| | p2p_ls | List all connected council members with status, description, and cwd | | p2p_send(to, message, triggerTurn?) | Fire-and-forget message to another agent. triggerTurn: true queues delivery until idle; false (default) delivers as a steer | | p2p_ask(to, prompt) | Synchronous RPC — sends a prompt to a remote agent and waits for its assistant reply |

Tools are only available when enabled: true and connected to a council. Connection is managed through the TUI modal.

⚠️ Security note: The council WebSocket server binds to 127.0.0.1 with no authentication. Any local process can connect, peek, or send messages.

📖 Full p2p_council documentation → — architecture, protocol, message delivery, host promotion, session lifecycle, and more.


tmux_popup tool

Open an existing file in a non-blocking tmux popup editor.

Requirements

  • Pi must be running inside a tmux session ($TMUX must be set).
  • The tmux executable must be available on $PATH.

Configuration

{
  "$schema": "https://raw.githubusercontent.com/0xKahi/pi-arsenal/main/assets/config.schema.json",
  "tmux_popup": {
    "enabled": true,
    "width": 50,
    "height": 50,
    "fileCommand": "nvim"
  }
}
  • enabled (boolean, default false) — whether the tool is registered and visible to the model.
  • width (number, 10100, default 50) — popup width as a percentage.
  • height (number, 10100, default 50) — popup height as a percentage.
  • fileCommand (string, default nvim) — command prefix used to open the file. May include arguments, e.g. "code --wait".

Path contract

The tool accepts a single filePath argument:

  • Must resolve to an absolute path.
  • Optional leading @ is stripped (@/path/to/file/path/to/file).
  • Current-user home paths (~/...) are expanded.
  • Relative paths and ~other-user paths are rejected.
  • The path must exist and resolve to a file (not a directory).

Trust boundary

The fileCommand prefix is loaded from your trusted global or trusted project configuration and is executed as a shell command prefix. Only enable tmux_popup with commands you trust.

Behavior

The tool spawns tmux display-popup -E as a detached process and returns as soon as tmux starts. It does not wait for the editor to exit, so the popup remains open while the agent continues.