Skip to content
Codeloom

Topics / Node.js

Node.js

JavaScript on the server. APIs, streams, and the npm ecosystem.

Why learn Node.js?

  • Lets you ship full-stack apps in one language.

  • Excellent at I/O-bound workloads (APIs, proxies, sockets).

  • The largest package ecosystem in the world via npm.

  • Powers most modern JavaScript tooling.

What you can build with Node.js

REST and GraphQL APIs Real-time apps via WebSockets CLI tools and build tooling Serverless functions on Vercel, Lambda, etc.

Node.js tutorials

39 articles · page 1 of 2

Hand-written tutorials, ordered as a recommended learning path.

  1. 01 What Is Node.js? A clear introduction to Node.js — the V8 engine, the event loop, non-blocking I/O, the npm ecosystem, and when Node is the right runtime for your project.
  2. 02 Install & First Script A practical guide to installing Node.js with nvm on macOS, Linux, and Windows — checking versions, running .js files, and using the REPL for quick experiments.
  3. 03 CommonJS vs ESM A practical comparison of CommonJS and ES Modules in Node — require vs import, module.exports vs export, the type field in package.json, and the interop traps to avoid.
  4. 04 npm & package.json A practical tour of npm and package.json — npm init, dependencies vs devDependencies, scripts, the lockfile, semver basics, and the difference between npm install and npx.
  5. 05 fs & path A practical guide to file I/O in Node — fs/promises vs callback vs sync, path.join for safe paths, and how to find the current file with __dirname or import.meta.url.
  6. 06 Express First API A hands-on tutorial — install Express, define GET/POST/PUT/DELETE routes, parse JSON bodies, use route params, and return proper status codes for an in-memory todos API.
  7. 07 Node.js vs Deno vs Bun Compare Node.js, Deno, and Bun on performance, security, compatibility, and developer experience. Choose the right JavaScript runtime for 2026.
  8. 08 Graceful Shutdown Implement graceful shutdown in backend services. Covers signal handling, draining connections, health check coordination, and timeout strategies.
  9. 09 Cluster Module Scaling Scale your Node.js application across all CPU cores using the cluster module. Covers load balancing, zero-downtime restarts, and production patterns.
  10. 10 Corepack Guide Use Corepack to enforce consistent package manager versions across your team. Covers setup, configuration, and CI integration.
  11. 11 Diagnostics Channel Use the diagnostics_channel API to add zero-overhead observability to your Node.js applications without modifying library code.
  12. 12 Native Test Runner Guide Learn how to use the native Node.js test runner with no external dependencies. Covers test organization, mocking, snapshots, and code coverage.
  13. 13 Permission Model Use the Node.js permission model to restrict file system, network, and child process access for secure application sandboxing.
  14. 14 Single Executable Apps Bundle your Node.js application into a single executable binary with no runtime dependency. Covers the SEA workflow and production tips.
  15. 15 Streams & Backpressure Understand how Node.js streams work and how to handle backpressure correctly to avoid memory leaks and data loss.
  16. 16 Worker Threads Guide Master worker threads in Node.js to offload CPU-heavy operations. Covers thread pools, SharedArrayBuffer, and real-world patterns.
  17. 17 Structured Logging Set up fast structured logging in Node.js using Pino. Covers log levels, child loggers, request tracing, and production configuration.
  18. 18 Node.js Clustering Scale Node.js applications across CPU cores with the cluster module. Covers worker management, load balancing, zero-downtime restarts, and PM2.
  19. 19 Event Emitters Understand the EventEmitter pattern in Node.js. Covers custom emitters, error handling, async events, memory leaks, and real-world patterns.
  20. 20 Native Test Runner Learn to write tests with Node.js built-in test runner. Covers test organization, assertions, mocking, subtests, code coverage, and watch mode.