Skip to content
项目

关于

Monorepo including libraries and examples for Cloudflare's Browser Run powered by Workers

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Cloudflare Browser Run

This monorepo contains Cloudflare's browser automation libraries for Browser Run.

Packages

Package Description
@cloudflare/puppeteer Puppeteer port for Cloudflare Workers and Browser Run
@cloudflare/playwright Playwright port for Cloudflare Workers and Browser Run
@cloudflare/playwright-mcp Playwright MCP server for Cloudflare Workers and Browser Run

See RELEASING.md for the package release process.

Setup

git submodule update --init
npm ci
npm run build

Upstream Patches

The ports use upstream repositories as Git submodules. Cloudflare-specific changes live in patches under patches/.

Apply all patches:

npm run patch

Regenerate them after changing the submodules:

npm run diff

Route selected browser requests through your Worker

Browser Run RPC bindings accept an outboundByHost map. Each value is a Worker Fetcher created by the caller. Browser Run sends requests for that hostname to the Fetcher, so the request can use the caller's authentication or private network access.

const browser = await puppeteer.launch(env.MYBROWSER, {
  outboundByHost: {
    'app.example.com': ctx.exports.MyApp({props: {}}),
  },
});

Create the Fetcher and launch the browser in the same Worker invocation. The map carries live Worker capabilities and is not supported by URL endpoints or legacy HTTP-only bindings.

More information in the developer docs.

License

Apache-2.0

探索相关项目

加载中…