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

@jobmatchme/bee-worker-sidecar

v0.1.2

Published

NATS to Unix socket bridge for Bee Dance speaking workers

Readme

@jobmatchme/bee-worker-sidecar

bee-worker-sidecar bridges Bee Dance speaking workers on a local Unix socket to Bee Dance subjects on NATS.

It is designed for deployments where the actual agent process should stay small and local to the pod, while the surrounding system communicates over NATS. The sidecar does not implement agent behavior itself. It only adapts transports.

What this package does

  • subscribes to Bee Dance protocol and command subjects on NATS
  • forwards Bee Dance envelopes to a local worker socket using framed JSON
  • forwards worker event envelopes back to NATS session event subjects
  • keeps reconnecting until the worker socket becomes available
  • keeps the public Bee Dance transport separate from the worker runtime

Design intent

This package exists for the common case where an agent can speak Bee Dance, but should not know about NATS directly.

That split has a few practical benefits:

  • the worker can focus on local execution and protocol semantics
  • the sidecar can own NATS connection management and subject routing
  • deployments can keep the familiar two-container pod shape
  • later agents that speak Bee Dance natively over NATS can skip the sidecar without changing Bee-facing clients

Wire model

The sidecar expects the following NATS subjects for a worker subject root such as bee.agent.pi.default:

  • bee.agent.pi.default.protocol
  • bee.agent.pi.default.command
  • bee.agent.pi.default.session.<sessionId>.event

On the local socket, the sidecar exchanges framed Bee Dance envelopes with the worker. A protocol.hello received on NATS is forwarded to the worker socket and the resulting protocol.welcome is sent back over the NATS reply subject. Command envelopes are forwarded one-way, while worker event envelopes are published to the session event subject.

Configuration

The process reads its configuration from BEE_WORKER_SIDECAR_CONFIG.

Example:

{
  "nats": {
    "servers": "nats://nats:4222",
    "name": "bee-worker-sidecar"
  },
  "workerSubject": "bee.agent.pi.default",
  "worker": {
    "socketPath": "/var/run/bee/worker.sock",
    "requestTimeoutMs": 10000,
    "connectRetryMs": 250,
    "maxConnectRetryMs": 5000
  }
}

Publishing

The package is intended for public npm publication from GitHub Actions using npm Trusted Publishing via GitHub OIDC.

Container image

A Dockerfile is included for runtime image builds. Build it locally with:

docker build -t bee-worker-sidecar:local .

Run it with a mounted config file:

docker run --rm \
  -v "$(pwd)/config.json:/config/config.json:ro" \
  bee-worker-sidecar:local

The container entrypoint expects BEE_WORKER_SIDECAR_CONFIG=/config/config.json.

License

MIT