Deploy an Experiment
The fastest way to get started is using the one-click deploy button. We’ll use the Where Am I experiment as an example.Choose an experiment
Browse the available experiments and pick one to deploy. For this guide, we’ll deploy Where Am I, which returns geolocation data from Cloudflare’s edge.
Authenticate with Cloudflare
If you haven’t already, you’ll be prompted to sign in to your Cloudflare account. The deployment process will automatically:
- Create a new Worker
- Configure the necessary bindings
- Deploy to Cloudflare’s global edge network
Deploy from shrinathsnayak/cloudflare-experiments. To deploy from your own fork, change the owner in the deploy URL.
Test Your Deployment
Once deployed, test your worker using curl or your browser.Where Am I Example
Is It Down Example
Check if a website is reachable from Cloudflare’s edge:Local Development
To modify an experiment or develop locally, clone the repository and run the worker on your machine.Install Dependencies
Start Development Server
http://localhost:8787.
Test Locally
When running locally, the
cf object may be empty or minimal. Full geolocation data appears when deployed to Cloudflare’s edge network.What You Can Build
Each experiment in this collection demonstrates practical capabilities of the Cloudflare platform:- Workers — Edge compute without backend servers
- Workers AI — Run AI models at the edge
- Browser Rendering — Capture screenshots and manipulate web pages
- HTMLRewriter — Transform HTML on the fly
- Edge Networking — Global request/response handling
- D1 — Serverless SQL database
- R2 — Object storage