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

@tmustier/pi-files-widget

v0.1.12

Published

In-terminal file browser and viewer for Pi.

Readme

files-widget

In-terminal file browser and diff viewer widget for Pi. Navigate files, view diffs, select code, and send comments to the agent without leaving the terminal and without interrupting your agent.

Install

Quick install (Pi package manager):

pi install npm:@tmustier/pi-files-widget

Required deps (needed for /files):

# macOS (Homebrew)
brew install bat git-delta glow

# Ubuntu/Debian
sudo apt-get install -y bat git-delta glow
pi install git:github.com/tmustier/pi-extensions

Then add to ~/.pi/agent/settings.json:

{
  "packages": [
    {
      "source": "git:github.com/tmustier/pi-extensions",
      "extensions": ["files-widget/index.ts"]
    }
  ]
}

Local clone:

Add to your Pi extensions list:

{
  "extensions": [
    "~/pi-extensions/files-widget"
  ]
}

If you prefer symlinking into ~/.pi/agent/extensions:

ln -sfn ~/pi-extensions/files-widget ~/.pi/agent/extensions/files-widget

Then reference it in your settings:

{
  "extensions": [
    "~/.pi/agent/extensions/files-widget"
  ]
}

Dependencies (required)

  • bat: syntax highlighting
  • delta: formatted diffs
  • glow: markdown rendering

The /files browser requires these tools and will refuse to open until they are installed.

Commands

  • /files - open the file browser
  • /review - open tuicr review flow
  • /diff - open critique (bunx critique)

Review/Diff Dependencies

brew install agavra/tap/tuicr
brew install oven-sh/bun/bun
  • tuicr is required for /review
  • bun is required for /diff

If missing, /review or /diff will show a clear install prompt.

Browser Keybindings

  • j/k or ↑/↓: move
  • Enter: open file / expand folder
  • h/l or ←/→: collapse/expand folder
  • PgUp/PgDn: page up/down
  • c: toggle changed-only view
  • ] / [: next/prev changed file
  • /: search (type to filter, Esc to exit)
  • + / -: increase/decrease browser height
  • q: close

Viewer Keybindings

  • j/k or ↑/↓: scroll
  • PgUp/PgDn: page up/down
  • g/G: top/bottom
  • d: toggle diff (tracked files only)
  • /: search (type to search)
  • n / N: next/prev match
  • v: select mode (line selection)
  • c: comment on selected lines (inline prompt)
  • ] / [: next/prev changed file
  • + / -: increase/decrease viewer height
  • q: back to browser

Notes

  • Untracked files show as [UNTRACKED] and open in normal view.
  • Folder LOCs are shown only when the folder is collapsed (expanded folders would duplicate counts).
  • Line counts load asynchronously; the header shows activity while counts are computed.
  • Large non-git folders load progressively and may show [partial] while loading in safe mode.
  • Git status refreshes every 3 seconds while /files is open.