Cloudflare Frameworks

Cloudflare Workers run V8 isolates, not Node.js. This changes which frameworks work well on the platform and how you build with them. This guide covers 10 frameworks and approaches for deploying web apps to Cloudflare, from full SSR to static SPAs, with setup commands, binding access patterns, and honest trade-offs.

Overview

  • Platform: Cloudflare Workers (V8 isolates, workerd runtime)
  • Key shift: Cloudflare is migrating from Pages to Workers with Static Assets
  • Infrastructure: The Cloudflare Vite Plugin (@cloudflare/vite-plugin) is the unifying dev story
  • Auto-deploy: npx wrangler deploy auto-detects frameworks, generates config, installs adapters
  • Frameworks covered: React Router v7, Astro, SvelteKit, TanStack Start, Hono, Next.js (OpenNext), Nuxt, Qwik City, SolidStart, Vite+React SPA

Contents

Concepts

Quickstarts

  • React Router v7 - Cloudflare’s favored React framework with CF Vite Plugin
  • Astro - Content-heavy sites with opt-in islands of interactivity
  • SvelteKit - Full-stack Svelte with adapter-cloudflare
  • TanStack Start - Type-safe full-stack React with CF Vite Plugin
  • Hono - Lightweight API-first framework, native to Workers
  • Next.js (OpenNext) - Next.js on Cloudflare via the OpenNext adapter
  • Vite + React SPA - Client-side React app deployed as static assets

Deep Dives

Notes

  • Gotchas - Cross-framework pitfalls, deprecated patterns, and things that will bite you
  • Cloudflare Platform - Workers, D1, R2, KV, Durable Objects, and all the services frameworks deploy to
  • Cloudflare AI - Workers AI, Agents SDK, and AI patterns that pair with these frameworks

Resources