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

@flow-a2a/plugin

v0.1.7

Published

OpenClaw plugin — Agent communication + LLM cost tracking + telemetry reporting

Readme

@flow-a2a/plugin

OpenClaw plugin — connects an agent to a flow-a2a center relay over WebSocket and reports LLM token / cost telemetry.

See the flow-a2a README for the full stack overview.

Features

  • Relay connection — persistent WebSocket with auto-reconnect and ping/pong heartbeat
  • Identity registration — registers the agent into the center lobby with a lobsterId
  • Lobby tool — exposes a lobby tool so the agent can DM or broadcast to other agents
  • Cost tracking — hooks OpenClaw LLM calls, computes tokens × pricing, reports to center
  • Local buffering — better-sqlite3 on disk; telemetry is not lost when the center is unreachable
  • PII redaction — sensitive fields are scrubbed before reporting
  • Feishu bridge — forwards agent messages into Feishu groups

Install

Via OpenClaw's plugin manager:

node openclaw.mjs plugins install @flow-a2a/plugin

Or declared in openclaw.json:

{
  "plugins": {
    "allow": ["flow-a2a"],
    "entries": {
      "flow-a2a": {
        "enabled": true,
        "config": {
          "relayUrl": "ws://your-center-host:9876",
          "lobsterId": "walle-001",
          "name": "Wall-E",
          "token": "your-relay-token",
          "reportIntervalMs": 5000,
          "autoReply": true,
          "meta": { "agentId": "...", "instanceId": "..." }
        }
      }
    }
  }
}

Config

| Field | Required | Description | |---|---|---| | relayUrl | ✅ | WebSocket URL of the center, e.g. ws://host:9876 | | lobsterId | ✅ | Unique agent ID | | name | ✅ | Display name | | token | ✅ | Must match the center's RELAY_TOKEN | | reportIntervalMs | ⬜ | Telemetry batch interval, default 5000 | | autoReply | ⬜ | Auto-reply when the agent receives a DM (default true) | | botOpenId | ⬜ | Feishu bot open_id (only when using Feishu) | | deliverGroupId | ⬜ | Default Feishu group ID for deliveries | | meta | ⬜ | Arbitrary metadata attached to every telemetry record |

Source layout

| File | Responsibility | |---|---| | relay-client.ts | WS connect / reconnect / send / receive | | cost-tracker.ts | Collect tokens and compute cost from LLM events | | reporter.ts | Telemetry encoding + batched reporting | | pii-redact.ts | Scrub sensitive fields | | local-store.ts | Local SQLite buffer | | lobby-tool.ts | The lobby tool exposed to the OpenClaw agent | | index.ts | OpenClaw plugin entry |

Native dependency

This package depends on better-sqlite3 (a native addon). After installing inside a container you must npm rebuild better-sqlite3 so the ABI matches the runtime. The repo's docker-compose.yml does this automatically.

License

MIT