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

v0.2.16

Published

Interactive-only advisory Sage extension for Pi

Downloads

122

Readme

pi-sage

Interactive-only advisory Sage extension for Pi.

Runtime requirements (for users)

  • Pi CLI installed (pi) and available on PATH
  • Pi version: 0.64.0+ recommended
  • Model access configured in Pi (API keys / provider auth)
  • OS: Linux/macOS/Windows supported
  • Optional: git CLI for git-review-readonly profile

Important: Sage spawns a nested pi subprocess for consultations, so pi must be invokable from the environment where Pi itself is running.

Install

Global install (all projects)

pi install npm:pi-sage

Project-local install (current project only)

pi install -l npm:pi-sage

Then in Pi run:

/reload

Usage

  • Ask naturally: “use Sage”, “get a second opinion”, etc.
  • Or the model may invoke Sage autonomously when appropriate.
  • Configure via:
/sage-settings

Tool profiles

  • read-only-lite: ls, glob, grep, read
  • git-review-readonly (default): adds restricted bash for allowlisted read-only git commands
  • none
  • custom-read-only
  • yolo: unrestricted available tools/commands (including node/npm/cd/tests). High risk, explicit opt-in only.

Settings files (global + project override)

Sage settings are resolved in this order:

  1. .pi/sage-settings.json (project override)
  2. ~/.pi/agent/sage-settings.json (global fallback)
  3. built-in defaults

So yes: a global install can use global settings, and any project can override with its own .pi/sage-settings.json.

Install scope and file layout

Global install (pi install npm:pi-sage)

Pi writes package source to:

  • ~/.pi/agent/settings.json

Package files are installed globally by npm (npm install -g), typically under npm's global prefix, e.g.:

  • Windows (typical): %APPDATA%/npm/node_modules/pi-sage/
  • macOS/Linux (typical): <npm-global-prefix>/lib/node_modules/pi-sage/

Use npm root -g to see your exact global node_modules path.

Project-local install (pi install -l npm:pi-sage)

Pi writes package source to:

  • .pi/settings.json

Package files are installed under project-local Pi package storage:

  • .pi/npm/ (project-local package cache/install root)

Settings files (independent of install scope)

  • Global Sage settings: ~/.pi/agent/sage-settings.json
  • Project Sage settings: .pi/sage-settings.json

Project settings always override global settings for that project.

Publishing note

Package name sage is already taken on npm. pi-sage is currently available and is the intended publish name.

Install troubleshooting

If pi install pi-sage fails with a local-path error (for example Path does not exist: .../pi-sage), your Pi version is interpreting bare names as local paths. Use the explicit npm source form instead:

pi install npm:pi-sage