cloudflare/puppeteer ? reverse-engineered prompt

Reverse engineered prompt

Build me a Cloudflare friendly version of Puppeteer that works with Browser Run in Workers.

I want it to feel as close to normal Puppeteer Core as possible, but trimmed down so it stays small and practical for Worker projects. It should let me launch a browser, open pages, navigate, click, type, and use the usual Puppeteer style API without a bunch of extra setup. Make sure it uses Cloudflare Browser Run properly, and keep the experience smooth for Worker code.

It should also support routing selected browser requests through my Worker when I pass a host map, so I can use my own auth or private network access for certain domains. If the latest Browser Run support has full CDP available, use that approach internally and make sure the package still behaves like a normal Puppeteer library.

If anything is unclear, look up the current Cloudflare Browser Run docs online and follow the expected Worker patterns.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab