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

panes-cli

v0.2.6

Published

Tile multiple commands into iTerm2 split panes

Downloads

483

Readme

panes

Tile multiple commands into iTerm2 split panes. Opens a new tab and runs each command in its own pane, arranged top to bottom.

Using Claude Code? This repo ships a use-panes-cli skill that teaches Claude Code how to wire panes-cli into a project (pinned devDependency, .panes/ layout, dir resolution rules, wait gates). Drop it into your .claude/skills/ and ask Claude to set up panes.

Install

The npm package is panes-cli; the binary it installs is panes.

Node.js projects (recommended)

Pin panes-cli as a devDependency so every contributor and CI run uses the same version, then invoke it via an npm script:

npm install --save-dev panes-cli@<exact-version>
{
  "scripts": {
    "dev": "panes -c .panes/dev.yaml"
  },
  "devDependencies": {
    "panes-cli": "0.2.5"
  }
}

Pin the exact version (no ^ / ~) — panes drives iTerm2 via AppleScript, and small changes to pane arrangement or wait-gate semantics can subtly shift a working dev setup.

Global (ad-hoc or non-Node projects)

npm install -g panes-cli

From source

git clone https://github.com/koyeo/panes.git
cd panes
npm install
npm install -g .

Usage

Basic

-e / --exec accepts a plain command string (repeatable):

panes -e "npm run dev" -e "npm run test"

For wait conditions (sleep, waitPort, waitFile), use a YAML config file (see below).

Config file (-c / --config)

Load commands from a YAML file. Each entry is either a plain string or a mapping:

dir: .
commands:
  - htop
  - exec: npm run dev
  - exec: npm test
    waitPort: 3000

Mapping fields:

  • exec (required): command to execute
  • sleep (optional): delay N seconds before executing
  • waitPort (optional): wait for a TCP port on localhost to become reachable
  • waitFile (optional): wait for a file to appear before executing

Wait conditions are evaluated by the panes process itself — they never inject sleep/nc/loop snippets into the user's shell. The pane's shell only sees the clean exec string once the gates pass.

Multiple wait conditions can be combined. Order: sleep → waitPort → waitFile → exec

dir is optional; relative paths resolve from the config file's location.

# Load from file
panes -c panes.yaml

# File + extra commands (file commands first, -e appended)
panes -c panes.yaml -e "htop"

Wait conditions example

commands:
  - exec: npm run dev
  - exec: npm test
    waitPort: 3000        # tests wait for server port
  - exec: npm start
    waitFile: dist/index.js  # wait for build artifact
  - exec: npm run smoke
    sleep: 5              # delay 5 seconds

Project layout: keep configs under .panes/

For projects that use panes regularly, colocate per-workflow YAML files under a top-level .panes/ directory:

your-project/
├── .panes/
│   ├── dev.yaml        # full dev stack
│   ├── e2e.yaml        # services needed for e2e tests
│   └── debug.yaml      # extra inspectors (htop, log tail, …)
├── package.json
└── …

Commit shared recipes; leave a .panes/local.yaml slot (gitignored) for personal tweaks.

Working directory (-d / dir)

dir controls where each pane is launched. Two rules cause every surprise people hit:

  1. A relative dir resolves against the YAML file's directory, NOT the current working directory.
  2. Resolution priority: CLI -d > YAML dir > current working directory.

Because YAML files live under .panes/, dir: . points at .panes/, not the project root. Use dir: .. instead:

# .panes/dev.yaml — every pane launches at the project root
dir: ..
commands:
  - exec: npm run server
  - exec: npm run worker
    waitPort: 3000

When using -c, do not also pass -d. The CLI -d wins and is itself resolved relative to the YAML file's directory, so panes -c .panes/dev.yaml -d packages/web becomes <repo>/.panes/packages/web — almost always wrong. Pick one source of truth: put dir in the YAML, or use -d only with -e (no -c).

There is no per-pane dir. If panes need different directories, prefix the command:

dir: ..
commands:
  - exec: cd packages/api && npm run dev
  - exec: cd packages/web && npm run dev
    waitPort: 4000

For ad-hoc one-off runs without a config file:

panes -d /path/to/project -e "npm run dev" -e "npm test"

Requirements

License

MIT