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

thresh-bridge

v1.3.2

Published

Thresh AI browser extension local bridge daemon

Readme

thresh-bridge — 让 AI 在你的浏览器里干活

Thresh AI 的本地引擎:把浏览器变成 AI 的工作台。在浏览器侧边栏里与 AI 对话,AI 能真正操作你的浏览器(点击、填表、抓取)、读写本地文件、跑终端命令、执行自动化流程——数据全部留在本机。

它能做什么

你现在用浏览器的方式: 复制粘贴、手动点、手动记。 装上之后:

  • AI 对话:侧边栏聊天即干活——"帮我把这个页面所有商品价格抓下来"、"打开记账表把这周消费记进去",AI 直接操作你正在看的页面
  • 自动化流程:重复操作录制成流程(点选页面元素即可,零代码),以后一键回放
  • 资讯工作台:微博 / 知乎 / 36氪 / 澎湃等 20+ 热榜聚合,站内阅读 + 划选问 AI
  • 终端:侧边栏里的真实终端——AI 改完代码,在这里跑 npm run dev 立刻看效果
  • 应用工坊:描述想法("做个记账台"),AI 生成属于你的网页应用——数据存本地 SQLite,随口迭代("加个饼图")
  • 技能与 MCP:兼容 Claude / OpenClaw 的 SKILL.md 技能生态;接入任意 MCP server(GitHub、数据库……),AI 自动获得新工具
  • 聊天机器人:飞书里直接 @ 你的 AI——发消息就是下任务,AI 用本地引擎 + 你的浏览器干活后回消息(长连接收发,无需公网地址);支持定时推送:cron 到点自动跑「自动化流程抓数据 → AI 汇总成文 → 推送回会话」,每天早报一句话的事

安装

方式一:交给你的 AI 助手(推荐)

把下面这句话发给任何能执行命令的 AI 工具:

帮我安装 thresh-bridge(npm 全局包,需 Node 22+),然后执行 t setup 完成浏览器扩展安装,最后执行 t start 启动服务。

它会自己读懂这个包并完成全部安装。支持的常见客户端:

| 客户端 | 说明 | | --- | --- | | 豆包(桌面版 / 扣子) | 字节系 AI 客户端,支持技能与工具执行 | | Claude Code | Anthropic 官方 CLI,终端里直接发 | | Cursor / Windsurf | IDE 内置 AI,Agent 模式下可执行命令 | | OpenClaw | 开源个人智能体,本地优先 | | 通义千问(代码模式)/ 秘塔等 | 任何能跑 shell 命令的 AI 客户端皆可 |

也可以在 Thresh AI 自己的侧边栏里对 AI 说这句话——它经本地 bridge 执行命令,同样能完成升级维护。

方式二:手动安装

npm i -g thresh-bridge   # 需 Node 22+
t setup                  # 安装浏览器扩展(自动打开扩展页 + 定位目录)
t start                  # 启动服务,扩展自动连接

装好后:浏览器工具栏点 Thresh AI 图标 → 侧边栏即工作台。

日常使用

t start    # 开机后启动(后台守护,日志 ~/.thresh-bridge.log)
t status   # 看运行状态
t stop     # 停止

升级:t upgrade(= 定点安装最新版 + 自动重启,一条命令;升级只换引擎,浏览器扩展无需重装。请勿用 npm update -g——它会重整全局依赖树,若你其他全局包带 git 依赖会连累升级失败)

数据与安全

  • 仅监听 127.0.0.1,数据不出本机
  • AI 的 API key 仅内存转发,不落盘;MCP / IM 密钥存本地文件(600 权限)
  • 聊天机器人默认白名单制:未配置白名单时拒绝所有人,仅显式勾选才放开
  • 应用工坊的 AI 写入经沙箱限制在应用目录内
  • 敏感操作(页面执行脚本)需你在扩展中二次确认(IM 侧一律拒绝,只走安全工具)

数据目录

~/.thresh-bridge/
├── web/           # 应用工坊生成的应用(页面 + SQLite + 项目档案)
├── mcp.json       # MCP 配置(600 权限)
├── channels.json  # 聊天机器人配置——飞书等(600 权限)
├── providers.json # 聊天机器人用的 AI 配置(600 权限)
├── settings.json
└── extension/     # 浏览器扩展(t setup 刷新)