Node.js
A program that runs JavaScript outside the web browser, used mainly to build servers, command-line tools and back-end services.
In more detail
Node.js combines Google's V8 engine, which runs the JavaScript, with the libuv library, which talks to the operating system for files, networking and timers. Its central idea is non-blocking I/O: one main thread starts slow operations and carries on with other work while they finish. You start a program by typing node followed by a file name, such as node server.js.
Examples
node jit_monomorphism.ts runs a TypeScript file directly: current Node.js versions strip the type annotations before running it.node --versionprocess.versionRelated terms
- JavaScript — The programming language of web browsers, also widely used on servers through Node.js.
- JavaScript action — An action written in JavaScript that the runner executes directly with Node.js, making it the fastest kind to start.
- setup action — An official action such as setup-node or setup-python that installs a chosen language version on the runner.
- CommonJS — Node.js's original module system, which loads code with require() and exports it with module.exports.
- ECMAScript modules — The standard JavaScript module system, written with import and export statements, used by browsers and modern tools.
- NODE_ENV — An environment variable, usually set to production or development, that libraries, frameworks and build tools read to switch behaviour.
- Bun — A fast all-in-one JavaScript toolkit: a runtime that runs JavaScript and TypeScript directly, plus a package manager and test runner.
- AsyncLocalStorage — A Node.js feature that keeps a value available to all code running for one request, even across await and callbacks, without passing it as an argument.
- Node.js runtime — The default Next.js runtime, where server code runs on Node.js with access to every Node API and npm package.
- npm — The package manager that comes with Node.js, plus the public registry where JavaScript packages are published.
- V8 — Google's open-source JavaScript engine, used by Chrome and Node.js to parse, compile and run JavaScript.
- libuv — The C library inside Node.js that runs the event loop, performs asynchronous I/O and manages the thread pool.
- event loop — The central loop of an asynchronous program that waits for events, such as timers firing or data arriving, and runs the matching callbacks.
- language runtime — The software a programming language needs installed to run programs, such as the Python interpreter or Node.js.
- type stripping — Running TypeScript by deleting the type annotations and executing what is left, without checking the types.
- process.env — The object in Node.js that holds the process's environment variables, with every value stored as a string.
Taught in
- Runners: Where Code Executes — Continuous Integration & Continuous Delivery Pipelines
- Workflows, Jobs, Steps, and Actions — Continuous Integration & Continuous Delivery Pipelines
- Component Packaging: Dual ESM/CJS Builds & Package Exports — Design Systems & Component Engineering
- System Governance: Changesets, Semantic Versioning & Deprecation — Design Systems & Component Engineering
- Multi-Tenant Identity: Tenant Isolation & Middleware — Production Full-Stack Engineering
- Distributed Cache Invalidation: Redis & Tagged Purging — Production Full-Stack Engineering
- Structured Logging & Correlation IDs: Context Stitching — Production Full-Stack Engineering
- Health Probes & Graceful Shutdown: Kubernetes Lifecycles — Production Full-Stack Engineering
- Containerization Architecture: Multi-Stage Dockerfiles — Production Full-Stack Engineering
- Server Components: Async Execution & Constraints — Next.js 15 & Modern App Router Architecture
- Server Actions: use server Directives & Mutations — Next.js 15 & Modern App Router Architecture
- Route Handlers: RESTful Endpoints with NextRequest — Next.js 15 & Modern App Router Architecture
- Session Management: Secure Cookies & Token Validation — Next.js 15 & Modern App Router Architecture
- Runtime Environments: Node.js vs Edge Runtime Choice — Next.js 15 & Modern App Router Architecture
- Containerized Deployment: Multi-Stage Docker Builds — Next.js 15 & Modern App Router Architecture
- V8 Engine & JIT Pipeline: Bytecode & Turbofan — Node.js Internals & Backend Services
- libuv Architecture: Event Demultiplexer & Thread Pool — Node.js Internals & Backend Services
- Node.js Process Architecture: Memory & Heap Spaces — Node.js Internals & Backend Services
- Native Module Systems: ESM Loader Hooks vs CommonJS — Node.js Internals & Backend Services
- Runtime Configuration: CLI Flags & Native --env-file — Node.js Internals & Backend Services
- Event Loop Lifecycle: The Six Phases & libuv uv_run — Node.js Internals & Backend Services
- Buffer Fundamentals: Slab Allocator & V8 Memory — Node.js Internals & Backend Services
- Native HTTP Server: Request & Response Lifecycles — Node.js Internals & Backend Services
- Global Error Trapping: uncaughtException & Exits — Node.js Internals & Backend Services
- Production Hardening: Graceful Shutdown & Docker — Node.js Internals & Backend Services
- tsconfig.json: target, lib, strict And NodeNext — Production TypeScript
- Verify Your Environment: Running tsc And Bun TypeScript — Production TypeScript
- ECMAScript Modules, CJS Interop And verbatimModuleSyntax — Production TypeScript
- Declaration Files, Ambient Namespaces And Module Augmentation — Production TypeScript
- The Spine Artifact: Generating Typed Models From OpenAPI — Production TypeScript