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

@pipes.bot/pipes-bot-channel

v0.1.12

Published

WhatsApp channel via PipesBot managed proxy (OpenClaw plugin)

Readme

@pipes.bot/pipes-bot-channel

OpenClaw channel plugin that connects WhatsApp messaging through the PipesBot managed proxy.

Overview

This plugin registers a pipes-bot-channel channel in OpenClaw, enabling agents to receive and reply to WhatsApp messages via a persistent WebSocket connection to the PipesBot API.

Supported message types

| Type | Inbound | Outbound | |------|---------|----------| | Text | Yes | Yes | | Image | Yes (downloaded) | - | | Audio | Yes (downloaded) | - | | Video | Yes (downloaded) | - | | Document | Yes (downloaded) | - | | Sticker | Yes (downloaded) | - | | Location | Yes (structured) | - | | Contacts | Yes (vCard) | - | | Reactions | Yes (emoji) | - |

Installation

openclaw plugins install @pipes.bot/pipes-bot-channel

Configuration

In the OpenClaw settings UI, enable the PipesBot channel and provide your API key (starts with pk_).

The channel config schema accepts:

  • apiKey (string) - Your PipesBot API key (pk_...)
  • enabled (boolean) - Whether the channel is active

Architecture

index.ts                 Plugin entry point — registers channel + service
src/
  channel.ts             Channel plugin definition (config, setup, status)
  service.ts             Service lifecycle — connects WebSocket, routes messages
  connection.ts          WebSocket client with heartbeat + exponential backoff reconnection
  inbound.ts             Inbound message pipeline (type resolution, media, routing, dispatch)
  outbound.ts            Outbound reply tracking + reply_status handling
  media.ts               Media download via PipesBot API (follows R2 redirects)
  types.ts               TypeScript types and type guards for PipesBot message envelopes
  config-schema.ts       Zod schema for channel config
  runtime.ts             Singleton runtime context
  status-store.ts        In-memory connection status state

Message flow

  1. WebSocket connectionPipesBotConnection connects to wss://api.pipes.bot/ws with the API key, maintains a ping/pong heartbeat (25s interval), and reconnects with exponential backoff (1s-2min cap) on transient failures.

  2. Message routing — The service receives JSON messages from the WebSocket and routes them by type: whatsapp_message goes to handleInbound(), reply_status goes to handleReplyStatus().

  3. Inbound processinghandleInbound() validates the message, resolves body text, downloads media if present, converts contacts to vCard, normalizes location data, resolves the agent route, records the session, and dispatches to the agent pipeline.

  4. Agent dispatch — The agent processes the message and produces a reply, which is sent back through the WebSocket as a whatsapp_reply message.

  5. Reply tracking — Outbound replies are tracked with a 30s TTL for correlation with reply_status events. Failures are classified (e.g., SERVICE_WINDOW_EXPIRED, RATE_LIMITED) and surfaced as agent-facing system events when relevant.

Connection resilience

  • Auth failures (401/403) stop reconnection permanently
  • Transient failures trigger exponential backoff with jitter
  • Pong timeout (50s) terminates dead connections to trigger reconnect
  • Graceful disconnect tears down timers and WebSocket cleanly

Development

# Type-check
npx tsc --noEmit

License

MIT