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

@ckgworks/openclaw-relay

v0.1.6

Published

OpenClaw Relay channel plugin — connect Relay AI messaging bridge to OpenClaw agents.

Readme

@ckgworks/openclaw-relay

OpenClaw channel plugin for Relay — the AI messaging bridge for CKG Works and Smiling Group apps.

This plugin makes Relay a native messaging channel for OpenClaw agents. Apps send events to Relay, Relay delivers them to your agent via this plugin, and the agent streams responses back in real-time.

How It Works

App (Portal, Flow, etc.)
  → WebSocket → Relay → WebSocket → this plugin → OpenClaw agent
                                                  → token stream → Relay → App

Installation

# Install from npm
openclaw plugins install @ckgworks/openclaw-relay

# Configure via the standard OpenClaw flow
openclaw configure
# → Select "Channels" → Select "Relay" → Enter your rla_ token

Or configure directly:

openclaw channels setup relay

The setup asks for one thing: your rla_ agent token from the Relay Dashboard.

What You Need

  1. A Relay account — request access at relay.ckgworks.com/request-access
  2. An agent registered in the Relay Dashboard (gives you an rla_ token)
  3. OpenClaw installed on your machine

Configuration

After running openclaw channels setup relay, your config will contain:

{
  "channels": {
    "relay": {
      "token": "rla_athena_k9p2m3_..."
    }
  }
}

That's it. The WebSocket URL is hardcoded to wss://api.relay.ckgworks.com/v1/ws/agent.

Environment Variable Override

You can also set the token via environment variable:

export RELAY_TOKEN=rla_athena_k9p2m3_...

Features

  • Persistent WebSocket connection to Relay with auto-reconnect (exponential backoff 1s → 60s)
  • Heartbeat (ping/pong every 30s)
  • Real-time token streaming from agent to app
  • Event payload injected as agent context via before_prompt_build hook
  • Token usage tracking via llm_output hook
  • Final reply sent to Relay on agent_end

Protocol

  • Auth: Query param (?token=rla_...)
  • Inbound: {"type": "event", "event_id", "app_id", "thread_id", "session_key", "payload"}
  • Outbound tokens: {"type": "token", "event_id", "token"}
  • Outbound reply: {"type": "reply", "event_id", "content", "metadata"}
  • Heartbeat: {"type": "ping"} / {"type": "pong"}

Full protocol docs: docs.relay.ckgworks.com

Development

# Clone
git clone [email protected]:ckg-works/relay-ckgworks.git
cd relay-ckgworks

# Install deps
npm install

# Link for local development
openclaw plugins install -l .
openclaw plugins enable relay

# Type check
npx tsc --noEmit

# Run tests
npm test

License

Proprietary — CKG Works