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

fastgrc-openclaw

v1.0.36

Published

FastGRC agent compliance plugin for OpenClaw — evaluates every tool call against your policy before it executes

Downloads

4,513

Readme

fastgrc-openclaw

FastGRC compliance plugin for OpenClaw. Evaluates every agent tool call against your policy before it executes — blocking, flagging, or logging violations in real time.

Install

npm install fastgrc-openclaw

Setup (2 lines)

// openclaw.config.ts
import { FastGRCPlugin } from 'fastgrc-openclaw';

export default {
  plugins: [
    FastGRCPlugin({
      apiKey: process.env.FASTGRC_API_KEY,  // fgrc_k1_...
    }),
  ],
};

Set your environment variable:

FASTGRC_API_KEY=fgrc_k1_your_key_here

Get your API key at fastgrc.ai/connect?source=openclaw — free, no credit card.

Options

FastGRCPlugin({
  apiKey: string;           // Required. Your FastGRC API key.
  policyId?: string;        // Optional. Target a specific policy. Omit for org-wide default.
  onBlock?: 'throw'         // (default) Throw FastGRCBlockedError — OpenClaw surfaces it as an agent error
           | 'warn'         // console.warn and allow through
           | 'silent';      // Allow through silently
  timeoutMs?: number;       // Max ms to wait for FastGRC API. Default: 3000. Fail-open on timeout.
  baseUrl?: string;         // Override FastGRC base URL. Default: https://app.fastgrc.ai
})

How it works

The plugin registers a before_tool_call hook. For every tool invocation:

  1. Calls POST /api/v1/policy-router/evaluate with the tool name and arguments
  2. On decision: block → throws FastGRCBlockedError (OpenClaw surfaces this as an agent error with explanation)
  3. On decision: require_approval → throws FastGRCApprovalRequiredError with a link to your dashboard
  4. On decision: allow | uncertain → passes through silently
  5. On timeout or network error → fail-open (allows through, logs a warning) — FastGRC never breaks your agent due to infra issues

Error types

import { FastGRCBlockedError, FastGRCApprovalRequiredError } from 'fastgrc-openclaw';

// Catch in your agent error handler:
if (err instanceof FastGRCBlockedError) {
  console.log(err.matchedRule);  // Which policy rule triggered
  console.log(err.reasoning);    // Human-readable explanation
  console.log(err.policyId);     // Policy that made the decision
}

if (err instanceof FastGRCApprovalRequiredError) {
  console.log(err.dashboardUrl); // Link to approve in FastGRC dashboard
}

Policy modes

Policies start in Observability Mode — violations are logged but never blocked. Switch to enforcement from your FastGRC dashboard when ready.

Links