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

@creatoraris/openclaw-qq

v0.2.0

Published

QQ channel plugin for OpenClaw via NapCat (OneBot v11)

Readme

OpenClaw QQ Plugin

QQ channel plugin for OpenClaw via NapCat (OneBot v11).

npm version License: MIT Node.js GitHub stars GitHub last commit

中文文档

Features

  • Private chat and group chat support
  • Group chat triggered by @mention
  • Image message support (auto download for AI analysis)
  • Context reset (/reset)
  • Auto message deduplication
  • User/group allowlist
  • Optional HTTP endpoint for proactive messaging
  • Runs as an OpenClaw plugin, auto start/stop with Gateway

Prerequisites

  • OpenClaw installed and running
  • Node.js >= 18.0.0
  • NapCat installed with OneBot v11 WebSocket enabled
  • A QQ account for the bot

Quick Start

Step 1: Set up NapCat

Follow the NapCat documentation to install and log in with your QQ account.

Make sure OneBot v11 forward WebSocket is enabled. Note down:

  • WebSocket URL (e.g. ws://127.0.0.1:3001)
  • access_token (if configured)

Step 2: Install Plugin

openclaw plugins install @creatoraris/openclaw-qq

Note: You may see a security warning Plugin contains dangerous code patterns: Environment variable access combined with network send during installation. This is expected — the plugin needs network access to connect to NapCat WebSocket. Safe to ignore.

Step 3: Configure

Edit ~/.openclaw/openclaw.json, add to plugins.entries:

{
  "plugins": {
    "entries": {
      "openclaw-qq": {
        "enabled": true,
        "config": {
          "napcatWs": "ws://127.0.0.1:3001",
          "napcatToken": "your_napcat_token",
          "botQQ": "123456789",
          "allowedUsers": ["111111111"],
          "allowedGroups": []
        }
      }
    }
  }
}

Important: The plugin won't start without napcatWs configured. Check logs for qq: missing napcatWs, plugin disabled.

Step 4: Restart OpenClaw

systemctl --user restart openclaw-gateway

Step 5: Test

Send a private message to the bot on QQ. You should receive an AI reply.

Configuration

| Parameter | Required | Default | Description | |-----------|----------|---------|-------------| | napcatWs | Yes | - | NapCat OneBot v11 WebSocket URL | | napcatToken | No | "" | NapCat access_token | | botQQ | No | "" | Bot's QQ number (for filtering self-messages in groups) | | allowedUsers | No | [] | Allowed QQ user IDs for private chat. Empty = allow all | | allowedGroups | No | [] | Allowed group IDs. Empty = groups disabled | | port | No | 0 | HTTP port for proactive /send endpoint. 0 = disabled |

Commands

| Command | Description | |---------|-------------| | /reset | Reset conversation context |

Group Chat

  1. Add group IDs to allowedGroups
  2. Set botQQ to the bot's QQ number
  3. @mention the bot in group to trigger a reply

Proactive Messaging

Enable the port config to use the HTTP endpoint:

# Private message
curl -X POST http://127.0.0.1:<port>/send \
  -H 'Content-Type: application/json' \
  -d '{"userId": "111111111", "text": "Hello"}'

# Group message
curl -X POST http://127.0.0.1:<port>/send \
  -H 'Content-Type: application/json' \
  -d '{"groupId": "222222222", "text": "Hello"}'

Architecture

QQ Client -> QQ Server -> NapCat (OneBot v11) -> Plugin (WebSocket) -> OpenClaw Gateway -> AI Model

Troubleshooting

View logs:

journalctl --user -u openclaw-gateway -f

Common issues:

  • Security warning on install: Plugin contains dangerous code patterns is expected, safe to ignore
  • Plugin not starting / missing napcatWs: Check napcatWs is configured in openclaw.json
  • Duplicate replies: Only one client should connect to NapCat at a time. Check for duplicate processes
  • NapCat connection failed: Verify NapCat is running and WebSocket URL/token are correct
  • No reply in group: Ensure group ID is in allowedGroups and bot is @mentioned
  • No reply in private chat: Ensure QQ ID is in allowedUsers (or leave empty to allow all)

License

MIT