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

openclaw-bitchat

v0.1.0

Published

OpenClaw channel plugin for Bitchat BLE mesh network

Readme

@openclaw/bitchat

OpenClaw channel plugin for Bitchat BLE mesh network.

⚠️ Alpha Software — This plugin and bitchat-node are experimental. APIs may change without notice.

Overview

This plugin enables OpenClaw to communicate via the Bitchat peer-to-peer BLE mesh network. Messages travel directly between devices over Bluetooth Low Energy without any central server.

Requirements:

  • bitchat-node running as a background service
  • BLE-capable hardware (Mac, Linux with BlueZ, or Windows with BLE support)
  • Other Bitchat peers nearby (iOS app, other nodes)

Installation

openclaw plugins install @openclaw/bitchat

Or for development:

openclaw plugins install -l /path/to/openclaw-bitchat

Configuration

Add to your OpenClaw config (~/.openclaw/openclaw.json):

{
  channels: {
    bitchat: {
      enabled: true,
      nickname: "my-agent",
      bridgeUrl: "http://localhost:3939",
      dmPolicy: "open", // or "allowlist", "disabled"
      allowFrom: [], // peer IDs when using allowlist
    },
  },
}

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | enabled | boolean | true | Enable/disable the channel | | nickname | string | "openclaw" | Display name on the mesh network | | bridgeUrl | string | "http://localhost:3939" | URL of the bitchat-node HTTP bridge | | webhookPath | string | "/bitchat-webhook" | Webhook endpoint for incoming messages | | autoStart | boolean | false | Auto-start bitchat-node daemon | | dmPolicy | string | "open" | DM access policy (open, allowlist, disabled) | | allowFrom | string[] | [] | Allowed peer IDs when using allowlist policy |

Usage

1. Start bitchat-node

First, ensure bitchat-node is running:

cd /path/to/bitchat-node
node dist/bin/bitchat.js --nickname=MyAgent --port=3939

Or run it as a background service.

2. Configure OpenClaw

Add the bitchat channel configuration to your OpenClaw config.

3. Restart OpenClaw Gateway

openclaw gateway restart

4. Test

Send a message from a Bitchat peer (iOS app or another node). OpenClaw will receive it and route it to a session.

To send messages via OpenClaw:

# Via message tool in session
message tool with channel=bitchat, target=<peerID>, message="Hello!"

Architecture

┌─────────────────────┐     ┌──────────────────────┐     ┌─────────────────┐
│   Bitchat Peers     │     │    bitchat-node      │     │    OpenClaw     │
│   (iOS, Android,    │◄───►│    (BLE + HTTP)      │◄───►│    Gateway      │
│    other nodes)     │ BLE │    localhost:3939    │HTTP │    + Plugin     │
└─────────────────────┘     └──────────────────────┘     └─────────────────┘
  1. bitchat-node maintains BLE connections to nearby peers
  2. HTTP Bridge exposes REST API for sending/receiving messages
  3. OpenClaw Plugin polls the bridge or receives webhooks for incoming messages
  4. Outbound messages go through the bridge API to the BLE mesh

API Endpoints (bitchat-node)

The plugin communicates with bitchat-node via these endpoints:

| Endpoint | Method | Description | |----------|--------|-------------| | /api/status | GET | Get node status (peerID, nickname, peer count) | | /api/peers | GET | List connected peers | | /api/messages | GET | Get recent messages (polling, ?since=timestamp) | | /api/send | POST | Send a message ({ type, text, recipientPeerID? }) | | /api/webhook | POST | Register a webhook URL |

Limitations

  • BLE Range: Messages only propagate within BLE range (~10-100m)
  • No Media: BLE bandwidth is limited; text-only messaging
  • No Persistence: Messages are ephemeral; no server-side storage
  • Peer Discovery: Requires active BLE scanning/advertising

Security Considerations

  • Local Only: All communication is local mesh; nothing leaves your network
  • No Encryption for Public: Public messages are unencrypted
  • DM Encryption: Direct messages use Noise protocol encryption
  • DM Policy: Configure dmPolicy and allowFrom to restrict who can message

Development

# Clone and install
git clone https://github.com/wkyleg/openclaw-bitchat.git
cd openclaw-bitchat
npm install

# Build
npm run build

# Link for development
openclaw plugins install -l .

Related

License

Unlicense — Public Domain