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

@opencompress/opencompress

v2.0.1

Published

OpenCompress plugin for OpenClaw — automatic 5-layer prompt compression for any LLM

Downloads

2,649

Readme

OpenCompress Plugin for OpenClaw

Compress every LLM call automatically — keep your existing provider, same models, same quality, 40-70% cheaper.

How it works

Your Agent → OpenCompress (compress) → Your LLM Provider (OpenAI/Anthropic/OpenRouter/Google)

You already pay for an LLM provider. OpenCompress adds a compression layer on top — your prompts are compressed through a 5-layer pipeline before reaching your provider. You pay your provider at their normal rates, and we charge only 20% of what you save.

  • 53% average input token reduction
  • 62% latency improvement
  • 96% quality preservation (SQuALITY benchmark)

Install

openclaw plugins install @opencompress/opencompress

Setup

1. Connect your LLM key

After installing, run onboard and connect your existing provider key:

openclaw onboard opencompress

The wizard auto-provisions your account ($1.00 free credit) and asks for your upstream LLM key. Supported providers:

| Key prefix | Provider | |---|---| | sk-proj- or sk- | OpenAI | | sk-ant- | Anthropic | | sk-or- | OpenRouter | | AIza... | Google AI |

Once connected, every LLM call is compressed automatically — you pay your provider directly, we only charge the compression fee.

Don't have an LLM key? No problem — we can route through OpenRouter for you. Just skip the key step during onboard.

2. Use it

Switch to the OpenCompress provider:

/model opencompress/gpt-4o-mini

That's it. Same model IDs as your current provider — no config changes needed.

3. Connect or switch your key anytime

/compress-byok sk-proj-your-openai-key    # Connect OpenAI
/compress-byok sk-ant-your-anthropic-key   # Connect Anthropic
/compress-byok sk-or-your-openrouter-key   # Connect OpenRouter
/compress-byok off                         # Switch back to router mode

Commands

| Command | Description | |---------|-------------| | /compress-stats | Show compression savings (calls, tokens saved, cost saved) | | /compress-byok <key> | Connect or switch your LLM provider key | | /compress-byok off | Disconnect your key (switch to router fallback) |

Supported models (20)

Works with all major providers — use whichever models you already use:

| Provider | Models | |----------|--------| | OpenAI | gpt-4o, gpt-4o-mini, gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, o3, o4-mini | | Anthropic | claude-sonnet-4-6, claude-opus-4-6, claude-haiku-4-5-20251001 | | Google | gemini-2.5-pro, gemini-2.5-flash, google/gemini-2.5-pro-preview | | DeepSeek | deepseek/deepseek-chat-v3-0324, deepseek/deepseek-reasoner | | Meta | meta-llama/llama-4-maverick, meta-llama/llama-4-scout | | Qwen | qwen/qwen3-235b-a22b, qwen/qwen3-32b | | Mistral | mistralai/mistral-large-2411 |

Pricing

You pay your LLM provider directly at their normal rates. OpenCompress charges 20% of the tokens you save — if compression saves you $1.00 in tokens, you pay us $0.20. Net saving: $0.80.

$1.00 free credit on sign-up covers ~50-100 compressed calls.

Configuration

| Key | Default | Description | |-----|---------|-------------| | apiKey | — | Your sk-occ-... key (set during onboard) | | baseUrl | https://www.opencompress.ai/api | Custom API endpoint |

Uninstall

openclaw plugins uninstall opencompress

License

MIT