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

@kkskcs/pi-open

v0.1.0

Published

Open files with default app or current directory in finder, terminal, or split pane

Readme

@kkskcs/pi-open

Open files with the default app, or open your current directory in finder, terminal, or a split pane — instantly from pi.

Installation

pi install npm:@kkskcs/pi-open

/open <path>

Opens a file or directory with the OS default application.

/open ./README.md
/open assets/
  • Files open in the associated default app
  • Directories open in the system file manager (Finder, Nautilus, Explorer)
  • Shows an error if the path does not exist

| Platform | Command | |----------|---------| | macOS | open | | Linux | xdg-open | | Windows | start |

Usage with pi-fff

When used with @ff-labs/pi-fff, you can use @-mention autocomplete to search and select files:

/open @src/index.ts
/open @package.json

The @ prefix is automatically stripped if the literal path is not found.

/open-cwd

Opens the current session working directory in another app.

/open-cwd

open-cwd

Runs as a command, so there's no AI response to wait for. No terminal-specific shortcuts to memorize — just pick an action, done. Works with Ghostty, WezTerm, iTerm2, kitty, tmux, and more — one unified interface regardless of which terminal you're in.

Features

  • Split pane — split the current terminal in a given direction
  • New terminal — open a new terminal window at cwd
  • Finder / File manager — reveal cwd in the system file manager
  • Fuzzy filter — type to narrow down actions
  • Unsupported actions are hidden from the list (no dead options)

Supported Terminals

macOS

| Terminal | Detection | Split | Directions | New Window | |----------------|--------------------------------|----------------------------|--------------------------|-----------------------------------| | Ghostty | $TERM_PROGRAM=ghostty | ✓ AppleScript | up / down / left / right | ✓ AppleScript | | WezTerm | $TERM_PROGRAM=WezTerm | ✓ wezterm cli split-pane | up / down / left / right | ✓ wezterm cli spawn | | tmux | $TMUX | ✓ tmux split-window | up / down / left / right | ✓ tmux new-window | | iTerm2 | $TERM_PROGRAM=iTerm.app | ✓ AppleScript | down / right | ✓ open -a iTerm | | kitty | $TERM_PROGRAM=kitty | ✓ kitty @ | down / right | ✓ kitty --directory | | Alacritty | $TERM_PROGRAM=alacritty | — | — | ✓ alacritty --working-directory | | Apple Terminal | $TERM_PROGRAM=Apple_Terminal | — | — | ✓ open -a Terminal | | Warp | $TERM_PROGRAM=WarpTerminal | — | — | ✓ open -a Warp |

Finder: open <cwd>

Linux

| Terminal | Detection | Split | Directions | New Window | |-----------|-------------------------|----------------------------|--------------------------|-----------------------------------| | WezTerm | $TERM_PROGRAM=WezTerm | ✓ wezterm cli split-pane | up / down / left / right | ✓ wezterm cli spawn | | tmux | $TMUX | ✓ tmux split-window | up / down / left / right | ✓ tmux new-window | | kitty | $TERM=xterm-kitty | ✓ kitty @ | down / right | ✓ kitty --directory | | Ghostty | $TERM_PROGRAM=ghostty | — | — | ✓ ghostty --working-directory | | Alacritty | $TERM=alacritty | — | — | ✓ alacritty --working-directory |

File manager: xdg-open <cwd>

Windows

| Terminal | Detection | Split | Directions | New Window | |------------------|---------------------------|----------------------------|--------------------------|-----------------------------------| | WezTerm | $TERM_PROGRAM=WezTerm | ✓ wezterm cli split-pane | up / down / left / right | ✓ wezterm cli spawn | | Windows Terminal | $WT_SESSION | ✓ wt sp | down / right | ✓ wt -w 0 -d | | Alacritty | $TERM_PROGRAM=alacritty | — | — | ✓ alacritty --working-directory |

Explorer: explorer <cwd>

Detection Priority

  1. $TMUX → tmux
  2. $WT_SESSION → Windows Terminal
  3. $TERM_PROGRAM → corresponding terminal
  4. $TERM → fallback (kitty, alacritty)

Development

cd packages/pi-open
pnpm install
pnpm run build