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-sprite-keepalive

v0.1.1

Published

A pi extension that keeps a Sprite awake while the agent is working.

Readme

pi-sprite-keepalive

A pi extension that prevents a Sprite from going to sleep while pi is actively working.

The extension creates a short-lived Sprite task when an agent run starts, refreshes it once per minute, and removes it after the agent settles. Each pi process uses a unique task name, so concurrent sessions do not release one another's keepalive tasks.

Outside a Sprite, where /.sprite/api.sock is absent, the extension does nothing.

Install

pi install npm:pi-sprite-keepalive

To try it for one invocation without installing it:

pi -e npm:pi-sprite-keepalive

Behavior

  • Starts a task with a five-minute expiry on agent_start.
  • Refreshes the task every minute while pi is working.
  • Deletes the task on agent_settled or session_shutdown.
  • Shows sprite: awake in pi's status line while active.
  • Warns once if heartbeats fail; failed cleanup is left to expire naturally.

The extension communicates only with the local Sprite Tasks API through /.sprite/api.sock.

Development

npm install
npm run check
npm pack --dry-run

The package ships its TypeScript entry point directly; pi loads TypeScript extensions without a build step.

Publishing

  1. Confirm that the package name and metadata in package.json are correct.
  2. Authenticate with npm using npm login.
  3. Run npm publish.

License

MIT