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-sticky-model

v0.2.0

Published

Pi extension that keeps your selected model across /new, /resume, and /fork within the same session. Model resets on Ctrl+C.

Downloads

143

Readme

pi-sticky-model

CI Publish License: MIT Pi package Trusted Publishing

Keeps your /model selection across /new, /resume, and /fork. Resets on Ctrl+C — no settings.json override needed.

What this is

Pi extension. When you switch models with /model or Ctrl+P, the selection sticks across /new, /resume, and /fork for the lifetime of the Pi process. Close Pi (Ctrl+C) and everything resets to your settings.json default.

For anyone tired of their model snapping back to the settings.json default every time they start a new conversation.

Features

  • Sticky model: /model selection persists across /new, /resume, /fork
  • Process-scoped: model resets to settings.json default on Ctrl+C / process exit
  • Zero config: install and it works — no YAML, no JSON, no setup
  • Reload-safe: /reload preserves your current model

Coexistence

This extension works alongside other model-switching extensions such as pi-weighted-model-router and pi-scheduled-router. Since all of them call pi.setModel(), the last one to fire wins. Control the priority by ordering your packages array in .pi/settings.json.

Install

Install the published npm package with Pi:

pi install npm:pi-sticky-model

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-sticky-model -l

Or install from GitHub:

pi install git:github.com/eiei114/pi-sticky-model

Try it without permanently installing:

pi -e npm:pi-sticky-model

Quick start

Try this package locally:

pi -e .

Then run /model to pick a model, then /new — your model stays.

Package contents

| Path | Purpose | |---|---| | extensions/index.ts | Pi extension entrypoint — event hooks for model persistence | | lib/sticky-model.ts | Process-scoped global state for the sticky model | | tests/ | Node test runner unit tests | | docs/ | Release setup (Trusted Publishing) |

Development

npm install
npm run ci

Short flow:

Vault notes -> PRD -> Issues -> implement -> ci/check -> release -> save learnings

Release

This package is set up for npm Trusted Publishing, so no NPM_TOKEN is required.

npm version patch
git push

See docs/release.md for setup details.

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

  • npm: https://www.npmjs.com/package/pi-sticky-model
  • GitHub: https://github.com/eiei114/pi-sticky-model
  • Issues: https://github.com/eiei114/pi-sticky-model/issues

License

MIT\n