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

beam-protocol-message-bus

v0.1.0

Published

Persistent message bus for Beam Protocol — reliable agent-to-agent communication with retry, audit trail, and guaranteed delivery

Readme

@beam-protocol/message-bus

Persistent message bus for the Beam Protocol — reliable agent-to-agent communication with retry, audit trail, and guaranteed delivery.

Features

  • Persistent Queue — Messages survive restarts (SQLite)
  • Guaranteed Delivery — Exponential backoff retry (30s → 480s, configurable)
  • Audit Trail — Full message history with timestamps, status, and responses
  • Rate Limiting — Per-agent rate limits to prevent flooding
  • Ed25519 Signed — Messages are cryptographically signed
  • Zero Config — Works out of the box with Beam Directory

Quick Start

npm install @beam-protocol/message-bus

Standalone Server

import { createBus } from '@beam-protocol/message-bus'

const bus = createBus({
  dbPath: './beam-bus.sqlite',
  directoryUrl: 'http://localhost:3100',
  identityPath: './beam-identity.json',
  port: 8420,
})

await bus.start()

As Express/Hono Middleware

import { createBusRouter } from '@beam-protocol/message-bus'

const router = createBusRouter({
  dbPath: './beam-bus.sqlite',
  directoryUrl: 'http://localhost:3100',
})

app.route('/v1/beam', router)

CLI

npx @beam-protocol/message-bus --port 8420 --directory http://localhost:3100

API

POST /v1/beam/send

Send a message through the bus.

{
  "from": "[email protected]",
  "to": "[email protected]",
  "intent": "task.delegate",
  "payload": { "task": "Process order #123" }
}

GET /v1/beam/poll?agent=<beam-id>

Poll for messages addressed to your agent.

POST /v1/beam/ack

Acknowledge receipt/completion of a message.

{
  "message_id": "abc123",
  "status": "acked",
  "response": { "result": "Order processed" }
}

GET /v1/beam/history

Query message history with filters (sender, recipient, intent, status, date range).

GET /v1/beam/stats

Monitoring statistics: total messages, pending, delivered, acked, failed, per-agent breakdown.

Configuration

| Option | Default | Description | |--------|---------|-------------| | dbPath | ./beam-bus.sqlite | SQLite database path | | directoryUrl | http://localhost:3100 | Beam Directory URL | | identityPath | ./beam-identity.json | Path to Beam identity file | | retryInterval | 30000 | Retry worker interval (ms) | | maxRetries | 5 | Max delivery attempts | | rateLimit | 10 | Messages per minute per sender | | port | 8420 | Server port (standalone mode) |

Architecture

Your Agent ──→ POST /v1/beam/send ──→ Message Bus ──→ Beam Directory ──→ Recipient
                                          │
                                    SQLite Queue
                                    (persistent)
                                          │
                                    Retry Worker
                                    (30s interval)

License

AGPL-3.0-or-later — see LICENSE