Conversation
馃 Changeset detectedLatest commit: 27c19b1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
Thanks for your interest in Cloudflare Computer. This repository does not accept unsolicited pull requests. Please use one of the accepted contribution paths instead:
If a maintainer asked you to open this pull request, they can add the |
scuffi
force-pushed
the
computer/puppeteer-plugin
branch
from
September 17, 2026 15:33
d14c26a to
21a34da
Compare
commit: |
scuffi
force-pushed
the
computer/puppeteer-plugin
branch
from
September 17, 2026 15:42
21a34da to
6aaabd9
Compare
scuffi
force-pushed
the
computer/puppeteer-plugin
branch
from
September 17, 2026 17:04
6aaabd9 to
7951b3d
Compare
Install Cloudflare Puppeteer as a configured Worker JavaScript module and pass the Browser Run binding through the plugin authority boundary. Bound lifecycle helpers keep browser objects inside each isolated execution and close connection-bound sessions reliably. Add a self-hosted browser example that scrapes pages and persists Markdown, JSON, and screenshot artifacts in the durable Workspace. Document setup, security, limits, packaging, and custom plugin authoring.
scuffi
force-pushed
the
computer/puppeteer-plugin
branch
from
September 17, 2026 18:02
7951b3d to
27c19b1
Compare
Collaborator
|
This is awesome, I'd love to keep worker shell backend in similar parity with the js one. What do you think to adding a Where run.js is has a global browser instance: export default async ({ url, browser }) => {
const page = await browser.newPage();
await page.goto(url);
return { title: await page.title() };
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds a public Puppeteer plugin for Computer's Worker JavaScript backend. The plugin bundles Cloudflare's Worker-compatible Puppeteer client, connects it to a Browser Run binding, and keeps
BrowserandPageobjects inside each isolated execution.It exposes bound
launch()andwithBrowser()helpers, keeps plugin bindings separate from caller environment values, and closes connection-bound browser sessions when work completes or an execution is disposed.Usage
Register the plugin on the backend, then import Puppeteer from code executed by Computer:
Browser rendering example
The new self-hosted example accepts a URL and demonstrates scraping, screenshots, page information, and durable browser artifacts. Its research action writes
report.md,page.json, andscreenshot.pngto one Workspace directory from a single isolated execution.The package and architecture documentation cover Browser Run setup, lifecycle, limits, plugin authoring, and the authority granted to browser-enabled backends.