Cloudflare Docs
Workers
Edit this page
Give us feedback
Set theme to dark (⇧+D)

Quickstarts

Quickstarts are GitHub repositories that are designed to be a starting point for building a new Cloudflare Workers project. To start any of the projects below, run:

$ npm create cloudflare@latest <NEW_PROJECT_NAME> -- --template <GITHUB_REPO_URL>
  • new-project-name

    • A folder with this name will be created with your new project inside, pre-configured to your Workers account.
  • template

​​ Example Projects

Run different logic based on the URL and request method. Use this starter to Build REST APIs or applications that require routing logic.
$ npm create cloudflare@latest my-app -- --template cloudflare/workers-sdk/templates/worker-router
Measure download/upload connection speed from the client side, using the Performance Timing API.
$ npm create cloudflare@latest my-app -- --template cloudflare/workers-sdk/templates/worker-speedtest
Log exceptions and errors in your Workers application to Sentry.io - an error tracking tool.
$ npm create cloudflare@latest my-app -- --template mhart/cf-sentry
Retrieve the dominant color of a PNG or JPEG image.
$ npm create cloudflare@latest my-app -- --template xtuc/img-color-worker
Serve private Amazon Web Services (AWS) bucket files from a Worker script.
$ npm create cloudflare@latest my-app -- --template conzorkingkong/cloud-storage
Serve a JavaScript Binary AST via a Cloudflare Worker.
$ npm create cloudflare@latest my-app -- --template xtuc/binast-cf-worker-template
Use AWS services such as DynamoDB and SQS from a Cloudflare Worker.
$ npm create cloudflare@latest my-app -- --template cloudflare/workers-sdk/templates/worker-aws
Use Vite to render pages on Cloudflare's global network with great DX. Includes i18n, markdown support and more.
$ npm create cloudflare@latest my-app -- --template frandiox/vitessedge-template
Build a fast, globally distributed REST API using Cloudflare Workers and Fauna, the data API for modern applications.
$ npm create cloudflare@latest my-app -- --template fauna-labs/fauna-workers
Use a Worker to capture analytics data with Analytics Engine.
$ npm create cloudflare@latest my-app -- --template cloudflare/workers-sdk/templates/worker-analytics-engine-forwarder

​​ Frameworks

Hono is an ultrafast web framework built for Cloudflare Workers. This is a minimal project using Hono, TypeScript, esbuild, Miniflare, and Jest.
$ npm create cloudflare@latest my-app -- --template honojs/hono-minimal
Lightning-fast, globally distributed Apollo GraphQL server, deployed on the Cloudflare global network using Cloudflare Workers.
$ npm create cloudflare@latest my-app -- --template cloudflare/workers-graphql-server
The most flexible, fastest, and lightest GraphQL server for all environments, Cloudflare Workers included.
$ npm create cloudflare@latest my-app -- --template the-guild-org/yoga-cloudflare-workers-template
Flareact is an edge-rendered React framework built for Cloudflare Workers. It features file-based page routing with dynamic page paths and edge-side data fetching APIs.
$ npm create cloudflare@latest my-app -- --template flareact/flareact
Sunder is a minimal and unopinionated framework for Service Workers. This template uses Sunder, TypeScript, Miniflare, esbuild, Jest, and Sass, as well as Workers Sites for static assets.
$ npm create cloudflare@latest my-app -- --template sunderjs/sunder-worker-template

​​ Built with Workers

Get inspiration from other sites and projects out there that were built with Cloudflare Workers.

Built with Workers