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

x-collect-skill

v2.1.1

Published

X/Twitter topic intelligence skill for Claude Code

Readme


x-collect

npm version license Discord

English | 中文

X/Twitter 话题情报采集工具,Claude Code 专用 Skill。通过 Actionbook 浏览器自动化直接搜索 x.com,抓取真实推文和互动数据。

功能

/x-collect [话题] 打开 x.com,执行 3 轮搜索,提取真实推文数据:

  1. 热门推文 — x.com 搜索 "Top" 标签页,算法排序的高热推文
  2. 24h 趋势推文 — Top 标签页 + min_faves:50 since:昨天,过去 24 小时最热内容
  3. KOL 推文min_faves:100 过滤,只看高互动账号

可选附加轮次:

  1. Hook 研究 — 纯文字推文(-filter:media -filter:links),500+ 赞,用于研究文案模式
  2. 对话引爆点 — 高回复推文(min_replies:30),找到引发讨论的话题

输出:JSONL + Markdown 保存在 ./x-collect-data/,包含账号、推文正文、点赞、转发、回复、浏览量,以及内容机会分析。

前置条件

| 依赖 | 用途 | 必需 | |------|------|------| | Claude Code | 运行环境 | 是 | | Actionbook CLI | 浏览器自动化(actionbook 命令) | 是 | | Actionbook Chrome 扩展 | 控制用户已有的 Chrome 浏览器 | 是 | | 已登录的 X/Twitter 会话 | Chrome 需已登录 x.com | 是 |

安装 Actionbook 扩展

请先按照官方指南完成安装:Actionbook 安装指南

actionbook extension install           # 安装扩展文件
# 然后在 Chrome 中加载未打包扩展 (chrome://extensions)
actionbook extension serve             # 启动桥接(保持运行)

安装

方式 A:Claude Plugin Marketplace(推荐)

claude plugin marketplace add SamCuipogobongo/x-collect
claude plugin install x-collect

方式 B:npm 全局安装

npm install -g x-collect-skill

方式 C:一行脚本

curl -fsSL https://raw.githubusercontent.com/SamCuipogobongo/x-collect/main/install.sh | bash

方式 D:手动安装

git clone https://github.com/SamCuipogobongo/x-collect.git
mkdir -p ~/.claude/skills/x-collect
cp x-collect/SKILL.md ~/.claude/skills/x-collect/

使用

# 在 Claude Code 中(确保 Chrome 已打开并登录 x.com):
/x-collect Claude Code       # 采集 "Claude Code" 话题
/x-collect vibe coding       # 采集 "vibe coding" 话题
/x-collect                    # 交互模式(会询问话题)

输出

数据保存在 ./x-collect-data/

| 文件 | 说明 | |------|------| | intel.jsonl | 每行一条推文 JSON,按 URL 去重 | | intel.md | 格式化报告,含互动数据 + 内容机会分析 |

JSONL 字段

{
  "url": "https://x.com/bcherny/status/123",
  "text": "I'm Boris and I created Claude Code...",
  "intel_type": "viral_post",
  "topic": "Claude Code",
  "account": "@bcherny",
  "display_name": "Boris Cherny",
  "angle": "创始人分享 15+ 并行会话的原始配置",
  "format": "thread",
  "likes": 5800,
  "retweets": 1200,
  "replies": 340,
  "views": 6500000,
  "posted_at": "2026-01-15T10:30:00Z",
  "key_takeaway": "创始人幕后故事 + 实用技巧 = 超高互动",
  "collected": "2026-02-08"
}

情报类型

| 类型 | 来源 | |------|------| | viral_post | x.com 搜索 "Top" 标签页 | | trending_post | Top 标签页 + min_faves:50 since:昨天 | | kol_post | min_faves:100 过滤 | | hook_study | 纯文字推文(-filter:media -filter:links),500+ 赞 | | conversation_starter | 高回复推文(min_replies:30) |

工作原理

通过 Actionbook Extension 模式浏览器自动化:

  1. 控制用户的 Chrome 浏览器(使用已有的 x.com 登录状态)
  2. 导航到 x.com 搜索页(Top 标签页 + 各种过滤条件)
  3. 等待推文加载
  4. 通过 JavaScript 执行提取推文数据
  5. 按推文 URL 去重
  6. 输出 JSONL + Markdown,附带内容机会分析

无需第三方 API,直接通过 Actionbook 浏览器自动化读取 x.com。

社区

问题、反馈或功能建议?加入我们的 Discord

License

MIT