Node.js
Node.js is a free, open-source runtime environment that allows programs written in JavaScript to run outside the browser, on a computer or server.
In plain terms
JavaScript was originally the language of the browser: it was created to bring buttons, menus, and forms on web pages to life. Node.js freed this language from the browser. It is like an actor who could previously only perform in a single theater suddenly being able to perform anywhere: the play is the same, but the stage has changed.
Node.js is therefore not a programming language, nor an application you open and click around in. It is rather an engine running in the background that executes instructions written in JavaScript. It has access to files, the network, and databases – everything that code running in a browser cannot touch for security reasons.
It became important because now the visible part of a website and the server working behind it can be written in a single language. Today, countless developer tools are built on it, including many AI tools. Several coding agents and command-line AI assistants can be installed via npm, for which you must first install Node.js on your computer.
How it works
- The developer writes the program in JavaScript and saves it to a simple text file.
- Node.js runs this code using the V8 engine known from the Google Chrome browser. V8 translates the code into instructions directly executable by the machine on the fly.
- The program's own code runs on a single thread by default, but it does not wait idly. If it starts a slow operation (for example, reading a file or waiting for a response from the internet), it delegates it to the background, works on other tasks meanwhile, and returns when the result arrives.
- Because of this, a Node.js server can handle thousands of connections simultaneously, provided the tasks consist mainly of waiting rather than heavy calculation.
- Missing capabilities can be supplemented from ready-made building blocks, so-called packages. The npm package manager, which comes with Node.js, downloads these with a single command.
An everyday example
You want to try a command-line AI tool, and the first line of the installation guide says: 'Install a supported (LTS) version of Node.js.' You download it from the official site, install it, and then a short command starting with 'npm install' installs the tool on your machine. You do not see Node.js itself, only that the program will not start without it.
Who is affected
A common misconception
Limits and risks
- It is less suitable for heavy, long-running computations (such as processing large data sets or training AI models). In such cases the main thread gets clogged, and this can only be eased by bringing in separate threads or processes.
- Packages available on npm can be uploaded by anyone, so some may be buggy or outright malicious. Malicious code has already been injected into popular packages through compromised accounts, so install only from trusted sources and pay attention to security warnings.
- A Node.js program accesses files and the network on your machine in your name, so do not run code from unknown sources.
- Older major versions eventually stop receiving security updates, so it is advisable to use long-term support (LTS) versions and update regularly.
Similar, but not the same
- JavaScript – JavaScript is the language itself, while Node.js is the environment that runs this language outside the browser.
- npm – npm is the package manager for Node.js, with which you download ready-made building blocks, not the runtime environment itself.
- web browser – The browser also runs JavaScript, but within closed, protected frames for displaying web pages; Node.js has no window, but it can access the computer's files and the network.
Related concepts
Runtime environment, Open-source software, Server-side development
npm, V8 motor
JavaScript, TypeScript, Python, Package manager, Parancssor, coding agent
A brief history
Node.js was created by American developer Ryan Dahl and introduced in 2009, built on the Google Chrome V8 JavaScript engine. The npm package manager (work of Isaac Z. Schlueter) appeared in 2010 and became one of the main drivers of its rapid spread. The project's maintenance moved to the Node.js Foundation in 2015, which merged into the OpenJS Foundation in 2019.
Where things stand
At the end of 2026, Node.js is one of the foundations of web development, maintained as an open-source project by the OpenJS Foundation. There are newer competitors (Deno, Bun), and some AI tools already offer standalone installers. Nevertheless, a very large share of developer and AI tools still builds on Node.js and npm.
Also known as
Node.js · Node · NodeJS · node.js · Node JS · Node.js runtime environment · Node.js runtime
Sources
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.