Frontend, BFF and rendering
When a BFF is worth it, where HTML gets made, and how far Svelte, Next.js, Nuxt and htmx should reach.
Why my Chinese OG images turned to tofu: satori, same-name fonts and download order
CJK subsets shared a name, weight and style; satori 0.26.0 selected the first to settle. Local font slices with distinct names fixed the tofu. A reproduction is included.
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.
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.
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.
Svelte as a Mirror for the Frontend, Not an Idol
Svelte holds DOM intuition, HTML-first structure and an explicit server boundary together, which makes it a reference for judging front-end tools, not an idol.
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.
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.
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.
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.
Svelte 5 Runes: Reactivity Out in the Open
Svelte 5 runes swap compiler-guessed reactivity for explicit reactive primitives. You trade a bit of memorisation for predictability.
HTML-first or SPA: Reset the Default, Skip the Holy War
The test is where state lives and whether interaction swaps content or drives local state; default to HTML-first and upgrade to the client only when you must.
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.
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.
Interactions as HTTP: What htmx Gets Right
htmx reduces interactivity to request/response, keeps state on the server, and asks whether you actually needed a SPA in the first place.
Markup First: Describe the Structure, Then the Behaviour
Rather than starting from framework components, describe the structure in HTML first and let behaviour be a thin layer on top.
The Event Loop Is Not Multithreading: The Most Common Concurrency Misconception in Node.js
Node's non-blocking I/O looks like parallel execution, but it runs on a single-threaded event loop, and that difference bites hard once work turns CPU-heavy.
"It Builds" Is Not the Same as Well-Designed
A passing build only proves the toolchain config is not contradicting itself; it says nothing about whether the design is sound.
Types Are Not Safety
TypeScript's type system is a tool for thinking through your data and your boundaries, not a way to buy a feeling of safety.