Visualizer
Node.js Runtime Visualizer
Step through a real program and watch it travel through the layers of the Node.js runtime — from V8, through libuv's thread pool, and back via the event loop.
1const fs = require('fs');2console.log('start');3fs.readFile('/data.txt', 'utf8', (err, data) => {4 console.log('file:', data);5});6console.log('end');Press Step or Play to run the program and watch each layer of the runtime light up.
JavaScript Code
Your program — plain JS source
V8 Engine
Parses, compiles & executes JS on the call stack
Node.js APIs
fs, http, timers… JS wrappers over C++ bindings
libuv
Thread pool & async I/O engine, written in C
Event Loop
Spins while the stack is empty, checking queues
Callback Queue
Finished async work waits here as callbacks
Execution
Your callback runs back on the call stack
Under the hood
Node.js is a partnership between three pieces of technology, each doing what it does best.
V8 Engine
Google's open-source JavaScript engine, the same one inside Chrome. It parses your code, JIT-compiles it to native machine code, and manages memory with a garbage collector. V8 alone knows nothing about files, networks, or timers.
libuv
A C library that gives Node its superpowers: the event loop, a thread pool for file system work and DNS, and non-blocking sockets. When JavaScript 'waits' for I/O, libuv is the one actually doing the work.
Node bindings
The C++ glue between the two worlds. Bindings expose libuv and OS capabilities as JavaScript APIs like fs and http, converting values across the JS/C++ boundary in both directions.