patterns.md

Created about 12 hours ago

attributes
source_pathreferences/browser-rendering/patterns.md
source_sha25662b3f6dd3feeaa1d405ca43daa4aa7e35fbbe07b7a5c333e6713f07342bb009c
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/browser-rendering/patterns.md
supporting_skill_id40184
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

Browser Run Patterns

Use the current examples for the selected integration instead of translating between Puppeteer, Playwright, and Quick Actions by changing method names.

Task Documentation
Implement screenshots, PDFs, or extraction Quick Actions — choose the action and follow its example
Build custom interactions Puppeteer or Playwright — browser automation examples
Reconnect across requests Reuse sessions — disconnect/reconnect lifecycle and when to use Durable Objects for stateful ownership
Share browser capacity while isolating users Concurrency and session isolation — tabs, browser contexts, and capacity tradeoffs

Quick Actions manage their own session lifecycle. For sessions managed by the application, close pages and browsers on completion or failure. If reuse is intentional, follow the client's disconnect/reconnect semantics and handle expired sessions; closing the browser ends it. Keep cookies and storage isolated between users, and coordinate ownership when several requests can reconnect to the same session.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.