Architectural Overview & Core Mechanics
When architecting high-throughput edge web applications, latency isn't just a metric—it directly governs user retention and conversion. By compiling React 19 Server Components directly into Cloudflare Worker V8 isolates, vinext eliminates the traditional cold-start tax while retaining complete developer ergonomics.
V8 isolates initialize in under 5 milliseconds and occupy merely a few megabytes of memory, allowing 100x higher concurrency density compared to traditional containerized Node.js runtimes.
Configuration & Setup
Configuring the edge adapter inside your Vite project requires only a few lines in vite.config.ts:
import { defineConfig } from "vite";
import vinext from "vinext";
import { cloudflare } from "@cloudflare/vite-plugin";
import { cdnAdapter } from "@vinext/cloudflare/cache/cdn-adapter";
export default defineConfig({
plugins: [
vinext({
cache: { cdn: cdnAdapter() },
images: { optimizer: true },
}),
cloudflare({
viteEnvironment: {
name: "rsc",
childEnvironments: ["ssr"],
},
}),
],
});Streaming Flight Protocol in Production
With streaming server components, HTML shells render instantly in the browser while dynamic database queries resolve asynchronously in the background. The Flight protocol pushes incremental React virtual DOM instructions over HTTP/2 and HTTP/3 multiplexed streams.
- Zero Client Bundle Size: Server components never leak utility libraries (e.g. Markdown parsers, database drivers) to the browser.
- Instant Global Cache Invalidation: Programmatic tag-based revalidation clears edge caches across all 330+ locations simultaneously.
- Co-located Edge KV: Retrieve session states and feature flags in <1ms.