This project demonstrates how to use Cloudflare Browser Rendering to extract web content for LLM context. It includes experiments with the REST API and Workers Binding API, as well as an MCP server implementation that can be used to provide web context to LLMs.
Overview
What is Cloudflare Browser Rendering?
Cloudflare Browser Rendering is a project that demonstrates how to extract web content for LLM context using Cloudflare's Browser Rendering capabilities. It includes experiments with the REST API and Workers Binding API, along with an MCP server implementation.
How to use Cloudflare Browser Rendering?
To use this project, clone the repository, install the necessary dependencies, and set up a Cloudflare Worker with the provided examples. You can run various experiments to fetch and process web content.
Key features of Cloudflare Browser Rendering?
- Integration with Cloudflare's Browser Rendering for web content extraction.
- Support for REST API and Workers Binding API.
- MCP server for processing web content for LLMs.
- Example implementations and utilities for easy setup.
Use cases of Cloudflare Browser Rendering?
- Extracting web content for use in language models.
- Automating web scraping tasks using Cloudflare's infrastructure.
- Providing web context to LLMs for enhanced responses.
FAQ from Cloudflare Browser Rendering?
- What are the prerequisites for using this project?
You need Node.js (v16 or later), a Cloudflare account with Browser Rendering enabled, TypeScript, and Wrangler CLI for deployment.
- Is there a license for this project?
Yes, this project is licensed under the MIT License.
- How can I run the experiments?
You can run the experiments by executing the provided npm scripts for each experiment type.