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

event-server-plugin

v1.2.0

Published

OpenClaw plugin for capturing and broadcasting events via webhooks

Readme

OpenClaw Event Server Plugin

OpenClaw Event Server Plugin turns agent runtime behavior into a real-time event stream you can automate against.

It gives you:

  • A canonical event stream for agent/session/tool lifecycle activity
  • Real-time delivery over WebSocket and HTTP webhooks
  • A Hook Bridge to trigger scripts/webhooks from matching events
  • Tool Guard controls to approve, patch, or block risky tool calls before execution

Why Teams Use It

Common outcomes:

  • Real-time operations visibility (agent.status, agent.activity, session events)
  • Alerting and incident response from failures/stalls/tool errors
  • Human approval gates for high-risk tool usage (exec, network/browser tools)
  • Workflow chaining between parent/subagent runs
  • Structured audit/event logs for compliance and analytics

Example User Scenarios

  • Content studio control room: watch multiple agents, detect stuck runs, gate publishing actions behind approvals.
  • Founder ops autopilot: route session/tool events into Slack/automation for inbox triage and lead workflows.
  • Stream reliability: detect stalled/ended agent sessions and trigger recovery hooks automatically.
  • Knowledge capture: persist successful tool paths and outcomes to your internal systems.

Install

Option 1: from npm (recommended)

openclaw plugins install openclaw-event-server-plugin

Option 2: from local source

npm install
npm run build
openclaw plugins install -l /absolute/path/to/openclaw_event_server_plugin

Quick Start

Add plugin config in ~/.openclaw/openclaw.json:

{
  "plugins": {
    "entries": {
      "event-server-plugin": {
        "enabled": true,
        "config": {
          "webhooks": [
            {
              "url": "https://example.com/events",
              "method": "POST"
            }
          ],
          "transport": {
            "mode": "auto"
          },
          "hookBridge": {
            "enabled": false,
            "toolGuard": {
              "enabled": false
            }
          }
        }
      }
    }
  }
}

Then start OpenClaw and connect a WebSocket client to:

  • ws://127.0.0.1:9011/ (falls back across 9012-9016)

For multi-runtime hosts, use transport.mode: "auto" and set transport.authToken. In auto, the gateway runtime owns transport and other OpenClaw runtimes relay their events into it.

Important deployment note:

  • auto depends on the process looking like the real OpenClaw gateway runtime
  • if you launch the gateway through a wrapper with a nonstandard process title/argv, set EVENT_PLUGIN_RUNTIME_KIND_OVERRIDE=gateway
  • if you launch background workers or agent-side helpers through wrappers, set EVENT_PLUGIN_RUNTIME_KIND_OVERRIDE=agent

This keeps ownership predictable: gateway publishes the public event stream, all other runtimes remain local event producers.

For Developers

npm install
npm run build
npm test

Useful files:

  • config.example.json
  • CHANGELOG.md
  • examples/tool-guard-bundles/
  • TESTING.md
  • CONTRIBUTING.md
  • .nvmrc
  • docs/release.md

Documentation

Implementation docs now live in docs/:

Compatibility

Compatibility is pinned to the OpenClaw hook surface fixture and verified by contract tests:

  • fixture: tests/fixtures/openclaw-hook-surface.v3caab92.json
  • contracts: tests/contract/

Release publishing is pinned to the repository toolchain in .nvmrc, while CI also exercises newer supported Node majors for runtime compatibility.

License

MIT