Skip to main content

Cloudflare Experiments

A curated collection of experiments demonstrating what developers can build using the Cloudflare platform. The goal of this repository is to showcase real-world developer tools and utilities that run entirely on the Cloudflare edge, often without requiring any backend servers or persistent storage.

What You’ll Find Here

Each experiment is:
  • Small and focused — Single responsibility, demonstrating one Cloudflare capability
  • Independently deployable — Every experiment has its own deploy button
  • Easy to understand — Clear code structure with TypeScript
  • Fast to run — Designed to execute in under 60 seconds
  • Click-to-deploy — One-click deployment to Cloudflare Workers

Platform Capabilities

Every experiment demonstrates practical capabilities of the Cloudflare platform:

Workers AI

Summarization, analysis, and LLM integration

Browser Rendering

Screenshot capture and browser automation

Edge Networking

DNS lookup, monitoring, and geolocation

HTMLRewriter

Web scraping and parsing at the edge

D1 & KV

Edge databases and key-value storage

R2 Storage

Object storage with public and private buckets

Experiment Categories

  • AI Website Summary — Summarize any webpage using Workers AI
  • GitHub Repo Explainer — AI explanation of GitHub repositories
  • AI Bot Visibility — Check if URLs are configured for AI crawlers
  • Cloud AI Proxy — Call Workers AI with any model and prompt from one endpoint
  • Website Metadata Extractor — Extract title, description, Open Graph data
  • Website to API — Turn webpages into structured JSON
  • Website to llms.txt — Convert pages for LLM consumption
  • DevTools Inspector — DevTools-style inspection of websites
  • Dependency Analyzer — Analyze external resources
  • Screenshot API — Capture screenshots from the edge
  • Is It Down — Check if websites are reachable
  • URL DNS Lookup — Get DNS records for any hostname
  • Where Am I — Request metadata and geolocation from the edge
  • R2 Storage — R2 object storage with list/get/put/delete
  • Link Shortener — URL shortener using D1 and KV

Why This Project Exists

Most Cloudflare tutorials show very simple examples (Hello World, basic KV counters, simple fetch). This repository focuses instead on real tools developers would actually want to use. Each experiment is production-ready and demonstrates a complete use case that you can deploy, customize, and learn from.

Read more about the philosophy

Learn about the design principles and goals behind this project

Key Features

Independent Deployments

Every experiment includes a Cloudflare Deploy Button — deploy a single experiment without touching the others

Stateless First

Most experiments use edge compute, fetch, and HTML parsing — no persistent storage required

Single Responsibility

Each experiment demonstrates one specific Cloudflare capability

Edge-First Architecture

Run at Cloudflare’s edge in 300+ cities worldwide

Getting Started

Ready to explore? Start with the Quick Start guide to deploy your first experiment, or browse the experiments by category using the sidebar.
All experiments are open source and licensed under MIT. Fork, customize, and deploy them for your own use cases.