Skip to content

Nodejs Runtime Textbook

A free, self-paced textbook in 8 chapters. Read a chapter, then drill it with the 50 companion flashcards using spaced repetition.

8 chapters · 50 cards · Updated

Chapters

  1. 1Foundations of Node.js and the Event Loop

    Node.js is a JavaScript runtime built on Chrome's V8 engine that executes JavaScript outside the browser. Its defining characteristic is an event-driven, non-blocking I/O model, wh...

  2. 2Module Systems

    Node.js supports two module systems for organizing code. CommonJS is the original, using the require function to load modules synchronously and module.exports (or the shorter expor...

  3. 3Streams and Buffers

    Streams are one of Node.js's most powerful abstractions for handling data. Rather than loading entire files or network payloads into memory, streams process data in chunks as it fl...

  4. 4Asynchronous Programming

    Asynchronous programming is at the heart of Node.js, and Promises are its primary abstraction. A Promise represents the eventual completion or failure of an asynchronous operation...

  5. 5Building Web Applications with Express

    Express.js is the most widely used web framework on top of Node.js, and its core concept is middleware. A middleware function receives the request object (req), the response object...

  6. 6Core Built-in Modules

    Node.js ships with a rich set of built-in modules that cover most server-side needs without external dependencies. The fs module handles file system operations: fs.readFile and fs....

  7. 7Package Management and Project Configuration

    npm, the Node Package Manager, is the default way to share and consume JavaScript libraries. It provides both a command-line tool and a vast public registry hosting millions of pac...

  8. 8Error Handling, Process Management, and Events

    Robust Node.js applications need a clear strategy for handling errors, which can occur at multiple levels. Synchronous errors and those thrown inside async functions can be caught...

← Back to the Nodejs Runtime deck