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-resume-remind

v0.1.1

Published

Pi CLI extension that reminds users how to resume the current session when quitting

Downloads

273

Readme

pi-resume-remind

npm version license

A pi extension that reminds users how to resume the current session when quitting.

When a user types exit, quit, or closes a pi session, this extension displays the exact command to resume that session later — no fumbling through session lists.

Features

  • Session resume reminders — displays the resume command on quit so you never lose a session
  • Idle detection awareness — caches session state at startup for reliable quit-time output
  • Context recovery — UUID-based, path-based, and ephemeral session fallback handling
  • Session handoff/resume-remind command shows the resume snippet at any time mid-session
  • Zero-config — works out of the box, no configuration required
  • Non-blocking — hooks never block shutdown; exceptions are caught and silently handled

Installation

For Humans

pi install npm:pi-resume-remind

For AI Agents

Add to ~/.pi/agent/settings.json:

{
  "packages": ["npm:pi-resume-remind"]
}

Agent prompt reference: https://github.com/buihongduc132/pi-resume-remind/blob/main/README.md

For pi git-sourced

Add to ~/.pi/agent/settings.json:

{
  "packages": ["https://github.com/buihongduc132/pi-resume-remind"]
}

Usage

The extension hooks into pi's session lifecycle automatically:

  1. On session start — captures the session file path and name
  2. On quit — displays:
    To resume session my-project-session
    pi --session 019df945-636f-74ad-a36d-aea65e3055b2
  3. /resume-remind command — shows the resume command for the current session at any time

Configuration

No configuration required. The extension works automatically on session end.

To disable, add to ~/.pi/config.toml:

[pi-resume-remind]
enabled = false

Architecture

src/
├── index.ts          # Extension entry point, hook registration
├── resume.ts         # Session UUID extraction, resume command formatting
└── commands.ts       # /resume-remind slash command

Session state is cached at session_start and read (never re-fetched) at session_shutdown to avoid blocking on stale or destroyed context.

Development

npm install
npm run check         # typecheck + test
npm run test          # run tests with coverage
npm pack --dry-run    # verify publish contents

License

MIT © buihongduc132