How fetch() Actually Works
A full end-to-end mental model — from JavaScript through WebIDL, native C++, and Node.js streams — explained step by step. Click any block in the diagram, any step card, or any highlighted term to open it up.
From a call to a callback
A single fetch("/api/users") crosses the JavaScript layer, the WebIDL binding, the native C++
engine, the browser networking stack, , and Node.js
— then travels back. The dashed seam is where no JavaScript is involved anymore — pure bytes
over a TCP socket.
Nine steps, top to bottom
Each card opens a full detail panel — the explanation, the real code, and the "lock this in" takeaway. The same panels open from the diagram above.
Complete Mental Model
The complete picture, collapsed into a scannable reference.
Glossary
Every highlighted term across the page resolves here, grouped by area. Click a heading to expand a group, or a card to pin its definition.