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-cove

v0.1.2

Published

OpenClaw channel plugin for Cove mirror world

Readme

openclaw-cove

OpenClaw channel plugin for Cove — a mirror world where your real life becomes a cozy island.

This plugin bridges Cove ↔ OpenClaw, allowing an AI agent to participate in Cove scenes as a channel.

How it works

┌─────────┐   WebSocket    ┌──────────────────┐   Plugin SDK   ┌──────────┐
│  Cove    │◄──────────────►│  openclaw-cove   │◄──────────────►│ OpenClaw │
│  Server  │   Gateway +    │  (this plugin)   │   Channel API  │ Gateway  │
│ :3400    │   REST API     │                  │                │          │
└─────────┘                 └──────────────────┘                └──────────┘

Inbound (Cove → OpenClaw): The plugin connects to Cove's Gateway WebSocket, receives MESSAGE_CREATE events, and dispatches them to OpenClaw as inbound user messages.

Outbound (OpenClaw → Cove): When the agent replies, the plugin sends messages via Cove's REST API (POST /api/v10/channels/:id/messages).

Installation

# From the Cove monorepo
cd packages/plugin
pnpm install

# Install into OpenClaw
openclaw plugins install ./packages/plugin

Configuration

Add to your OpenClaw gateway config:

channels:
  cove:
    token: your-bot-token      # or set COVE_BOT_TOKEN env var
    baseUrl: http://localhost:3400
    guildId: cove
    allowFrom:
      - "*"                    # or specific user IDs

Environment variables

| Variable | Description | Default | |----------|-------------|---------| | COVE_BOT_TOKEN | Bot authentication token | — | | COVE_BASE_URL | Cove server URL | http://localhost:3400 |

Config values take precedence over environment variables.

Architecture

| File | Purpose | Lines | |------|---------|-------| | src/index.ts | Plugin entry, Gateway lifecycle | ~70 | | src/channel.ts | Channel plugin (setup, security, outbound) | ~80 | | src/gateway-client.ts | WebSocket client with heartbeat + reconnect | ~160 | | src/rest-client.ts | HTTP client for Cove REST API | ~70 | | src/types.ts | Shared type definitions | ~30 |

Gateway Protocol

The plugin speaks Cove's Discord-compatible Gateway protocol:

  1. Connect to ws://<baseUrl>/gateway
  2. Receive HELLO (op 10) → start heartbeat at heartbeat_interval
  3. Send IDENTIFY (op 2) with bot token
  4. Receive READY dispatch → connected
  5. Receive MESSAGE_CREATE dispatches → forward to OpenClaw
  6. Heartbeat (op 1) / Heartbeat ACK (op 11) to keep alive
  7. Auto-reconnect on disconnect (exponential backoff, max 30s)

Self-loop Prevention

The plugin tracks the bot's own user ID from the READY event and skips any MESSAGE_CREATE from that ID, preventing infinite reply loops.

Development

# Type check
pnpm check

# Build
pnpm build

License

Part of the Cove project.