NodeBook is a practical and deeply technical guide created for developers who want to understand the real anatomy of the Node.js runtime. This book and course help you see the internal processes of the platform as clearly as the external API — from Libuv's operations to V8 optimizations.
About NodeBook
The project was created by runtime engineer and researcher Ishtmeet Singh. Currently, Volume I is fully available, and the development of subsequent volumes is actively ongoing as part of "Phase 2."
Target Audience: Middle and Senior developers using JavaScript/TypeScript working with high-load services, network protocols, data streams, and native Node.js modules.
Unlike most materials about Node.js that are limited to frameworks and utilities, NodeBook explains what happens inside the engine when code performs I/O, allocates memory, processes events, and interacts with the OS.
What Makes NodeBook Unique?
The book is built around an extensive plan of 35 chapters and 205 subchapters, divided into 7 technical volumes. Each volume reveals practical and architectural aspects of the runtime in real production environments.
Topics You Will Study
- Libuv Architecture and Event Loop: detailed analysis of poll, check, and idle phases; interaction with threadpool; comparison of system mechanisms like epoll, kqueue, and IOCP.
- V8 and Its Optimization Pipeline: analysis of deoptimizations, hidden classes, inline cache behavior, and the impact of object structures on performance.
- Zero-Copy Streams: implementation of high-performance binary protocols, managing backpressure, advanced work with Buffers and external memory.
- Native Addons and N-API: building thread-safe modules in C++, distributing heavy tasks through
uv_queue_work, managing the life cycle of objects at the JS/C++ boundary. - Observability and Memory: profiling leaks, reading heap snapshots, setting GC flags, and tracing context through
AsyncLocalStorage.
Course Structure (7 Volumes)
- Volume I: Runtime Basics — 39 subchapters on internal architecture, buffers, streams, file system, and modular system. Already available.
- Volume II: Network APIs — protocols, sockets, server architectures. Ready for study.
- Volume III: Tasks and Native Boundaries — Worker Threads, processes, WebAssembly, JS ↔ C++ bridge.
- Volume IV: Data and State — databases, indexing, caching, message brokers.
- Volume V: Security — cryptography, authorization, runtime, and infrastructure protection.
- Volume VI: Production Engineering — monitoring, metrics, resilience, deployment.
- Volume VII: Architecture and Scaling — distributed systems, clustering, resource cost optimization.
Who NodeBook is For
The book is ideal for engineers who want to move from working "by frameworks" to a deep understanding of what really happens inside the runtime.
Before: you use libraries and frameworks but do not understand the root causes of memory leaks, unstable latencies, or CPU spikes; you make architectural decisions without precise measurements.
After: you confidently profile memory, manage backpressure, move heavy tasks to Worker Threads, and design Node.js services with an understanding of the true cost of operations.
What's Included in the Digital Edition Bundle
When purchasing the digital bundle of the first volume, you get:
- EPUB — a convenient format for reading on devices;
- Light PDF and Dark PDF — adaptation for light and dark themes;
- Slides and Cheatsheets — quick materials for review and structuring knowledge.