Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Comprehensive Cloudflare platform skill covering Workers, D1, R2, KV, AI, Durable Objects, and security.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/browser-rendering/README.md
1# Cloudflare Browser Rendering Skill Reference23**Description**: Expert knowledge for Cloudflare Browser Rendering - control headless Chrome on Cloudflare's global network for browser automation, screenshots, PDFs, web scraping, testing, and content generation.45**When to use**: Any task involving Cloudflare Browser Rendering including: taking screenshots, generating PDFs, web scraping, browser automation, testing web applications, extracting structured data, capturing page metrics, or automating browser interactions.67## Decision Tree89### REST API vs Workers Bindings1011**Use REST API when:**12- One-off, stateless tasks (screenshot, PDF, content fetch)13- No Workers infrastructure yet14- Simple integrations from external services15- Need quick prototyping without deployment1617**Use Workers Bindings when:**18- Complex browser automation workflows19- Need session reuse for performance20- Multiple page interactions per request21- Custom scripting and logic required22- Building production applications2324### Puppeteer vs Playwright2526| Feature | Puppeteer | Playwright |27|---------|-----------|------------|28| API Style | Chrome DevTools Protocol | High-level abstractions |29| Selectors | CSS, XPath | CSS, text, role, test-id |30| Best for | Advanced control, CDP access | Quick automation, testing |31| Learning curve | Steeper | Gentler |3233**Use Puppeteer:** Need CDP protocol access, Chrome-specific features, migration from existing Puppeteer code34**Use Playwright:** Modern selector APIs, cross-browser patterns, faster development3536## Tier Limits Summary3738| Limit | Free Tier | Paid Tier |39|-------|-----------|-----------|40| Daily browser time | 10 minutes | Unlimited* |41| Concurrent sessions | 3 | 30 |42| Requests per minute | 6 | 180 |4344*Subject to fair-use policy. See [gotchas.md](gotchas.md) for details.4546## Reading Order4748**New to Browser Rendering:**491. [configuration.md](configuration.md) - Setup and deployment502. [patterns.md](patterns.md) - Common use cases with examples513. [api.md](api.md) - API reference524. [gotchas.md](gotchas.md) - Avoid common pitfalls5354**Specific task:**55- **Setup/deployment** → [configuration.md](configuration.md)56- **API reference/endpoints** → [api.md](api.md)57- **Example code/patterns** → [patterns.md](patterns.md)58- **Debugging/troubleshooting** → [gotchas.md](gotchas.md)5960**REST API users:**61- Start with [api.md](api.md) REST API section62- Check [gotchas.md](gotchas.md) for rate limits6364**Workers users:**65- Start with [configuration.md](configuration.md)66- Review [patterns.md](patterns.md) for session management67- Reference [api.md](api.md) for Workers Bindings6869## In This Reference7071- **[configuration.md](configuration.md)** - Setup, deployment, wrangler config, compatibility72- **[api.md](api.md)** - REST API endpoints + Workers Bindings (Puppeteer/Playwright)73- **[patterns.md](patterns.md)** - Common patterns, use cases, real examples74- **[gotchas.md](gotchas.md)** - Troubleshooting, best practices, tier limits, common errors7576## See Also7778- [Cloudflare Docs](https://developers.cloudflare.com/browser-rendering/)79