Node.js

Every page here is assembled by a program running on a computer, not in your browser. Node.js is the engine that program runs on. It is JavaScript — the language that normally lives inside web pages — moved out of the browser, so it can read files, talk to the network and answer requests.

Its one big idea is that it never stands still waiting. Picture a single clerk at a counter with no assistant. Instead of finishing one order before taking the next, the clerk hands the slow part — fetching something, waiting for an answer — to somebody else and takes the next customer. When the result comes back it is picked up and finished. That is why one program can hold thousands of open conversations at once without needing a helper for each one.

The cost is the same coin seen from the other side. There is one clerk. If a task occupies it for two seconds, everything waits two seconds, and the machine's other brains do nothing unless the program is written to use them.

The other half of Node.js is npm, a public library of ready-made building blocks. Installing one is a single line; a modest project then carries hundreds of pieces, each maintained by somebody else, each free to change. Locking the versions and pinning the runtime are not paperwork — they are how the thing you tested stays the thing that runs next month.

Here Node.js is the least interesting layer, which is exactly what you want. It runs the Next.js server inside a small container built on Alpine Linux, as an unprivileged user, doing nothing except serving pages and answering a health check. Memory is capped, the log rotates, and if the process stops, the container starts it again.

The lessons were mundane. Pin the version. The tag on a base image is part of your list of dependencies. And a program that starts in a third of a second makes it easy to forget that the container around it does not.