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,
workerdruntime) - 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 deployauto-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
- Framework Landscape - The 10 frameworks, how they compare, and when to pick each one
- Cloudflare Platform - Workers vs Pages, the Vite plugin, bindings, and the runtime model
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
- Framework Comparison - Detailed feature matrix, edge-friendliness ranking, and migration paths
- Cloudflare Vite Plugin - How it works, which frameworks use it, and why it matters
Notes
- Gotchas - Cross-framework pitfalls, deprecated patterns, and things that will bite you
Related Topics
- 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
- Cloudflare Workers Framework Guides - Official docs for all supported frameworks
- Cloudflare Vite Plugin - The Vite plugin that powers dev/prod parity
- OpenNext Cloudflare Adapter - Next.js on Cloudflare
- Cloudflare Workers Docs - Platform fundamentals