Quickstarts
Quickstarts are GitHub repos that are designed to be a starting point for building a new Cloudflare Workers project. For the projects below, you simply run:
$ npx wrangler generate <new-project-name> <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.
github-repo-url
- This is the URL of the GitHub repo starter, as below.
Templates
A bare-bones Workers starter project, in JavaScript.
npx wrangler generate my-app cloudflare/worker-template
A bare-bones Workers starter project, in TypeScript.
npx wrangler generate my-app cloudflare/worker-typescript-template
Easily deploy a static site or static assets to Cloudflare’s edge network.
npx wrangler generate my-app cloudflare/worker-sites-template
Run different logic based on the URL and request method. Use this starter to Build REST APIs or apps that require routing logic.
npx wrangler generate my-app cloudflare/worker-template-router
An example Cloudflare Workers project that uses Miniflare for local development, TypeScript, esbuild for bundling, and Jest for testing, with Miniflare's custom Jest environment.
npx wrangler generate my-app mrbbot/miniflare-typescript-esbuild-jest
A complete starter template using Sunder, TypeScript, Miniflare, esbuild, Jest, and Sass. Uses Workers Sites for static assets.
npx wrangler generate my-app sunderjs/sunder-worker-template
Hono is an ultrafast web framework built for Cloudflare Workers. This is a minimal project using Hono, TypeScript, esbuild, Miniflare, and Jest.
npx wrangler generate my-app honojs/hono-minimal
Frameworks
Lightning-fast, globally distributed Apollo GraphQL server, deployed at the edge using Cloudflare Workers.
npx wrangler generate my-app signalnerve/workers-graphql-server
The most flexible, fastest, and lightest GraphQL server for all environments, Cloudflare Workers included.
npx wrangler generate my-app 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.
npx wrangler generate my-app flareact/flareact
Example Projects
Measure download / upload connection speed from the client side, using the Performance Timing API.
npx wrangler generate my-app cloudflare/worker-speedtest-template
Log exceptions and errors in your Workers application to Sentry.io - an error tracking tool
npx wrangler generate my-app bustle/cf-sentry
Retrieve the dominant color of a PNG or JPEG image
npx wrangler generate my-app xtuc/img-color-worker
Serve private AWS bucket files from a Worker script
npx wrangler generate my-app conzorkingkong/cloud-storage
Serve a JavaScript Binary AST via a Cloudflare Worker.
npx wrangler generate my-app xtuc/binast-cf-worker-template
Use AWS services such as DynamoDB and SQS from a Cloudflare Worker
npx wrangler generate my-app cloudflare/workers-aws-template
Use Vite to render pages at the edge with great DX. Includes i18n, markdown support and more.
npx wrangler generate my-app frandiox/vitessedge-template
Build a fast, globally distributed REST API using Cloudflare Workers and Fauna, the data API for modern applications.
npx wrangler generate my-app fauna-labs/fauna-workers
Use a Worker to capture analytics data with Analytics Engine.
npx wrangler generate my-app worker-analytics-engine-forwarder
Other languages
Other languages may require you to install additional tools beyond wrangler. See the README.md file in the project.
A bare-bones starter in Rust.
npx wrangler generate my-app cloudflare/rustwasm-worker-template
A bare-bones starter in Python.
npx wrangler generate my-app cloudflare/python-worker-hello-world
A bare-bones starter in Scala.
npx wrangler generate my-app cloudflare/scala-worker-hello-world
Example usage of Workers KV in Scala.
npx wrangler generate my-app cloudflare/scala-worker-kv
A bare-bones starter in Reason.
npx wrangler generate my-app cloudflare/reason-worker-hello-world
A bare-bones starter in FSharp/Fable.
npx wrangler generate my-app fable-compiler/cfworker-hello-world
A bare-bones starter in Dart.
npx wrangler generate my-app cloudflare/dart-worker-hello-world
A bare-bones starter in Kotlin.
npx wrangler generate my-app cloudflare/kotlin-worker-hello-world
A bare-bones starter in COBOL.
npx wrangler generate my-app cloudflare/cobol-worker-template
A bare-bones starter in Perl.
npx wrangler generate my-app cloudflare/perl-worker-hello-world
A bare-bones starter in PHP.
npx wrangler generate my-app cloudflare/php-worker-hello-world
An image resizer in C compiled to Wasm with Emscripten.
npx wrangler generate my-app cloudflare/worker-emscripten-template
Built with Workers
Get inspiration from other sites and projects out there that were built with Cloudflare Workers.
Built with Workers