Skip to content
Cloudflare Docs

Templates

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 ↗

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



cli

Deploy to Cloudflare

A handy CLI for developing templates.

Explore on GitHub ↗

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



d1-starter-sessions-api-template

Deploy to Cloudflare

D1 starter template using the Sessions API for read replication.

Explore on GitHub ↗

Terminal window
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 ↗

Terminal window
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 ↗

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



hello-world-do-template

Deploy to Cloudflare

Explore on GitHub ↗

Terminal window
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 ↗

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



multiplayer-globe-template

Deploy to Cloudflare

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

Explore on GitHub ↗

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



mysql-hyperdrive-template

Deploy to Cloudflare

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/mysql-hyperdrive-template



next-starter-template

Deploy to Cloudflare

Build a full-stack web application with Next.js.

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/next-starter-template



openauth-template

Deploy to Cloudflare

Deploy an OpenAuth server on Cloudflare Workers.

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/openauth-template



postgres-hyperdrive-template

Deploy to Cloudflare

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/postgres-hyperdrive-template



r2-explorer-template

Deploy to Cloudflare

A Google Drive Interface for your Cloudflare R2 Buckets!

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/r2-explorer-template



react-postgres-fullstack-template

Deploy to Cloudflare

Deploy your own library of books using Postgres and Workers.

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/react-postgres-fullstack-template



react-router-hono-fullstack-template

Deploy to Cloudflare

A modern full-stack template powered by Cloudflare Workers, using Hono for backend APIs, React Router for frontend routing, and shadcn/ui for beautiful, accessible components styled with Tailwind CSS

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/react-router-hono-fullstack-template



react-router-postgres-ssr-template

Deploy to Cloudflare

Deploy your own library of books using Postgres and Workers.

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/react-router-postgres-ssr-template



react-router-starter-template

Deploy to Cloudflare

Build a full-stack web application with React Router 7.

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/react-router-starter-template



remix-starter-template

Deploy to Cloudflare

Build a full-stack web application with Remix.

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/remix-starter-template



saas-admin-template

Deploy to Cloudflare

Admin dashboard template built with Astro, shadcn/ui, and Cloudflare's developer stack

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/saas-admin-template



text-to-image-template

Deploy to Cloudflare

Generate images based on text prompts.

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/text-to-image-template



to-do-list-kv-template

Deploy to Cloudflare

A simple to-do list app built with Cloudflare Workers Assets and Remix.

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/to-do-list-kv-template



vite-react-template

Deploy to Cloudflare

A template for building a React application with Vite, Hono, and Cloudflare Workers

Explore on GitHub ↗

Terminal window
npm create cloudflare@latest -- --template=cloudflare/templates/vite-react-template




Built with Workers

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

Built with Workers