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

split-editor

v0.1.8

Published

Open pi prompt editing in a live tmux split editor without freezing the pi UI.

Readme

split-editor

Edit pi prompts in a live tmux split without blocking pi's TUI.

split-editor replaces pi's blocking Ctrl+G external-editor workflow. Press Ctrl+G in pi's prompt editor to open the current prompt in your editor (nvim by default) in a tmux split. When the editor exits, the edited text is read back into pi's prompt.

Pi stays visible and resize-aware in the original pane while the split is open. The prompt is locked during editing so it cannot be mutated in two places at once.

Demo

https://github.com/user-attachments/assets/47a81b03-8292-45b9-8c85-508719c5f585

Requirements

  • pi
  • tmux
  • nvim by default; set the editor option to use a different terminal editor (see Configuration)

Installation

From npm:

pi install npm:split-editor

From a local checkout:

pi install /path/to/split-editor

For development:

pi -e .

Usage

  1. Start pi inside tmux with this package loaded.
  2. Type a prompt.
  3. Press Ctrl+G.
  4. Edit in the tmux split.
  5. Save and quit the editor.
  6. The edited text replaces the pi prompt.

Pressing Ctrl+G again while the split editor is already open will not open a second editor.

Configuration

Configuration is read each time Ctrl+G opens the split editor, so file/env changes are picked up without reloading the extension.

Options:

| Option | Env var | Default | Description | | --------------- | ----------------------------- | ------- | ----------------------------------------------------------------- | | editor | SPLIT_EDITOR_EDITOR | nvim | Editor command to run in the tmux pane. | | size | SPLIT_EDITOR_SIZE | 50% | tmux split size passed to tmux split-window -l. | | direction | SPLIT_EDITOR_DIRECTION | h | h/horizontal for side-by-side, v/vertical for top/bottom. | | showIndicator | SPLIT_EDITOR_SHOW_INDICATOR | true | Show SPLIT EDITOR OPEN in the editor border while locked. |

Precedence, lowest to highest:

  1. Defaults
  2. Global config: ~/.pi/agent/extensions/split-editor.json
  3. Global pi settings: ~/.pi/agent/settings.json under splitEditor
  4. Project config: .pi/split-editor.json
  5. Project pi settings: .pi/settings.json under splitEditor
  6. Environment variables

Standalone config files use the options directly:

{
  "editor": "nvim",
  "size": "50%",
  "direction": "horizontal",
  "showIndicator": true
}

Pi settings.json uses a splitEditor object:

{
  "splitEditor": {
    "editor": "nvim",
    "size": "50%",
    "direction": "vertical",
    "showIndicator": false
  }
}

Environment example:

SPLIT_EDITOR_EDITOR="nvim" \
SPLIT_EDITOR_SIZE=50% \
SPLIT_EDITOR_DIRECTION=h \
SPLIT_EDITOR_SHOW_INDICATOR=false \
pi

SPLIT_EDITOR_SHOW_INDICATOR accepts 1, true, yes, on, 0, false, no, or off.

Notes and limitations

  • Requires tmux for live split behavior; falls back to pi's default external editor outside tmux.
  • The pi prompt editor ignores input while the split editor is open.
  • If the editor exits non-zero, the temp file is still read back into pi and a warning is shown.
  • Temporary files are removed on a best-effort basis after the editor closes.