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

@0xkobold/pi-autoupdate

v0.1.0

Published

Automatically detect and install pi updates on startup

Readme

@0xkobold/pi-autoupdate

Automatically checks for pi updates on startup and offers to install them.

Features

  • Auto-check on startup: Checks npm for the latest version on each pi start
  • Smart reminders: Remembers if you dismissed an update and only nags you for new versions
  • Prompts before update: Asks for confirmation before running npm install
  • Persistent status widget: Shows update status below the editor at all times
  • Manual check: Use /check-update to check anytime
  • Dismiss update: Use /dismiss-update to skip the current version
  • Clear pending: Use /clear-update to remove saved state

Installation

pi install npm:@0xkobold/pi-autoupdate

Or add to your settings:

{
  "packages": ["npm:@0xkobold/pi-autoupdate"]
}

Usage

Automatic Updates

On startup, pi checks npm for the latest version. If an update is available:

  1. You'll see a confirmation dialog: "Update to vX.Y.Z?"
  2. A persistent widget below the editor shows: 📦 Update available: vX.Y.Z
  3. Click Yes to install, No to postpone

If you click No, the extension remembers and won't bother you until a newer version is released.

Status Widget

The extension displays a persistent widget below the editor showing current update status:

| State | Widget Display | |-------|----------------| | Update available | 📦 Update available: v1.2.3 | | Pending (from previous session) | 📦 Update available: v1.2.3 (pending since 3/20/2026) | | Up to date | ✓ pi is up to date (v1.2.3) | | After dismiss | ⏭️ Update dismissed until next release | | After successful update | ✓ Updated to v1.2.3 |

Manual Commands

  • /autoupdate - Toggle autoupdate on/off or show current status
  • /check-update - Check for updates and install if available
  • /dismiss-update - Skip this version (won't prompt again until next release)
  • /clear-update - Clear saved update state

How It Works

  1. On session_start, the extension checks npm for the latest version
  2. It compares against the currently installed version
  3. If an update exists and wasn't dismissed, prompts the user and shows in widget
  4. If confirmed, runs npm install -g @mariozechner/pi-coding-agent
  5. After install, tells you to restart pi

State Files

State is stored in ~/.pi/:

  • autoupdate-state.json - Pending update info (version, changelog URL, detected date)
  • autoupdate-current-version.txt - Dismissed version number
  • autoupdate-settings.json - Extension settings (enabled/disabled)