Search lands in PR-5.1 (Pagefind).

COURSE · 1 OF 6

Node.js from first principles

Server-side JavaScript from V8 internals up through production patterns. Designed for engineers who already know JavaScript and want the depth that interviews and incidents demand.

CHAPTERS
16
FULL NOTES
7 h
REVISION
62 m
DIFFICULTY
BEGINNER → ADVANCED

WHAT YOU’LL LEARN

What you’ll learn

  1. The Node runtime and its relationship to V8 and libuv.
  2. Event-loop internals — phases, microtasks, and the order operations really run in.
  3. Streams, buffers, and backpressure — the things that make or break file and network I/O.
  4. When to reach for cluster, worker_threads, or child_process — and when none of them is the answer.
  5. Production observability: structured logging, metrics, and distributed tracing in Node.
  6. Common interview questions with the right mental models ready to deploy.

CHAPTERS

Chapters

  1. ○
    The Origin Story

    Ryan Dahl's 2009 talk and why non-blocking I/O was radical.

    25 min
  2. ○
    JavaScript on the Server

    Servers, V8, ECMAScript, and how your JavaScript gets to machine code.

    22 min
  3. ○
    First Code — REPL, Files & Globals

    Install Node, the REPL, your first file, and the `global` / `globalThis` / top-level `this` puzzle.

    15 min
  4. ○
    Modules, Exports & Require

    CommonJS basics — `require`, `module.exports`, the `index.js` barrel, and how ESM differs.

    15 min
  5. ○
    Module Internals — IIFE, Wrapper & require()

    The module wrapper function, the 5 injected parameters, and the 5 steps of require() — interview gold.

    16 min
  6. ○
    libuv & Async I/O

    V8 is synchronous. Node feels concurrent. This is how libuv and the event loop bridge the gap.

    22 min
  7. ○
    Sync, Async & the magic of setTimeout(0)

    Sync methods freeze the event loop, crypto can block for seconds, and setTimeout(0) still waits for the call stack.

    20 min
  8. ○
    How Node.js actually executes your code

    Watch a mixed sync + async program move through the call stack, libuv, and the event loop, step by step.

    18 min
  9. ○
    Deep dive into the V8 JS Engine

    Tokens → AST → Ignition → TurboFan → machine code — with Mark-and-Sweep GC running throughout.

    22 min
  10. ○
    libuv & The Event Loop

    Six phases, two microtask queues, one single thread — the definitive event loop tour.

    35 min
  11. ○
    Streams & Buffers

    Why Node moves bytes in streams, and what backpressure really is.

    35 min
  12. ○
    Streams & Backpressure

    Readable, Writable, Transform — and why you care about the high-water mark.

    40 min coming soon
  13. ○
    Buffers & Binary Data

    When strings lie to you and you need bytes.

    30 min coming soon
  14. ○
    Cluster, Workers, Child Processes

    Three ways to leave single-threaded land, each for different reasons.

    50 min coming soon
  15. ○
    Async Hooks & Context

    Tracing async operations across the lifetime of a request.

    35 min coming soon
  16. ○
    Observability in Production

    Structured logs, metrics, traces — Node-specific patterns.

    45 min coming soon