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

@kozilla/pane

v0.2.9

Published

Tile multiple commands into iTerm2 split panes

Readme

pane

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-pane skill that teaches Claude Code how to wire @kozilla/pane into a project (pinned devDependency, .pane/ layout, dir resolution rules, wait gates). Drop it into your .claude/skills/ and ask Claude to set up pane.

Install

The npm package is @kozilla/pane; the binary it installs is pane.

Node.js projects (recommended)

Pin @kozilla/pane as a devDependency so every contributor and CI run uses the same version, then invoke it via an npm script:

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

Pin the exact version (no ^ / ~) — pane 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 @kozilla/pane

From source

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

Usage

pane -c .pane/dev.yaml

Config file (-c / --config)

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

commands:
  - htop
  - exec: npm run dev
    dir: ..
  - exec: npm test
    dir: ../packages/web
    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
  • dir (optional): working directory for this pane; relative paths resolve from the config file's directory

Wait conditions are evaluated by the pane 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

There is no top-level dir — set it per command. Panes without dir use the cwd.

Every pane is driven through a fully synchronized sequence — each step waits for observed state, never timing: pane first waits until a shell process is attached to the pane's tty, then writes cd <dir>, then waits until the shell's working directory has actually changed (verified via ps/lsof), then evaluates the wait gates, and only then writes the exec command. The cd and the command are separate lines, but the command is never written before the cd was demonstrably consumed by the shell — so the two can never merge into one line, no matter how slowly the shell starts. If a pane is closed while pane is still waiting, it fails with a diagnostic instead of hanging.

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 .pane/

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

your-project/
├── .pane/
│   ├── 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 .pane/local.yaml slot (gitignored) for personal tweaks.

Working directory (dir)

Each command may set its own dir. Two rules cause every surprise people hit:

  1. A relative dir resolves against the YAML file's directory, NOT the current working directory.
  2. Panes without dir launch in the cwd pane was run from.

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

# .pane/dev.yaml
commands:
  - exec: npm run server
    dir: ..                    # project root
  - exec: npm run worker
    dir: ../packages/worker
    waitPort: 3000
  - exec: tail -f /var/log/app.log   # no dir → cwd

There is no top-level dir; a config that still has one fails to load with a clear error.

Requirements

License

MIT