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

openclaw-plimsoll-security

v2.2.0

Published

Financial security guard for OpenClaw agents — protects crypto, stocks, purchases, and banking with five deterministic defense engines

Downloads

419

Readme

openclaw-plimsoll-security

Financial security guard for OpenClaw agents. Protects any agent that handles money — crypto, stocks, purchases, bank transfers, credit cards. Five deterministic defense engines plus a tamper-evident audit trail, zero dependencies, fail-closed.

Install

openclaw plugins install openclaw-plimsoll-security

Engines

| Engine | Catches | How | |--------|---------|-----| | Trajectory Hash | Hallucination retry loops | SHA-256 fingerprint of (tool, target, amount). 3+ identical calls in 60s = hard block. | | Capital Velocity | Spend-rate abuse | Sliding-window cap. Cumulative spend > $500 in 5 min = hard block. | | Entropy Guard | Credential exfiltration | Blocks ETH private keys, BIP-39 mnemonics, credit card numbers (Luhn-validated), SSNs, Stripe/Plaid API keys, high-entropy blobs. | | Confirmation Gate | Unauthorized large transactions | Per-transaction threshold. Single tx > $100 = hard block requiring human approval. | | Amount Anomaly | Unusual spending patterns | Flags transactions 10x+ above rolling average. Catches prompt injection that inflates amounts. |

All engines are deterministic (no LLM calls), zero-dependency (only node:crypto), and fail-closed.

Non-financial tools pass through untouched.

What it protects

  • Crypto/DeFi — swap, transfer, bridge, stake, approve, etc.
  • Stock trading — buy, sell, place_order, market_order, limit_order
  • Payments — pay, purchase, checkout, charge, subscribe
  • Banking — wire_transfer, ach_transfer, send_money, bank_transfer

Plus keyword fallback: any tool with swap, transfer, bridge, buy, sell, pay, purchase, charge, order, wire, or send as a standalone segment (e.g., token_swap matches, swapfile does not).

Configuration

All settings are optional — defaults are conservative:

{
  "plugins": {
    "entries": {
      "plimsoll-security": {
        "enabled": true,
        "config": {
          "maxVelocityCentsPerWindow": 50000,
          "velocityWindowSeconds": 300,
          "loopThreshold": 3,
          "loopWindowSeconds": 60,
          "confirmationThresholdCents": 10000,
          "anomalyMultiplier": 10,
          "anomalyMinSamples": 5
        }
      }
    }
  }
}

| Setting | Default | Description | |---------|---------|-------------| | maxVelocityCentsPerWindow | 50000 ($500) | Max cumulative spend in a sliding window | | velocityWindowSeconds | 300 (5 min) | Sliding window duration | | loopThreshold | 3 | Identical calls before hard block | | loopWindowSeconds | 60 (1 min) | Loop detection window | | confirmationThresholdCents | 10000 ($100) | Per-tx amount requiring human approval. Set to 0 to disable. | | anomalyMultiplier | 10 | Flag txs this many times above rolling avg | | anomalyMinSamples | 5 | Min transactions before anomaly detection activates |

Verdicts

Each tool call gets one of three verdicts:

  • ALLOW — pass through, no action
  • FRICTION — inject _plimsoll_warning into params, let agent decide
  • BLOCK — hard stop with reason, agent told to pivot strategy

Audit Trail

Every tool call verdict is recorded in a SHA-256 hash-chained audit log. Each entry includes the previous entry's hash, creating a tamper-evident chain — if any entry is modified or deleted, the chain breaks and verifyAuditChain reports the first broken link.

  • /plimsoll shows live audit stats (entries, blocks, frictions, chain integrity)
  • Programmatic access via getAuditLog(sessionKey) and verifyAuditChain(sessionKey)

Commands

  • /plimsoll — Show guard status, configuration, and audit trail stats

Development

npm install
npm test
npm run build

License

MIT


Powered by Plimsoll Protocol — deterministic execution substrate for autonomous AI agents.