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

@shun83914/comments-agent

v1.0.0

Published

自媒体评论区智能运营工具 — 抓评论、AI分析、自动回复、私信、线索提取

Readme

Comments Agent - 评论区智能运营工具

自媒体运营者的评论区 AI 分析工具 基于 OpenClaw + CloakBrowser + LLM

系统架构

┌─────────────────────────────────────────────────┐
│              comments-agent CLI                  │
│  scrape → analyze → report                      │
├─────────────────────────────────────────────────┤
│  puppeteer-core + CloakBrowser (浏览器自动化)    │
├─────────────────────────────────────────────────┤
│  OpenAI / DeepSeek / Ollama (AI 分析)            │
├─────────────────────────────────────────────────┤
│  HTML 报告 + JSON 数据                           │
└─────────────────────────────────────────────────┘

快速开始

1. 安装依赖

cd comments-agent
npm install

2. 配置

# 生成配置文件
node bin/comments-agent config --init

# 编辑配置文件,填入 LLM API Key
vim comments-agent.yaml

3. 安装 CloakBrowser(推荐)

npx cloakbrowser

或者直接用系统 Chrome,在配置文件中修改 browser.executablePath

4. 运行

# 全流程:抓取 → 分析 → 报告
node bin/comments-agent run --url https://channels.weixin.qq.com/...

# 只抓取评论
node bin/comments-agent scrape --platform videoChannel

# 分析已有数据
node bin/comments-agent analyze -i ./reports/raw-xxx.json

Mac Mini 部署指南

推荐方案

# 1. 克隆项目
git clone <你的仓库> ~/comments-agent
cd ~/comments-agent

# 2. 安装依赖
npm install

# 3. 安装 CloakBrowser
npx cloakbrowser

# 4. 配置
cp config/default.yaml comments-agent.yaml
# 编辑 comments-agent.yaml,填入 LLM API Key

# 5. 测试运行
node bin/comments-agent run

# 6. 设置定时任务(每天自动分析)
# 编辑 crontab
crontab -e
# 每天 9 点运行
0 9 * * * cd ~/comments-agent && node bin/comments-agent run >> ./logs/cron.log 2>&1

配置文件说明

llm:
  apiKey: "sk-xxx"           # 你的 API Key
  baseUrl: "https://api.deepseek.com"  # 或 OpenAI / Ollama
  model: "deepseek-chat"     # 或 gpt-4o-mini(省钱)

browser:
  executablePath: "/usr/local/bin/cloakbrowser/chrome"  # CloakBrowser 路径
  headless: true              # Mac Mini 上建议 true

报告示例

生成在 reports/ 目录下:

  • raw-xxx.json — 原始评论数据
  • analysis-xxx.json — AI 分析结果
  • analysis-xxx.html — 可视化报告(浏览器直接打开)

技术选型理由

| 组件 | 选型 | 原因 | |------|------|------| | 浏览器引擎 | CloakBrowser | 58 个指纹补丁,防抖音检测 | | 浏览器控制 | puppeteer-core | 直接操控 CDP,轻量无依赖 | | AI 分析 | OpenAI 兼容 API | 用户自备 Key,灵活切换模型 | | UI 报告 | 纯 HTML | 无需服务端,本地直接打开 |