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-edgee-proxy

v2.1.3

Published

Route Pi coding agent through Edgee AI Gateway for lossless token compression — any provider, any model

Downloads

842

Readme

pi-edgee-proxy

Route the Pi coding agent through Edgee AI Gateway for lossless token compression — any provider, any model.

Why

Edgee's token compression losslessly compresses tool_result messages — file reads, grep output, bash stdout — before they reach the LLM. For coding agents like Pi that read lots of files, this reduces token costs by up to 30% without any quality loss.

This extension bridges Pi with Edgee, similar to edgee launch claude for Claude Code, but works with all Edgee-supported providers: Anthropic, OpenAI, Google, Z.ai, DeepSeek, Mistral, xAI, and more.

Install

pi install npm:pi-edgee-proxy

Requirements

  • An Edgee account with API key
  • Store your API key in the OS keychain (recommended):
    /edgee-auth store sk-edgee-...
    Or set the EDGEE_API_KEY environment variable (fallback)

Usage

After installing, Edgee models appear in Pi's model picker (Ctrl+L) under the edgee provider:

edgee/anthropic/claude-sonnet-4
edgee/openai/gpt-5.2
edgee/zai/glm-5-turbo
edgee/google/gemini-2.5-flash
...

Or launch directly:

pi --provider edgee --model "zai/glm-5-turbo"

Configuring providers

By default, all Edgee providers are enabled. To filter which providers appear:

/edgee-setup

This shows available providers and how to filter them:

/edgee-setup zai,anthropic

This creates .pi/edgee.json:

{
  "providers": ["zai", "anthropic"]
}

Only models from those providers will appear in the model picker. Run /reload to apply.

You can also edit .pi/edgee.json manually (project-local) or ~/.pi/agent/edgee.json (global).

How it works

Pi → Edgee (lossless tool_result compression) → LLM Provider

Pi sends standard OpenAI Chat Completions requests to Edgee's gateway. Edgee compresses tool_result content losslessly, then forwards to the upstream provider. The model receives identical output. You pay for fewer tokens.

The extension fetches Edgee's model catalog dynamically at startup, so new models appear automatically.

Disable agentic (lossy) compression

Edgee has two compression modes. Make sure Agentic Token Compression is OFF in your Edgee Console to avoid lossy semantic rewriting of your conversation history. The lossless tool_result compression works automatically.

Environment variables

| Variable | Required | Description | |----------|----------|-------------| | EDGEE_API_KEY | No (fallback) | Your Edgee API key (sk-edgee-...). Used if OS keychain has no key. |

Commands

| Command | Description | |---------|-------------| | /edgee-auth store sk-edgee-... | Store API key in OS keychain | | /edgee-auth remove | Remove API key from OS keychain | | /edgee-auth status | Show where the key is stored | | /edgee-setup | Show available providers and configure filters | | /edgee-setup provider1,provider2 | Enable specific providers and save to config |

License

MIT