cloudflare-browser

Control headless Chrome in Cloudflare Workers via CDP WebSocket.

6|2|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/charl-kruger/charl --skill cloudflare-browser-charl-kruger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-browser
Source: https://github.com/charl-kruger/charl/tree/main/skills/cloudflare-browser
Command: npx skills add https://github.com/charl-kruger/charl --skill cloudflare-browser-charl-kruger

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ws, and includes scripts (resource) components.

What problem does it solve?

Automates browser rendering tasks inside Cloudflare Workers by controlling headless Chrome via Cloudflare's Browser Rendering CDP WebSocket, enabling test automation, scraping, and media capture at the edge.

Core Features & Use Cases

  • Headless browser control via CDP WebSocket in the edge environment
  • Screenshot, page navigation, basic scraping, and short video capture
  • Works with a configured CDP secret and browser.profiles cdpUrl for secure connectivity
  • Use cases include QA, data gathering, and monitoring at the edge

Quick Start

Run the included scripts to capture a screenshot or generate a video. Use:

  • node /path/to/skills/cloudflare-browser/scripts/screenshot.js https://example.com output.png
  • node /path/to/skills/cloudflare-browser/scripts/video.js "https://site1.com,https://site2.com" output.mp4

Frequently Asked Questions about cloudflare-browser

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control headless Chrome in Cloudflare Workers for browser automation?

You can control headless Chrome in Cloudflare Workers by automating it via the CDP WebSocket protocol to execute page navigation, scraping, and media capture at the edge.

Can I capture screenshots and videos using Cloudflare's Browser Rendering?

Yes, you can capture screenshots and short videos using Cloudflare's Browser Rendering by running provided Node.js scripts that connect to headless Chrome via a CDP WebSocket.

Do I need a CDP secret to run headless Chrome automation in Cloudflare Workers?

Yes, you must configure a CDP_SECRET environment variable and a browser.profiles cdpUrl to establish secure CDP WebSocket connections for headless Chrome automation.

What is the best way to automate web scraping at the edge using Cloudflare Workers?

The best way to automate web scraping at the edge is using Cloudflare's Browser Rendering CDP WebSocket to control headless Chrome directly within your Workers deployment.

Does the ws dependency support WebSocket connections for Cloudflare browser automation?

Yes, the ws dependency supports the WebSocket connections required to interface with Cloudflare's CDP endpoint for executing headless Chrome browser automation tasks.