Architecture
Edge rendering without a framework tax
A short note on keeping Workers inspectable and fast.
Native Fragments keeps the rendering contract small. Routes return HTML, the shell wraps it, and browser modules hydrate only the islands that actually need behavior. Nothing else has to ship to the client.
That shape leaves the deployed Worker easy to inspect. There is no compiler output to reverse engineer and no hidden client runtime to chase through a sourcemap.
The contract you can read
A request comes in, a route produces a string of HTML, and the platform streams it back. You can open the response in a browser, read it top to bottom, and know exactly what was sent.
route("/:slug", {
render: ({ params }) => html`<article>…</article>`,
});The best rendering layer is the one you can hold entirely in your head.
When the markup is the artifact, debugging is reading. That is the whole pitch, and it holds up surprisingly far into a real application.