Home

Awesome

Cloudflare Workers

Cloudflare Workers scripts are Javascript programs that can be run on Cloudflare's edge server, all 120 of them. They are modeled based on Service Workers API and is currently in open beta.

Workers Zoo

This repo is just a collection of my workers when playing with it Cloudflare Workers:

This potentially can be used to monitor availability / performance of your origin server from Cloudflare point of view.

Playing with it

You will need TypeScript compiler to compile the sources. You can install it and other dependencies with

npm install

To build the Workers Javascript files from TypeScript sources:

$ make

To run test:

$ make test

To deploy all scripts to your Cloudflare account:

$ export CF_AUTH_EMAIL=your@email
$ export CF_AUTH_KEY=your_cloudflare_api_key
$ make deploy