You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A modern, full-stack React application built with TanStack Start and deployed on Cloudflare Workers. This template showcases server functions, middleware, type-safe data fetching, and seamless integration with Cloudflare's edge computing platform.
3
+
A modern, full-stack React application built with TanStack Start and deployed on Cloudflare Workers. This template showcases server functions, middleware, type-safe data fetching, Effect-TS integration, and seamless integration with Cloudflare's edge computing platform.
4
4
5
5
[](https://www.youtube.com/watch?v=TWWS_lo4kOA)
6
6
@@ -179,85 +179,151 @@ The `<TanStackRouterDevtools />` component is not required so you can remove it
179
179
More information on layouts can be found in the [Layouts documentation](https://tanstack.com/router/latest/docs/framework/react/guide/routing-concepts#layouts).
180
180
181
181
182
-
## 🔄 Data Fetching & Server Functions
182
+
## 🔄 Effect-TS Integration
183
183
184
-
This template demonstrates modern server-side patterns with TanStack Start's server functions, middleware, and seamless client integration.
184
+
This template includes Effect-TS integration via a middleware pattern that creates a scoped runtime for each request.
185
185
186
-
### Server Functions with Middleware
186
+
### Effect Runtime Middleware
187
187
188
-
Server functions run exclusively on the server and maintain type safety across network boundaries:
188
+
The `effectRuntimeMiddleware` creates a per-request Effect runtime that provides services to all handlers. The runtime is scoped to the request lifecycle, ensuring proper resource cleanup.
This template includes a live demo showcasing the middleware and server function patterns. Check your server logs when running the demo to see the execution flow!
326
+
This template includes a live demo showcasing the Effect server function patterns. Check your server logs when running the demo to see Effect's structured logging!
261
327
262
328
## 🧪 Testing
263
329
@@ -280,6 +346,7 @@ This template includes the latest and greatest from the React ecosystem:
280
346
-**TanStack Start** - Full-stack React framework with SSR
281
347
-**React 19** - Latest React with concurrent features
282
348
-**TypeScript** - Strict type checking enabled
349
+
-**Effect-TS** - Type-safe functional programming and service composition
0 commit comments