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

@jeffaf/rubberband

v1.1.0

Published

RubberBand - static command pattern detection for OpenClaw exec pipeline

Readme

RubberBand

Static command pattern detection plugin for OpenClaw. Intercepts exec tool calls and blocks dangerous commands before they run.

Install

git clone https://github.com/jeffaf/rubberband.git ~/rubberband
openclaw plugins install ~/rubberband
openclaw gateway restart

Verify it loaded:

openclaw logs --lines 20 | grep -i rubberband
# Should show: [plugins] RubberBand plugin active (mode: block)

Note: npm publishing is planned (#1). Once available: openclaw plugins install rubberband

What It Does

RubberBand hooks into the before_tool_call event and analyzes every exec command for dangerous patterns. It scores commands based on 15+ detection categories and blocks, alerts, or logs based on configurable thresholds.

Detection Categories

| Category | Examples | Score | |----------|----------|-------| | Credential Access | cat ~/.ssh/id_rsa, AWS keys, keychains | 60-80 | | Data Exfiltration | curl -X POST to external hosts | 40-70 | | Reverse Shells | nc -e, bash /dev/tcp, ngrok tunnels | 90 | | Config Tampering | Writes to SOUL.md, system prompts | 75 | | Persistence | Crontab, LaunchAgents, shell rc modifications | 60 | | Indirect Execution | Pipe to shell, eval, base64 decode + exec | 30-50 | | Reconnaissance | whoami, env, ps aux chains | 30 |

Thresholds

| Score | Default Disposition | Behavior | |-------|-------------|----------| | 0 | ALLOW | No detection | | 1-39 | LOG | Silent log | | 40-59 | ALERT | Warn in session | | 60+ | BLOCK | Reject command |

Configuration

In openclaw.json:

{
  "plugins": {
    "entries": {
      "rubberband": {
        "enabled": true,
        "config": {
          "mode": "block",
          "thresholds": {
            "alert": 40,
            "block": 60
          },
          "allowedDestinations": ["github.com", "api.openai.com"]
        }
      }
    }
  }
}

Modes

  • block (default) - Block commands above block threshold, alert above alert threshold
  • alert - Never block, only alert
  • log - Silent logging only
  • shadow - Like log, for testing without any user-visible output
  • off - Disabled

Tests

cd ~/.openclaw/plugins/rubberband
npm install
npx vitest run

26 tests covering all detection categories, edge cases, and mode handling.

How It Works

RubberBand is a pure TypeScript static analyzer. No network calls, no external dependencies, no LLM. It normalizes commands (handling encoding, escaping, heredocs, etc.) and matches against pattern rules with weighted scoring.

The plugin registers a before_tool_call hook at high priority. When an exec tool call comes in, it runs the command through the analyzer. If the score exceeds the block threshold, it returns { block: true, blockReason: "..." } which prevents execution.

Also Available As

RubberBand is also proposed as a native OpenClaw feature: PR #24958

The plugin version lets you use it today without waiting for the PR to merge.

License

MIT