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

twzrd-preflight

v0.1.2

Published

TWZRD trust preflight: OpenClaw plugin + CLI. Check any Solana wallet or x402 URL: `npx twzrd-preflight <wallet-or-url>`. Free, no auth.

Downloads

500

Readme

twzrd-preflight

OpenClaw plugin: TWZRD trust gate for agent payments. Gates payment-shaped tool calls via a free preflight check before they execute. Blocked counterparties are stopped (enforce mode) or logged (shadow mode). Safe counterparties are allowed through; decisions are cached for 1 hour.

Install

npm install twzrd-preflight

Register in your OpenClaw config:

{
  "plugins": ["twzrd-preflight"]
}

Configuration

| Key | Default | Description | |-----|---------|-------------| | mode | "shadow" | off / shadow (log only) / enforce (block on decision=block) | | failMode | "open" | open (allow on API timeout) or closed (block on timeout, enforce only) | | timeoutMs | 5000 | Preflight HTTP timeout in ms | | maxPriceUsdc | null | Local price ceiling — blocks above this USDC amount without API call | | endpoint | "https://intel.twzrd.xyz" | TWZRD intel API base URL | | allowWallets | [] | Always-allow seller wallet addresses (no API call) | | denyWallets | [] | Always-block seller wallet addresses (no API call) | | cacheTtlMs | 3600000 | TTL for per-seller decision and 402 origin cache (1 hour) | | matchers | [] | Custom tool matchers for coverage beyond built-in rails |

Example enforce config:

{
  "plugins": [
    {
      "name": "twzrd-preflight",
      "config": {
        "mode": "enforce",
        "maxPriceUsdc": 1.00,
        "denyWallets": ["<known-bad-wallet>"]
      }
    }
  ]
}

Custom matchers

Built-in coverage: AgentCash MCP tools + exec/curl x402 payments. For other payment tools:

{
  "matchers": [
    {
      "tool": "payment_send",
      "walletParam": "recipient",
      "priceParam": "amount_usdc",
      "resourceParam": "memo"
    }
  ]
}

| Key | Required | Description | |-----|----------|-------------| | tool | yes | Tool name substring to match (case-insensitive) | | walletParam | no | Param key whose value is the seller wallet (Solana base58) | | urlParam | no | Param key whose value is a URL; origin used as resource_url | | priceParam | no | Param key for payment amount in USDC | | resourceParam | no | Param key for a human-readable resource name |

What it covers (honest)

  • MCP payment tools (AgentCash fetch/bridge style): counterparty = origin/url param, upgraded to the real Solana payTo wallet once a 402 envelope has been observed (after_tool_call cache).
  • exec/curl x402 payments: conservative regex extraction of seller_wallet/payTo/ price_usdc/resource_name from the command string. Failed parse = no gate (never blocks on extraction bugs).
  • Custom matchers: operator-defined tool + param mappings for any other payment rail.
  • NOT covered: ClawRouter proxy settlements (sign inside localhost:8402, invisible to tool hooks — needs ClawRouter's upstream onBeforePayment hook).

Gate rules

  • Block iff decision === "block". Never gates on can_spend (unknown wallets score warn/45, which is allowed by default).
  • shadow mode: evaluates + logs would-blocks, never blocks.
  • Fail-open by default: trust API unreachable = allow (failMode: "closed" reverses this).
  • Local policy (denylist, allowlist, price cap) runs without any API call.
  • Loop guard: calls to the trust API itself are never gated.

Privacy

In shadow and enforce modes, payment-shaped tool metadata is sent to intel.twzrd.xyz: seller wallet, origin, price, resource name, and an agent_intent marker. No payload content or full params are forwarded. The endpoint is configurable.

Test

npm test    # 13-case harness; hits the live FREE preflight (no auth, no payments)

Verified against OpenClaw 2026.3.13.