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

pi-live-terminal

v0.2.3

Published

Pi extension that runs commands in tmux and displays a live terminal widget.

Readme

pi-live-terminal

Pi extension that adds live_terminal_run and live_terminal_close tools plus a live tmux widget inside Pi.

https://github.com/user-attachments/assets/b4ec6d34-fd8a-4254-bf74-e216779649f6

What it does

  • Starts long-running or interactive commands in detached tmux sessions.
  • Can attach to an existing tmux session by calling live_terminal_run without a command and passing session_name or target.
  • Can wait for terminal output or lifecycle events with live_terminal_run({ wait_for: ... }).
  • Closes the live pane and kills the attached tmux session with live_terminal_close.
  • Shows live terminal output in a Pi widget above the editor.
  • Streams pane output via tmux pipe-pane for event-driven updates (no capture polling loop for output).
  • Reports completed processes to the human and agent with the exit status code.
  • Reattaches the widget when a Pi session restarts and the tmux session still exists.
  • Adds /live-terminal:run, /live-terminal:attach, /live-terminal:focus, and /live-terminal:close commands.
  • Adds shortcuts:
    • ctrl+shift+f — focus the tmux session in a full-screen interactive modal; press it again to close the modal
    • ctrl+shift+x — detach and kill the tmux session
    • ctrl+shift+v — detach without killing the tmux session; after completion, close the widget

Waiting from live_terminal_run

live_terminal_run returns immediately by default. Pass wait_for to block the tool call until a condition matches or times out:

live_terminal_run({
  command: "npm run dev",
  wait_for: { regex: "Local:|ready", timeout_ms: 60000 }
})

wait_for.regex is a JavaScript regular expression source matched against captured tmux pane output. It uses multiline matching by default, and ignore_case: true adds case-insensitive matching.

Supported events:

  • exit — waits until a command started by live_terminal_run records its exit status.
  • target_closed — waits until the attached tmux pane/session no longer exists.

Defaults: timeout_ms: 30000, poll_ms: 500.

Install

pi install npm:pi-live-terminal

Restart Pi after installing or updating the extension.

Requirements

  • tmux
  • Pi coding agent extension runtime