Cloudflare Browser Rendering with Puppeteer/Playwright. Use for screenshots, PDFs, web scraping, or encountering rendering errors, timeout issues, memory exceeded.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
cloudflare-browser-rendering
description
Cloudflare Browser Rendering with Puppeteer/Playwright. Use for screenshots, PDFs, web scraping, or encountering rendering errors, timeout issues, memory exceeded.
Cloudflare Browser Rendering provides headless Chromium browsers running on Cloudflare's global network. Use familiar tools like Puppeteer and Playwright to automate browser tasks:
Screenshots - Capture visual snapshots of web pages
PDF Generation - Convert HTML/URLs to PDFs
Web Scraping - Extract content from dynamic websites
Load references/puppeteer-api.md when implementing browser automation, scraping, debugging Puppeteer-specific issues, or needing complete API signatures and method details.
Playwright API Reference
Playwright provides a similar API to Puppeteer with slight differences.
Recommendation: Stick with Puppeteer unless you have existing Playwright tests to migrate.
Session Management
Browser sessions are managed using Durable Objects for state persistence across multiple requests. Sessions support hibernation, automatic cleanup, and concurrent connection handling.
Key Patterns:
Session Reuse - Use puppeteer.sessions() and puppeteer.connect() to reuse browsers
Browser Contexts - Isolate cookies/cache while sharing browser instance
Multiple Tabs - Use tabs (newPage()) instead of multiple browsers for batch operations
Disconnect vs Close - Use disconnect() to keep session alive, close() to terminate
Load references/session-management.md for complete session lifecycle management, hibernation patterns, connection pooling strategies, and production examples.
Common Patterns
6 production-ready browser automation patterns:
Screenshot with KV Caching - Cache screenshots for high-traffic URLs, reduce browser usage
PDF Generation from HTML - Convert custom HTML to PDF for invoices, reports, documents
Web Scraping with Structured Data - Extract product information, prices, content from web pages
Batch Scraping Multiple URLs - Efficiently scrape multiple sites using tabs in single browser
AI-Enhanced Scraping - Combine Browser Rendering with Workers AI for adaptive data extraction
Form Filling and Automation - Automate login flows, form submissions, multi-step workflows
Load references/patterns.md when implementing browser automation patterns, scraping, PDF generation, or needing complete production examples with error handling and optimizations.
Pricing & Limits
Browser Rendering charges based on CPU time (paid plans only). Free tier: 10 minutes/day. Paid tier: 10 hours/month included, then $0.09 per browser hour + $2.00 per concurrent browser above 10.
Load references/pricing-and-limits.md for complete pricing tiers, quota details, rate limiting strategies, and cost optimization techniques.
Known Issues Prevention
This skill prevents 6 documented issues. Top 3 critical errors detailed below: