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

v1.0.0

Published

Show AI cost in your local currencies — extends the pi footer with real‑time exchange rates from frankfurter.dev

Readme

pi-currency

Show your AI costs in local currencies — right in the pi footer.

Replaces the built-in pi footer with one that appends real‑time currency conversions after the USD cost using exchange rates from frankfurter.dev (European Central Bank data).

Before:

~/project (main)
↑25k ↓13k R1.8M CH99.6% $0.029 4.7%/128k (auto)

After:

~/project (main)
↑25k ↓13k R1.8M CH99.6% $0.029 MYR0.13 CNY0.21 EUR0.026 4.7%/128k (auto)

Install

pi install npm:pi-currencies

Or try it without installing:

pi -e npm:pi-currencies

Configuration

By default the extension shows no currencies — you add what you want.

Use /currency-add CODE at runtime, or set PI_CURRENCY_LIST to pre‑configure a comma‑separated list of ISO 4217 codes:

PI_CURRENCY_LIST=MYR,CNY,THB,IDR,INR pi

Commands

| Command | Description | |---|---| | /currency-refresh | Force‑refresh exchange rates from frankfurter.dev | | /currency-list | Show the configured currency list and current rates | | /currency-add | Interactive picker — search & select currencies to add | | /currency-remove | Interactive picker — select active currencies to remove |

How it works

  1. On startup, the extension fetches live rates from https://api.frankfurter.dev/latest?base=USD.
  2. Rates are cached on disk (~/.pi/agent/data/pi-currency-rates.json) for 24 hours.
  3. A custom footer component renders the same stats as the built‑in footer, plus currency conversions after the $0.029 cost.
  4. The footer updates automatically after every turn.

License

MIT