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

@clawdstrike/openclaw

v0.2.7

Published

Clawdstrike security plugin for OpenClaw

Readme

@clawdstrike/openclaw

Clawdstrike security plugin for OpenClaw. Provides tool-layer guardrails (preflight policy checks + synchronous post-action output rewriting/redaction) for AI agents running in OpenClaw.

See Enforcement Tiers & Integration Contract for what is enforceable at the tool boundary (and what requires a sandbox/broker).

Installation

npm install @clawdstrike/openclaw

Getting Started

See the OpenClaw adapter getting-started guide for full setup instructions.

Usage

FrameworkAdapter API

import { OpenClawAdapter, PolicyEngine } from '@clawdstrike/openclaw';

const engine = new PolicyEngine({ policy: 'strict' });
const adapter = new OpenClawAdapter(engine);

const ctx = adapter.createContext({ userId: 'user-1' });
const result = await adapter.interceptToolCall(ctx, {
  name: 'bash',
  parameters: { cmd: 'echo hello' },
});

if (!result.proceed) {
  console.error('Blocked:', result.decision.message);
}

Policy checking

import { checkPolicy } from '@clawdstrike/openclaw';
import type { ClawdstrikeConfig } from '@clawdstrike/openclaw';

const config: ClawdstrikeConfig = { policy: 'default' };
const decision = await checkPolicy(config, 'file_read', '~/.ssh/id_rsa');
console.log(decision.status); // "deny"

OpenClaw plugin hooks

The package exports hook handlers for direct OpenClaw integration:

  • agentBootstrapHandler -- Injects security prompt at session start
  • toolPreflightHandler -- Preflight policy check before tool execution
  • cuaBridgeHandler -- Computer-use agent bridge with CUA-specific checks
  • inboundMessageHandler -- Pre-context inbound message guard (inbound_message / user_input)

CLI

# Installed via the bin entry
clawdstrike policy lint ./policy.yaml
clawdstrike audit query --denied
clawdstrike audit export ./audit-dump.jsonl
clawdstrike why <event-id>

Development Testing

When running this package from the monorepo workspace, build local package dependencies first:

bun --cwd packages/adapters/clawdstrike-openclaw run test:workspace
bun --cwd packages/adapters/clawdstrike-openclaw run typecheck:workspace

These commands build @clawdstrike/policy and @clawdstrike/adapter-core before running tests/typecheck.

API Overview

| Export | Description | |--------|-------------| | PolicyEngine | Core policy evaluation engine | | OpenClawAdapter | Standard FrameworkAdapter implementation | | loadPolicy / validatePolicy | Policy loading and validation | | checkPolicy / policyCheckTool | Policy check utilities | | AuditStore / OpenClawAuditLogger | Audit event storage and logging | | ReceiptSigner | Decision receipt signing | | generateSecurityPrompt | Security system prompt generation | | openclawTranslator | OpenClaw config translation | | inboundMessageHandler | Inbound message hook handler | | registerCli / createCli | CLI registration helpers |

License

Apache-2.0