Node.js takes JavaScript out of the browser and runs it as a program on a computer. And here’s the honest part first: Node never serves you a page on this site. We use it behind the scenes — and it’s very good at its job.
What it is
Browsers run JavaScript inside a page. Node runs the same language as a standalone tool — reading files, talking to networks, driving other programs. If JavaScript is the language, Node is one of the places it goes to work.
What it does on this site
Node is our test bench and our shipping dock. Our layout matrix — the tool that renders this site at every canonical screen size, from a 320-pixel phone to a 4K TV, and checks the geometry — is a Node program. The deploy tool that publishes this site, Wrangler, is Cloudflare’s own and runs on Node. So do the scripts that recount our lines of code and commits for the ticker up top. Before your phone ever sees a change, Node has already rendered it, measured it, and complained about anything that didn’t fit.
What it’s capable of
Plenty of the web’s servers run on Node, and for good reason — it’s fast, it’s everywhere, and one language can carry a whole project. We chose a different shape: no server of ours to babysit, with Node doing the checking and the shipping instead of the serving. That’s a model worth stealing, too: use each tool where it’s strongest.