Introduction to Node.js
Understand what Node.js is, how it works, and build your first HTTP server.
Asynchronous Work
Master the event loop, callbacks, promises, streams, and non-blocking I/O.
Command Line
Run scripts, use the REPL, read environment variables, and handle I/O.
File System
Read, write, and manage files and directories with Node.js built-ins.
HTTP & Networking
Work with HTTP transactions, the Fetch API, WebSockets, and proxies.
Package Management
Use npm, publish packages, and understand ABI stability for native modules.
Diagnostics
Debug, profile, analyze memory, and generate flame graphs.
Security
Apply Node.js security best practices to protect your applications.
Testing
Write tests, mock dependencies, and collect code coverage with the built-in test runner.
TypeScript
Run TypeScript with Node.js — natively, via transpilation, or with ts-node.
What is Node.js?
Node.js is an open-source, cross-platform JavaScript runtime built on the V8 engine that powers Google Chrome. It executes JavaScript outside the browser, enabling server-side development with the same language you use on the frontend. Node.js uses a non-blocking, event-driven architecture that handles thousands of concurrent connections in a single process — without the complexity of thread management.server.js
Install Node.js
Download and install Node.js from nodejs.org.
Learning path
New to Node.js? Work through the guides in order:- Introduction to Node.js — understand the runtime and its unique advantages
- How much JavaScript do you need? — assess your prerequisite knowledge
- Differences from the browser — key distinctions for browser developers
- Asynchronous flow control — the core of effective Node.js programming
- Don’t block the event loop — the most critical rule in Node.js