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

@leojlin/mypi

v0.1.1

Published

Personal Pi extensions

Readme

personal-pi

Personal extensions bundled into one Pi extension and loaded from:

~/personal-pi

The package is enabled in ~/.pi/agent/settings.json. Run /reload or restart Pi after changes.

Included functionality

Startup and session management

  • always-default-model.ts

    • Selects startupModel from ~/.pi/agent/settings.json on a fresh Pi launch.
    • Does not override an explicit --model, resumed conversation, /new, /resume, /fork, or /reload model.
  • auto-session-title.ts

    • Uses the active model to generate a short title from the first user prompt.
    • Also titles a fresh fork from its first post-fork prompt.
    • Title generation is best-effort and does not block the main turn.
  • copy-resume-command-on-exit.ts

    • On normal TUI exit, copies a pi --session ... command for the persisted session to the clipboard.

Model controls

  • codex-fast-mode.ts

    • Adds /fast, /fast on, /fast off, and /fast status.
    • When enabled, adds service_tier=priority to provider request payloads for faster Codex requests.
    • Priority mode may cost more credits.
  • hide-built-in-models.ts

    • Hides built-in model catalogs for the deepseek, google, and openai providers.

TUI

  • model-name-footer.ts
    • Replaces the default footer with:
      • Working directory and Git branch
      • Session name and ID
      • Current provider, model, and thinking level
      • Context usage and estimated session cost
      • Extension status indicators

Chrome control

  • chrome-profile-bridge/index.ts (vendored pi-chrome 0.15.46)
    • Adds chrome_* tools for tabs, snapshots, inspection, navigation, evaluation, clicks, typing, form filling, keyboard input, scrolling, dragging, tapping, file uploads, screenshots, console logs, and network requests.
    • Uses the user's existing signed-in Chrome profile through the bundled unpacked companion extension in chrome-profile-bridge/browser-extension/.
    • Keeps implicit automation in a dedicated Pi session target and supports shared bridge clients across concurrent Pi sessions.
    • The local build starts every new/reloaded Pi session with indefinite Chrome authorization. /chrome revoke locks the current runtime; reloading or starting a new session restores indefinite authorization.
    • /chrome onboard, /chrome doctor, /chrome status, /chrome authorize, /chrome revoke, and /chrome background ... manage the bridge.
    • Disable the Pi-side integration globally with "configure": { "pi-chrome": { "enabled": false } } in ~/.pi/agent/settings.json, then run /reload.
    • Upstream reference material is preserved in pi-chrome.README.md, pi-chrome.SECURITY.md, pi-chrome.LICENSE, pi-chrome-docs/, and pi-chrome-test-suite/.

Conversation excursions

  • pi-excursion.ts
    • /excursion [goal] — fork into a temporary exploratory conversation.
    • /return <focus> — reduce the excursion into an editable return packet and resume the parent.
    • /return-exact [text] — approve literal text without an LLM reducer.
    • /discard — resume the parent without returning context.
    • Supports nested excursions and persists metadata beside the session file.
    • Requires an interactive TUI and a persisted session.

Fuzzy autocomplete

  • frizbee-autocomplete/index.ts
    • Provides fuzzy word and existing-path completion from the active conversation.
    • Indexes user, assistant, and tool-result messages locally.
    • Uses the native Frizbee backend on supported platforms and falls back to a JavaScript matcher otherwise.
    • Tab and Shift+Tab cycle word suggestions.
    • Pi's slash-command, @ file, #, and path completion remain delegated to the built-in provider.
    • The native Rust source and prebuilt backend are under frizbee-autocomplete/native/ and native-build/.

Layout

personal-pi/
├── package.json
├── README.md
├── pi-excursion.README.md
├── pi-excursion.LICENSE
├── pi-chrome.README.md
├── pi-chrome.SECURITY.md
├── pi-chrome.LICENSE
├── pi-chrome-docs/
├── pi-chrome-test-suite/
└── extensions/
    ├── index.ts                  # Single Pi entry point
    ├── always-default-model.ts
    ├── auto-session-title.ts
    ├── chrome-profile-bridge/
    │   ├── index.ts
    │   └── browser-extension/
    ├── codex-fast-mode.ts
    ├── copy-resume-command-on-exit.ts
    ├── hide-built-in-models.ts
    ├── model-name-footer.ts
    ├── pi-excursion.ts
    └── frizbee-autocomplete/
        ├── index.ts
        ├── native/
        ├── native-build/
        ├── scripts/
        └── test/

The package has no runtime dependencies beyond Pi's bundled core packages.