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

@bitsteven/hbccli

v0.1.15

Published

Local WebSocket hub + CLI to control the yundijie-trip Chrome extension.

Downloads

1,886

Readme

hbccli

本地 WebSocket Hub + CLI,用于在命令行控制「小云 AI」Chrome 插件。

安装

npm i -g @bitsteven/hbccli@latest

查看 npm 上最新版本

npm view @bitsteven/hbccli 

使用(全局命令 hbc

hbc start   #后台 daemon Hub(推荐)       
hbc stop

hbc open "携程|飞猪"         # 打开网页(中文关键词)
hbc open "<url|关键词>"  # 打开指定链接

hbc get "<url>"  # 默认 hotel
hbc get hotel "<url>" "<url>"   # 多链接(默认并行抓取并汇总)
hbc get flight "<url>"   # 机票:暂未支持

hbc -v|--version
hbc -h|--help|-help

安装 Chrome 插件

hbc get 已支持静默抓取:扩展会在后台打开链接、注入脚本解析并返回结果(不需要打开页面)。

安装插件(开发版)

  1. 在本仓库构建插件产物(生成 dist/)。
  2. 打开 Chrome 扩展管理页:chrome://extensions
  3. 打开右上角「开发者模式」
  4. 点击「加载已解压的扩展程序」,选择本项目的 dist/ 目录
  5. cli 启动后,插件会通过浏览器工具栏图标/角标显示连接标识:绿色(在线)/红色(断开)

打开目标网站并准备好页面状态

  1. 打开并登录对应网站(例如:携程)
  2. 确保浏览器右上角插件图标显示“已连接”(绿色角标)
  3. 直接执行 hbc get hotel <ctripUrl...> 即可后台抓取并返回 JSON

说明

  • hbc get 会连接本机 Hub(默认端口来自环境变量 PORT,否则为 17881
  • 如果 Hub 没启动,hbc get 会自动后台拉起一个 daemon Hub
  • 安装插件后,插件会连接 ws://localhost:$PORT
  • 可接入大模型/机器人(例如“小龙虾”、飞书/企业微信 Bot 等):通过 hbc -h 看命令,再自动调用 hbc get ...;命令行返回数据
  • 小龙虾示例图: 小龙虾示例图1 小龙虾示例图2