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

@entelligentsia/pi-ollama-cloud-usage-tracker

v1.1.0

Published

Pi extension: live Ollama Cloud usage tracker in the footer with Claude-style quota bars

Readme

pi-ollama-cloud-usage-tracker

Pi extension that shows live Ollama Cloud usage in the footer status line with Claude-style quota bars.

5h ▕███░░░░░░░▏ 34% ⟳ 3h14m 7d ▕████░░░░░░▏ 45% ⟳ 3d16h
  • 5h — session (5-hour window) percentage bar with reset countdown
  • 7d — weekly (7-day window) percentage bar with reset countdown
  • Bar color reflects pace (usage% vs elapsed%): green if under budget, cyan if on track, yellow/red if burning fast
  • Countdown shows time remaining until the window resets

How it works

  1. Extracts Chrome cookies from the local cookie database using @steipete/sweet-cookie
  2. If the Chrome cookie encryption key is locked in the system keyring, falls back to a tiny Python helper (get-keyring-password.py) that tries gisecret-toolbrowser_cookie3 to unlock it
  3. Fetches https://ollama.com/settings with those cookies
  4. Parses usage percentages and reset timestamps from the dashboard HTML
  5. Refreshes every 5 minutes and after each agent turn
  6. Only activates when ollama-cloud is the active provider

Installation

pi install npm:@entelligentsia/pi-ollama-cloud-usage-tracker

Or add to ~/.pi/agent/settings.json:

{
  "packages": ["npm:@entelligentsia/pi-ollama-cloud-usage-tracker"]
}

Reload with /reload in pi.

Requirements

  • Node.js ≥ 22 (for node:sqlite used by sweet-cookie)

  • Chrome with an active Ollama Cloud login session

  • One of (for Linux keyring access):

    • libsecret-tools (secret-tool CLI) — install with sudo apt install libsecret-tools
    • python3-gi + gir1.2-secret-1 (PyGObject) — pre-installed on most GNOME desktops
    • browser_cookie3 (Python, uses jeepney/dbus-python) — pip install browser-cookie3

    On macOS and Windows, sweet-cookie handles keyring access natively — no extra packages needed.

Files

src/
  index.ts                  # Pi extension entry — footer rendering + events
  scraper.ts                # Cookie extraction + HTML scraping (TypeScript)
  get-keyring-password.py  # Linux keyring fallback (Python shim)
package.json                # npm package manifest + pi extension config
tsconfig.json               # TypeScript configuration

License

MIT