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-zalo-mod

v2.0.0

Published

Zero-token Zalo group moderation plugin for OpenClaw — slash commands, anti-spam, warn system, and memory integration.

Readme

🛡️ zalo-mod — Plugin Quản Lý Nhóm Zalo Không Tốn Token

Plugin runtime OpenClaw dành cho quản trị nhóm Zalo. Xử lý moderation, slash commands, anti-spam hoàn toàn miễn phí token LLM. Chỉ chuyển câu hỏi @mention lên AI agent.

License: MIT OpenClaw Plugin

🇬🇧 English Version

🛡️ zalo-mod — Plugin Quản Lý Nhóm Zalo Không Tốn Token

Plugin runtime OpenClaw dành cho quản trị nhóm Zalo. Xử lý moderation, slash commands, anti-spam hoàn toàn miễn phí token LLM. Chỉ chuyển câu hỏi @mention lên AI agent.

License: MIT OpenClaw Plugin

🇬🇧 English Version


✨ Tính Năng

| Tính năng | Chi phí token | Mô tả | |-----------|--------------|-------| | Slash Commands | 0 | /noi-quy, /menu, /huong-dan, /report, /rules | | Hệ thống Warn | 0 | /warn @name [lý do] — theo dõi cảnh cáo từng member | | Chống Spam | 0 | Tự detect tin lặp, link spam, emoji flood | | Ghi chú Admin | 0 | /note [text] — chỉ admin dùng | | Đồng bộ Memory | 0 | /memory — lưu digest vào skills/memory/ | | Auto trả lời | 0 | Tự trả lời "ai bị warn?" "vi phạm?" từ dữ liệu local | | @Mention | ✅ có token | Chỉ forward lên LLM khi hỏi thật |

🏗️ Kiến Trúc

Tin nhắn Zalo đến
    │
    ├─ /lệnh slash        → Plugin xử lý local (0 token)
    ├─ Phát hiện spam     → Log + chặn im lặng (0 token)
    ├─ "Ai bị warn?"      → Plugin trả lời từ store (0 token)
    │
    └─ @TênBot câu hỏi   → Forward lên LLM agent (tốn token)

📦 Cài Đặt

Từ ClawHub

openclaw plugins install clawhub:openclaw-zalo-mod

Từ npm

openclaw plugins install openclaw-zalo-mod

Thủ công

  1. Copy plugin vào thư mục extensions/:
# Windows
xcopy /E /I openclaw-zalo-mod %OPENCLAW_HOME%\extensions\zalo-mod

# Linux / macOS
cp -r openclaw-zalo-mod ~/.openclaw/extensions/zalo-mod
  1. Chạy script setup tự động (⭐ khuyên dùng):
cd ~/.openclaw/extensions/zalo-mod
node setup.js

Script sẽ:

  • ✅ Tự detect thư mục .openclaw
  • ✅ Hỏi tên nhóm, tên bot, Zalo display names, admin IDs
  • ✅ Tự detect Docker hay Native để đặt đúng đường dẫn
  • ✅ Backup openclaw.json trước khi sửa
  • ✅ Tự thêm config plugin vào openclaw.json
  • ✅ Tạo thư mục data/ cho plugin

💡 Tip: Nếu script không tìm thấy .openclaw, hãy chỉ đường dẫn:

node setup.js --openclaw-home "D:\bot\.openclaw"

💡 Non-interactive mode (dùng config mặc định):

node setup.js --non-interactive

🐳 Docker Compose: với Windows bind mount, Docker thường báo file plugin là mode=777, OpenClaw sẽ không load plugin. Cách ổn định nhất là COPY plugin vào image/container filesystem rồi chmod 755.

services:
  ai-bot:
    build:
      context: D:/bot
      dockerfile: docker/openclaw/Dockerfile
    volumes:
      - D:/bot/.openclaw:/root/project/.openclaw

Thêm vào Dockerfile:

COPY extensions/zalo-mod /opt/openclaw/extensions/zalo-mod
RUN chmod -R 755 /opt/openclaw/extensions/zalo-mod \
  && mkdir -p /opt/openclaw/extensions/zalo-mod/node_modules \
  && ln -s /usr/local/lib/node_modules/openclaw /opt/openclaw/extensions/zalo-mod/node_modules/openclaw

Chạy setup:

node setup.js --openclaw-home "D:\bot\.openclaw" --install-path "/opt/openclaw/extensions/zalo-mod"

Khi đó setup sẽ ghi plugins.load.paths: ["/opt/openclaw/extensions/zalo-mod"]. Đây là cơ chế discovery chính thức cho local plugin path; không nên tự ghi tay plugins.installs. Nếu đã từng copy plugin vào .openclaw/extensions/zalo-mod, hãy xóa hoặc đổi tên thư mục cũ đó; chỉ cần thư mục tồn tại là OpenClaw vẫn tự quét và log warning.

  1. Khởi động lại gateway: |------|------------| | Tin lặp | Cùng nội dung gửi N lần trong cửa sổ thời gian | | Link Spam | Tin chứa URL đáng ngờ (bit.ly, tinyurl, affiliate links) | | Emoji Flood | Tin có 5+ emoji liên tiếp |

Vi phạm được log vào store và sync vào violations.md.

🤖 Auto Trả Lời Thông Minh

Khi ai đó @mention bot với câu hỏi quản lý nhóm, zalo-mod trả lời trực tiếp từ store — không tốn token LLM:

| Pattern câu hỏi | Nguồn dữ liệu | |-----------------|---------------| | "Ai bị warn?" / "Danh sách warn" | store.getWarned() | | "Vi phạm?" / "Violations?" | store.getViolations() | | "Admin là ai?" | Config response |

Tất cả câu hỏi @mention khác được forward lên LLM agent.

🔧 Yêu Cầu

  • OpenClaw >= 2026.3.24
  • Channel zalouser đã cấu hình và xác thực
  • Node.js >= 20

📄 Giấy Phép

MIT — xem LICENSE