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

@m64/pi-screenshot-tools

v0.1.9

Published

Screenshot skill and inline screenshot extension for pi

Downloads

207

Readme

pi-screenshot-tools

A pi package that bundles both:

  • a cross-desktop screenshot skill
  • an inline screenshot display extension

This package gives pi a stable screenshot backend plus user-facing commands/tools for displaying captures inline in supported terminals such as Kitty.

pi screenshot tools

Included resources

Skill: screenshot-tools

Provides:

  • full-screen capture
  • active-window capture
  • visible-window-by-name capture
  • visible-window-by-id capture
  • output/monitor capture
  • workspace capture
  • interactive region capture
  • window/output/workspace listing

The backend lives in:

  • skills/screenshot-tools/capture.sh
  • skills/screenshot-tools/lib/*

Extension: screenshot-inline

Provides:

  • tool: capture_screenshot
  • command: /screenshot
  • command: /screenshot-icat
  • command: /screenshot-debug

Terminal behavior

Outside tmux

/screenshot can use pi's TUI image rendering path.

Inside tmux

Pi's TUI image rendering may not display reliably even when Kitty graphics passthrough works. For that case, this package includes:

  • /screenshot-icat

which displays the captured image through:

  • kitten icat --stdin=no

This is the recommended fallback inside tmux.

Installation

From a local path

pi install /absolute/path/to/pi-screenshot-tools

From git

pi install git:github.com/M64GitHub/pi-screenshot-tools

From npm

pi install npm:@m64/pi-screenshot-tools

Then reload pi:

/reload

Usage examples

Natural language

  • Take a screenshot of the active window
  • Take a screenshot of the current workspace
  • Take a screenshot of the kitty window
  • Capture window id 229
  • List windows I can capture

On Sway and Hyprland, named/id window capture is screen-region based and may briefly switch to the target workspace to make an off-workspace window visible before capturing and returning.

Slash commands

/screenshot
/screenshot active-window
/screenshot window kitty
/screenshot window-id 229
/screenshot list-windows
/screenshot-icat active-window
/screenshot-debug message

Package layout

pi-screenshot-tools/
├── package.json
├── README.md
├── extensions/
│   └── screenshot-inline/
│       ├── index.ts
│       └── README.md
└── skills/
    └── screenshot-tools/
        ├── SKILL.md
        ├── README.md
        ├── capture.sh
        ├── lib/
        └── docs/

Development notes

The extension resolves the screenshot backend in this order:

  1. package-local skills/screenshot-tools/capture.sh
  2. fallback to ~/.pi/agent/skills/screenshot-tools/capture.sh

That makes the package usable both:

  • as a bundled pi package
  • and in your current local global-agent setup

License

MIT