Skip to content

Templates 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:

astro-blog-starter-template

Deploy to Cloudflare

Build a personal website, blog, or portfolio with Astro.

Explore on GitHub ↗

npm create cloudflare@latest -- --template=cloudflare/templates/astro-blog-starter-template



chanfana-openapi-template

Deploy to Cloudflare

Complete backend API template using Hono + Chanfana + D1 + Vitest.

Explore on GitHub ↗

npm create cloudflare@latest -- --template=cloudflare/templates/chanfana-openapi-template



cli

Deploy to Cloudflare

A handy CLI for developing templates.

Explore on GitHub ↗

npm create cloudflare@latest -- --template=cloudflare/templates/cli



containers-template

Deploy to Cloudflare

Build a Container-enabled Worker

Explore on GitHub ↗

npm create cloudflare@latest -- --template=cloudflare/templates/containers-template



d1-starter-sessions-api-template

Deploy to Cloudflare

D1 starter template using the Sessions API for read replication.

Explore on GitHub ↗

npm create cloudflare@latest -- --template=cloudflare/templates/d1-starter-sessions-api-template



d1-template

Deploy to Cloudflare

Cloudflare's native serverless SQL database.

Explore on GitHub ↗

npm create cloudflare@latest -- --template=cloudflare/templates/d1-template



durable-chat-template

Deploy to Cloudflare

Chat with other users in real-time using Durable Objects and PartyKit.

Explore on GitHub ↗

npm create cloudflare@latest -- --template=cloudflare/templates/durable-chat-template



hello-world-do-template

Deploy to Cloudflare

Explore on GitHub ↗

npm create cloudflare@latest -- --template=cloudflare/templates/hello-world-do-template



llm-chat-app-template

Deploy to Cloudflare

A simple chat application powered by Cloudflare Workers AI

Explore on GitHub ↗

npm create cloudflare@latest -- --template=cloudflare/templates/llm-chat-app-template



microfrontend-template

Deploy to Cloudflare

Route requests to different Workers based on path patterns with automatic URL rewriting for unified microfrontend applications.

Explore on GitHub ↗

npm create cloudflare@latest -- --template=cloudflare/templates/microfrontend-template



multiplayer-globe-template

Deploy to Cloudflare

Display website visitor locations in real-time using Durable Objects and PartyKit.

Explore on GitHub ↗

npm create cloudflare@latest -- --template=cloudflare/templates/multiplayer-globe-template



mysql-hyperdrive-template