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

averecion-lite

v1.8.0

Published

Real-time AI agent monitoring - watches logs, detects dangerous commands and prompt injection attempts

Readme

Averecion Lite Adapter

Lightweight, local-only governance adapter for OpenClaw and other AI agent frameworks.

Features

  • One-Command Setup: npx averecion-lite init does everything
  • Policy Enforcement: Allow/block skills based on a simple JSON policy
  • Prompt Injection Detection: Regex-based scanning for hazardous patterns
  • Manual Confirmation: CLI-based approval for high-risk actions
  • Local Dashboard: Single-page dashboard showing action metrics
  • No Database: Append-only JSON file with automatic rotation
  • Secure by Default: Shared secret required, localhost-only binding

Quick Start (Automated)

npx averecion-lite init

That's it! The command:

  1. ✅ Generates a secret key automatically
  2. ✅ Detects your OpenClaw config
  3. ✅ Adds the safety hooks
  4. ✅ Creates the default policy

Then start the dashboard:

npx averecion-lite start

Visit http://127.0.0.1:4321/clawguard for the dashboard.

CLI Commands

npx averecion-lite init    # First-time setup
npx averecion-lite start   # Start dashboard
npx averecion-lite status  # Check configuration

Usage

Basic Integration

import { initLiteAdapter, beforeAction, afterAction } from "./index";

await initLiteAdapter({
  port: 4321,
  enableCLIConfirm: true,
});

const result = await beforeAction({
  tool: "shell.exec",
  args: { command: "ls -la" },
  plan: "List directory contents",
});

if (result.allowed) {
  await afterAction(payload, result);
}

OpenClaw Hook

import { createOpenClawHook, initLiteAdapter } from "./index";

await initLiteAdapter();
const hook = await createOpenClawHook();
openclaw.registerHook(hook);

API

GET /lite-metrics

Returns aggregated metrics for the last 24 hours.

Headers Required:

  • X-Lite-Secret: Your LITE_ADAPTER_SECRET value

Response:

{
  "window": "24h",
  "kpis": {
    "approved": 142,
    "blocked": 8,
    "manualApproved": 5,
    "highRiskIntercepts": 12,
    "promptInjectionDetected": 1
  },
  "egressTop": [
    {"host": "api.slack.com", "calls": 48}
  ],
  "skills": {"trusted": 18, "unknownBlocked": 3, "outdated": 0},
  "instance": {
    "reverseProxyHardened": true,
    "dashboardLocalOnly": true,
    "secretsEnvOnly": true
  },
  "timeline": {...},
  "cost": {...},
  "lastActions": [...]
}

GET /clawguard

Serves the single-page dashboard HTML.

GET /health

Health check endpoint (no auth required).

Security

  • Shared Secret: All API calls require X-Lite-Secret header
  • Localhost Binding: Server binds to 127.0.0.1 only
  • No Proxy Trust: Requests are rejected even if X-Forwarded-For indicates localhost
  • No Secret Logging: Secrets are never logged or exposed

Configuration

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | LITE_ADAPTER_SECRET | (required) | Shared secret for authentication | | LITE_PORT | 4321 | Server port | | LITE_HOST | 127.0.0.1 | Server host | | LITE_POLICY_PATH | built-in | Custom policy file path |

Policy File

Default location: ~/.averecion-lite/lite-policy.json

{
  "allowedSkills": ["email.send", "calendar.create", "web.get", "file.read"],
  "highRiskActions": ["shell.exec", "file.write", "network.post", "delete.*", "wallet.tx"],
  "blockUnknownSkills": true
}

Storage

Events are stored in ~/.averecion-lite/history.json. The file is automatically rotated when it exceeds 5MB (keeps the most recent half of events).

Upgrade to Averecion Full

Need enterprise features? Visit averecion.com for:

  • Cloud dashboard
  • Multi-agent orchestration
  • A/B testing
  • Compliance audit logs
  • SSO / RBAC
  • Enterprise support