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-scratch

v0.1.0

Published

Pi extension that opens an isolated /scratch session for side-questions, so quick asks don't pollute your main thread.

Readme

pi-scratch

A Pi extension that opens an isolated /scratch session for side-questions, so quick asks don't pollute your main thread.

A side-question — "what's the syntax for X?" or "is this lib Y or Z?" — shouldn't drag your main session off-topic. /scratch drops you into a brand-new session in its own timestamped folder; /resume brings you back.

Install

pi install npm:pi-scratch

Usage

# Each /scratch session lives in its own folder:
$ ls ~/.pi/scratch/
2026-06-23T19-02-44_7e8f9a0b/
2026-06-23T19-15-22_c3d4e5f6/
2026-06-23T19-32-11.612Z_a3f9b2c1/

# Hit a syntax question deep in a feature branch:
pi
> /scratch
you: how do I revoke a JWT before exp?
pi:  shortlist: blacklist, refresh-token rotation, short-lived tokens …
> /resume           # back to your real session, untouched

How it works

/scratch creates a new session at ~/.pi/scratch/<timestamp>_<id>/ and switches to it. If composer text is present, /scratch asks before discarding it.

Compared to

  • pi --no-session (built-in flag) — disables persistence for the whole run. /scratch is a per-command switch inside any session.
  • pi-ephemeral (npm) — toggles persistence on the current session file. /scratch always opens a brand-new isolated folder.
  • Claude Code /btw — a side-question that overlays onto your current session. /scratch opens a full session with its own folder, so the side-question can be revisited later.

Limitations

  • Scratch sessions are real files — old ones stay on disk until you rm -rf ~/.pi/scratch/*
  • No automatic naming or tagging (zero-config by design)

License

MIT