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

v0.1.2

Published

Starship-powered footer for pi — with PR number, model info, token counts, and thinking level

Readme

pi-starship

A pi extension that replaces the default footer with your Starship prompt — so colours, icons, and segments match your terminal exactly — and adds pi-specific context on the right: model, token counts, cost, and thinking level.

pi-starship footer screenshot

Features

  • Left side — delegates to starship prompt, so every segment, colour, and icon comes directly from your ~/.config/starship.toml.
    • Automatically shows git branch, status (! modified, ? untracked, behind, ahead), language versions, virtualenvs, cloud contexts — whatever starship shows in your shell
    • Appends a clickable PR #N link (OSC-8 hyperlink) when there is an open GitHub PR for the current branch
  • Right side — pi-specific info starship can't know about:
    • provider → Model Name (e.g. anthropic → Claude Haiku 4.5)
    • ◆ thinking-level when extended thinking is active
    • input tokens · output tokens · $ cost for the session

Prerequisites

| Tool | Purpose | | -------------------------------------- | ------------------------------- | | Starship | Left side rendering | | Nerd Font | Branch icon () and other glyphs | | gh CLI | PR number + URL lookup |

gh and starship must be in your PATH. The extension degrades gracefully when either is missing — the PR segment simply won't appear, or the left side falls back to empty.

Installation

pi install npm:pi-starship

Or from source:

pi install git:github.com/rajivm1991/pi-starship

How it works

On startup the extension calls starship prompt --terminal-width=<width> as a subprocess (with STARSHIP_SHELL=bash so it emits plain ANSI codes). It takes only the first line of the output, which is the info bar for two-line prompts and strips the line naturally.

Data is fetched asynchronously and cached. The footer renders immediately with whatever is cached and updates as fetches complete. Refresh triggers:

| Event | What refreshes | | --------------------- | --------------------------------- | | Session start | Starship prompt + PR | | Branch change | Starship prompt + PR | | Agent turn end | Starship prompt + PR | | Terminal resize | Starship prompt (width changed) | | Model/thinking change | Right side re-renders immediately |

Contributing

See CONTRIBUTING.md.