GitHub – tinybrowser-dev/tinybrowser:一个用于 AI 代理的小型无头浏览器,单一二进制文件

原标题: GitHub – tinybrowser-dev/tinybrowser: a small headless browser for AI agents in a single binary

Anne Barela · 2026年12月4日 · 约 1 分钟读完

AI 摘要 AI 生成,可能有误

tinybrowser 是一个用 Rust 编写、以单一二进制文件分发的无头浏览器,专为需要加载和交互网页的 AI 代理设计。它支持 Chrome DevTools 协议和 W3C WebDriver,从而兼容 Playwright 和 Selenium 等工具,也可以编译为 WebAssembly。提供 macOS、Linux 和 Windows 的预构建二进制文件,可通过 npm 安装,该项目采用 MIT 许可证但标记为实验性。

核心要点

  • tinybrowser 是一个轻量级、基于 Rust 的无头浏览器,以单一二进制文件形式提供给 AI 代理。
  • 它支持 Chrome DevTools 协议和 W3C WebDriver,因此 Playwright 和 Selenium 可以连接到它。
  • 它可编译为 WebAssembly,从而允许通过在线演示在普通浏览器中运行。
  • macOS、Linux 和 Windows 的二进制文件可在 GitHub Releases 获取,也可从 npm 安装。
  • 该项目采用 MIT 许可证,目前标记为实验性。

tinybrowser is a headless browser written in Rust and shipped as a single binary. A headless browser loads and renders web pages under the control of code rather than a person. It’s aimed at AI agents that need to load pages and act on them.

It speaks the Chrome DevTools Protocol and W3C WebDriver, so Playwright and Selenium can use it. Running the daemon prints its endpoint as JSON, and that URL goes to Playwright to connect. WebDriver Classic uses the same port, and BiDi connects over a websocket.

The browser also compiles to WebAssembly, and the live demo on the project site runs inside a regular browser. Bun, browsers and Workers each use their own loaders.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。