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

@yuanwentao/pi-toolbox

v0.2.0

Published

A toolbox of small quality-of-life extensions for the pi coding agent.

Downloads

208

Readme

pi-toolbox

A toolbox of small quality-of-life extensions for the pi coding agent.

Features

Copy all editor text to clipboard

Press the hotkey (default Alt+C) to copy the entire contents of the input editor to the system clipboard — no mouse selection needed.

pi's built-in Ctrl+C clears the editor and Ctrl+X copies the last assistant message, but there was no single-key way to copy what you are currently typing. This extension fills that gap.

Installation

Published on npm as @yuanwentao/pi-toolbox. Install it with pi:

pi install npm:@yuanwentao/pi-toolbox

This adds it to ~/.pi/agent/settings.json so it loads in every session.

Try without installing — load it just for the current run:

pi -e npm:@yuanwentao/pi-toolbox

From git (tracks a branch, no npm publish needed):

pi install git:github.com/15wtyuan/pi-toolbox

From a local checkout (for development):

pi -e ./src/index.ts

After editing settings.json by hand, run /reload in pi to pick up the change.

Configuration

The hotkey is remapped in pi's standard ~/.pi/agent/keybindings.json, using the keybinding id pi-toolbox.copyEditor. A single string or an array of strings (to bind multiple keys) is accepted:

{
  "pi-toolbox.copyEditor": "ctrl+shift+c"
}

or, to bind several keys at once:

{
  "pi-toolbox.copyEditor": ["alt+c", "ctrl+shift+c"]
}

Run /reload in pi after editing.

Why keybindings.json? Pi's own shortcuts live there, so it's the natural place. Note that pi's registerShortcut() binds a concrete key sequence (like alt+c), not a keybinding id, and there is no extension API to register a custom id into pi's native keybinding table. So this extension reads your keybindings.json and binds the key you configured there — the id is ours, the file is pi's. Like pi's built-in keybindings, only the global ~/.pi/agent/keybindings.json is read (not a project-local one).

Key id format

Keys use the modifier+key format, e.g. alt+c, ctrl+shift+c, ctrl+alt+k. See pi's keybindings docs for the full grammar. Avoid reusing keys that pi already binds (e.g. ctrl+c, ctrl+x, ctrl+d). The default alt+c is free — pi binds other alt+ combos but not alt+c.

Development

npm install        # install type dependencies
npm run typecheck  # tsc --noEmit

TypeScript is loaded directly by pi via jiti, so there is no build step — just edit src/index.ts and /reload.