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

@amanda-lakera/openclaw-plugin-lakera-guard

v0.1.1

Published

OpenClaw plugin: screen tool calls with Lakera Guard and block if flagged

Readme

Lakera Guard OpenClaw Plugin

Screens every tool call with Lakera Guard and blocks execution when content is flagged.

Install

From this repo (amanda-lakera/openclaw-plugin-lakera-guard):

git clone [email protected]:amanda-lakera/openclaw-plugin-lakera-guard.git
openclaw plugins install -l ./openclaw-plugin-lakera-guard

Or from npm:

openclaw plugins install @amanda-lakera/openclaw-plugin-lakera-guard

Configure

Set your Lakera API key and optional project ID under the plugin config:

{
  "plugins": {
    "entries": {
      "openclaw-plugin-lakera-guard": {
        "enabled": true,
        "config": {
          "apiKey": "your-lakera-api-key",
          "projectId": "your-project-id",
          "timeoutMs": 5000
        }
      }
    }
  }
}
  • apiKey (required): From Lakera Dashboard.
  • projectId (optional): Lakera project for policy; omit to use default policy.
  • timeoutMs (optional): Request timeout; default 5000.

Restart the OpenClaw gateway after enabling or changing config.

Behavior

  • Before each tool runs, the plugin sends the tool name and parameters to https://api.lakera.ai/v2/guard in OpenAI chat completions format.
  • If the response has flagged: true, the tool call is blocked and the user sees a block reason.
  • If the Guard request fails (network/API error), the tool is not blocked (fail-open). Edit the plugin to block on error for fail-closed.

Testing

Unit tests (no API key needed)

From the plugin directory:

pnpm install
pnpm test

Tests mock the Lakera API and assert that the plugin sends the correct assistant tool_calls payload and blocks (or allows) based on the flagged response.

Manual test with OpenClaw

  1. Install and enable the plugin in OpenClaw (see Install and Configure above), then restart the gateway.
  2. Trigger a tool call, e.g. run the agent and ask for something that uses a tool:
    openclaw agent --message "What's the weather in London?"
  3. In the Lakera Dashboard you can inspect requests and flagging. To verify blocking: use a test policy that flags a specific tool or argument pattern, or call the Guard API directly with a known-bad payload and confirm the same call is blocked when triggered via OpenClaw.

Publishing

From the plugin directory, after logging in to npm (npm login or pnpm login):

pnpm publish --access public

Scoped packages (@amanda-lakera/...) are private by default; --access public makes this package installable by anyone.