GUIDES / NODE.JS

Node.js explained: the JavaScript that runs server-side

← All guides
Node.js Intermediate 3 Jun 2026 7 min read by Les Techniciens du Net

Node.js explained: the JavaScript that runs server-side

What Node.js is, why it changed web development, how its non-blocking model works, and when to choose it (or not) over PHP.

#nodejs#javascript#api#real time

In 2009, a developer (Ryan Dahl) had a simple idea with far-reaching consequences: what if we ran JavaScript outside the browser? That is Node.js. Today, it powers a large share of modern web applications.

The original idea

Until then, JavaScript lived only in the browser (to make pages interactive). Node.js takes Chrome’s V8 engine — the one that runs that JavaScript very fast — and pulls it out of the browser to use it server-side.

The result: you can write an entire website, from server to interface, in a single language. For web teams, that’s a huge benefit.

The non-blocking model (the real strength)

Most traditional servers handle requests one by one: if one is waiting on the database, the others wait too.

Node.js works differently, with a non-blocking event loop: while one request waits for a response (database, file, network), Node moves on to the next one. As a result, it handles thousands of simultaneous connections with few resources.

That’s why Node excels at:

  • APIs (which answer many small requests),
  • real time (chat, notifications, games, live dashboards).

The ecosystem: npm

Node comes with npm, the package manager: the largest catalog of libraries in the world. Need a calendar, an authentication system, a payment client? There is almost always a package for it. That’s what makes development fast.

You often add on top of it:

  • a server framework: Express, Fastify, or NestJS;
  • an interface framework: React, Vue, Svelte — sometimes combined into “full-stack” tools like Next.js or Nuxt.

Node vs PHP: two philosophies

PHP (LAMP)Node.js
ExecutionOn every request (starts then finishes)Persistent process (always alive)
StrengthContent management, WordPress ecosystemAPI, real time, full-JavaScript
LanguagePHP server-side, JS client-sideJavaScript everywhere

Neither is “better” in absolute terms: they answer different needs. See also our comparison of static / dynamic / application.

When (not) to choose Node

  • Choose Node for an interactive application, an API, a real-time product, or if your team is already JavaScript.
  • Avoid Node for a simple brochure site: a static site will be simpler, faster and cheaper.

The point isn’t fashion, but the fit between the tool and the need.

Test your knowledge

0 / 5
  1. Node.js lets you use JavaScript…

  2. Node.js's model is described as…

  3. npm is…

  4. Where does Node.js shine in particular?

  5. Key difference with PHP: