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

@avatarium/openclaw-plugin

v1.0.0-beta.1

Published

OpenClaw channel plugin for Avatarium - video call your AI avatar

Readme

@avatarium/openclaw-plugin

OpenClaw channel plugin for Avatarium - video call your AI avatar.

Overview

This plugin enables two integration modes:

  1. OpenClaw → Avatar: Send messages from OpenClaw to your Avatarium avatar
  2. Avatar → OpenClaw (External Brain): Your avatar uses OpenClaw as its AI brain

Installation

In OpenClaw

openclaw plugins install @avatarium/openclaw-plugin

Or link locally:

openclaw plugins install ./path/to/avatarium/packages/openclaw-plugin

Configuration

Option 1: OpenClaw as a Channel (Send to Avatar)

Add to your OpenClaw config:

// openclaw.config.ts
export default {
  channels: {
    avatarium: {
      enabled: true,
      shortId: "your-avatar-short-id",  // From avatarium.ai dashboard
      apiUrl: "https://api.avatarium.ai",
    },
  },
};

Then send messages:

openclaw message send --channel avatarium "Hello, avatar!"

Option 2: Avatar Uses OpenClaw Brain (Video Call Mode) 🎥

This is the "video call your AI bot" setup. Your avatar becomes a visual frontend for OpenClaw.

Step 1: Create Avatar with External Brain

  1. Go to dashboard.avatarium.ai
  2. Create or edit an avatar
  3. In Settings → External Brain:
    • Enable "External Brain Mode"
    • URL: https://your-openclaw-gateway.com/api/brain
    • Token: Your OpenClaw API token (optional)

Step 2: Set Up OpenClaw Brain Endpoint

Add this to your OpenClaw config to expose a brain endpoint:

// openclaw.config.ts
export default {
  api: {
    enabled: true,
    endpoints: {
      brain: {
        enabled: true,
        path: "/api/brain",
        // Optional: restrict to specific avatar IPs/tokens
      },
    },
  },
};

Or use the built-in sessions API:

// The avatar can POST to:
// POST /api/sessions/send
// { "message": "user's question", "sessionKey": "avatar-session" }

Step 3: Test the Flow

  1. Open your avatar's consumer page: https://avatarium.ai/a/your-short-id
  2. Speak to the avatar
  3. Avatar sends your message to OpenClaw
  4. OpenClaw responds
  5. Avatar speaks the response

How It Works

┌─────────────────────────────────────────────────────────────┐
│                    Video Call Flow                          │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  User speaks    Avatar STT    External Brain    Avatar TTS  │
│      │              │              │                │       │
│      ▼              ▼              ▼                ▼       │
│  ┌──────┐      ┌──────┐      ┌──────────┐      ┌──────┐    │
│  │ 🎤   │ ───► │ 📝   │ ───► │ OpenClaw │ ───► │ 🔊   │    │
│  │ Mic  │      │ STT  │      │  Brain   │      │ TTS  │    │
│  └──────┘      └──────┘      └──────────┘      └──────┘    │
│                                                             │
│  Browser              Avatarium API           Browser       │
└─────────────────────────────────────────────────────────────┘

Avatar Configuration

For the External Brain to work, your avatar needs these fields set:

| Field | Description | |-------|-------------| | externalBrainEnabled | true to use external brain | | externalBrainUrl | OpenClaw endpoint URL | | externalBrainToken | Auth token (optional) |

These can be set in the Avatarium dashboard under Avatar Settings.

API Reference

External Brain Request (Avatar → OpenClaw)

POST /api/brain
Content-Type: application/json

{
  "message": "What's the weather like?",
  "history": [
    { "role": "user", "content": "Hi" },
    { "role": "assistant", "content": "Hello! How can I help?" }
  ],
  "context": {
    "avatarName": "Luna",
    "systemPrompt": "You are a helpful assistant"
  }
}

External Brain Response

{
  "response": "I don't have real-time weather data, but I can help you find a weather service!"
}

Channel Send (OpenClaw → Avatar)

POST https://api.avatarium.ai/v1/public/avatar/{shortId}/chat
Content-Type: application/json

{
  "message": "Hello from OpenClaw!"
}

Development

# Install dependencies
pnpm install

# Build
pnpm build

# Watch mode
pnpm dev

# Type check
pnpm typecheck

Troubleshooting

Avatar not responding

  1. Check External Brain is enabled in avatar settings
  2. Verify the OpenClaw endpoint URL is correct
  3. Check OpenClaw logs for incoming requests

CORS errors

If testing locally, ensure OpenClaw allows requests from avatarium.ai:

api: {
  cors: {
    origins: ["https://avatarium.ai", "https://dashboard.avatarium.ai"],
  },
}

Authentication errors

If using a token, ensure it matches between avatar config and OpenClaw.

License

MIT