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

@guygrigsby/pi-header

v0.2.0

Published

Replace pi's startup header with a framed two-column box: block π and greeting beside tips and what's new.

Readme

header

Replaces pi's built-in startup header (logo + keybinding hints) with a framed two-column box: greeting, block π and session facts on the left, tips and the release's headlines on the right.

╭─ pi v0.83.0 ──────────────────────────────────┬──────────────────────────────────────────────────────────────────────╮
│                afternoon, Guy                 │ Tips for getting started                                             │
│                                               │ /model switches model mid-session                                    │
│                 ████████████                  │ /tree browses this session's branches                                │
│                  ██     ██                    │                                                                      │
│                  ██     ██                    │ ──────────────────────────────────────────────────────────────────── │
│                  ██     ██                    │ What's new in 0.83.0                                                 │
│                  ██     ██▄                   │ Credential export for external clients                               │
│                                               │ Headless OpenRouter sign-in                                          │
│                kimi-k3 · high                 │                                                                      │
│           ~/projects/pi-extensions            │ /changelog for more                                                  │
╰───────────────────────────────────────────────┴──────────────────────────────────────────────────────────────────────╯

The greeting name is resolved once at startup from, in order: PI_HEADER_NAME, git user.name, then the OS username — first token, capitalized. What's new is read from the installed pi's CHANGELOG.md and drops out silently if that read fails. Tips rotate by the day.

The frame, title and π are the only colored parts, and they take PI_HEADER_COLOR rather than a theme token — brand color in one place, so the theme itself can stay neutral. Everything inside the box uses theme colors.

Widths adapt: the box caps at 120 columns rather than stretching, stacks to one column below 80, and falls back to the plain glyph-and-greeting header below 46.

Requires quietStartup: false in your settings. setHeader is a no-op when the built-in header is silenced, so with quietStartup: true you would see nothing.

Install

pi install npm:@guygrigsby/pi-header

Config

  • PI_HEADER_NAME — name used in the greeting (else git user.name, else OS user).
  • PI_HEADER_COLOR — frame, title and π as #rrggbb (default #ff4fa3). Anything that isn't a hex color falls back to the theme's accent.

Test

npm test

Covers the pure layout and parsing in extensions/header-core.mjs: column fitting, frame drawing, changelog extraction, path shortening. The setHeader wiring is exercised by running pi.