BFF and rendering boundaries
When a BFF is worth building, and how far the server layers of Next.js, Nuxt and SvelteKit should reach.
Why BFF Still Earns Its Keep in 2025
A BFF is not a fashionable layer. It is where you make plain who faces the browser, who faces the backend, and who carries the risk.
A Thin BFF with Fastify
A BFF is a thin translation layer. Fastify v5's schema-driven validation and serialisation hold the boundary, with HMAC signing on downstream calls.
SvelteKit's Default SSR Worldview, and Where It Bites You
SvelteKit's SSR defaults are well-reasoned. They can also grind to a halt the moment your environment stops cooperating.
Two Ways to Wire a BFF: htmx Returns Partials, SvelteKit Goes JSON
One call chain, two front ends: htmx partials for admin tables where state lives on the server, JSON over SvelteKit when the client needs to hold state.
Where Does the HTML Come From: SSR, CSR, SSG, ISR on One Path
Stop memorising acronyms. Ask one question instead: when and where was the HTML the user just received actually generated.
The Framework Server Layer Is Not Your BFF
Keep the framework server layer to browser-facing aggregation; service auth, trust boundaries and risk belong in a standalone BFF, whatever Next or Nuxt can run.
Next.js Server Boundaries: What Stays in the Framework, What Leaves
SSR, SSG, ISR, and RSC each solve a different problem. Sort them out first, then decide what stays in Next and what moves to a standalone BFF.
Nuxt SSR and Nitro: Keeping the Server Boundary Clear
Nuxt SSR and Nitro routes are convenient, but convenience isn't architecture: that layer easily blends browser-facing aggregation with backend-facing risk.
After RFC 10017, the First Reason for a BFF Is Keeping Tokens Out of the Browser
RFC 10017 ranks the BFF first for browser OAuth security because tokens stay on the server. Settle token storage before working on aggregation.