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

v0.1.5

Published

Local retention tracker for Pi skills and extensions.

Readme

Pi Retention

CI Publish npm version npm downloads License: MIT Pi package Trusted Publishing

Local retention tracker for Pi skills and extensions.

What this is

Pi Retention counts local usage, surfaces expired items, and quarantines one stale item at a time on startup.

Startup behavior

On each Pi launch, Pi Retention evaluates expired active roots and may prompt for at most one quarantine candidate.

  • Ordering: earliest dueAt wins; ties break on oldest lastUsedAt (age).
  • Deny: declining the prompt changes nothing; the same candidate is offered on the next launch.
  • Excluded: pinned (P), quarantined (Q), self-protected, and not-yet-due roots never appear in the startup prompt.
  • Report: /retention:report uses the same ordering and labels the startup candidate explicitly.

See ROADMAP.md for MVP scope and non-goals.

Features

  • Tracks usage locally per artifact root
  • Reports stale and protected items
  • Prompts once per startup for the oldest expired candidate (due date, then age)
  • Report rows show A/!/P/Q status and the single startup candidate
  • Quarantines approved items before manual purge
  • Keeps retention data local

Commands

  • retention:init — initialize the manifest for the current project
  • retention:report — show all tracked roots
  • retention:confirm — quarantine the oldest expired candidate
  • retention:restore — restore one quarantined item
  • retention:purge — permanently delete one quarantined item
  • retention:pin / retention:unpin — protect or release one item

Data files

  • .pi-retention-project.yaml — project manifest
  • .pi-retention.yaml — per-root sidecar
  • .pi-retention.jsonl — append-only usage log
  • .pi-retention-trash/ — quarantine area

Install

Install the published npm package with Pi:

pi install npm:pi-retention

Pin a specific version when you want reproducible installs:

pi install npm:[email protected]

Install into the current project instead of your user Pi settings:

pi install npm:pi-retention -l

Or install from GitHub:

pi install git:github.com/eiei114/pi-retention

Try it without permanently installing:

pi -e npm:pi-retention

Quick start

Try this package locally from a clone:

pi -e .

Then run:

/retention:report

On startup, Pi Retention checks the single oldest expired candidate and asks once before quarantine. Declining the prompt leaves the item active for the next launch.

Package contents

Published tarball includes:

| Path | Purpose | |---|---| | extensions/ | Pi TypeScript extension entrypoints | | lib/ | Shared TypeScript helpers | | docs/ | Supporting docs (examples.md, release.md) | | README.md | Project entrypoint | | ROADMAP.md | MVP scope and non-goals | | CHANGELOG.md | Release history | | LICENSE | MIT license |

Development

npm install
npm run ci

npm run ci runs typecheck, tests, and npm run pack:check (npm pack --dry-run) to verify the published tarball contents before release.

Release

Before tagging, confirm package readiness:

npm run ci
npm run pack:check

Then bump and push:

npm version patch
git push

See docs/release.md for Trusted Publishing setup.

Docs

Security

Pi packages can execute code with your local permissions. Review extensions before installing third-party packages.

For vulnerability reporting, see SECURITY.md.

Links

License

MIT