Read OSS

cloudflare/workerd

10 articles

Prerequisites

01

Navigating the workerd Codebase: Architecture Overview and Directory Map

A high-level orientation to workerd's architecture — the layered design from CLI to V8, the annotated directory structure, and the three core design principles.

02

Placeholder Article

Placeholder article — no content was provided in the source input.

03

Architecture Overview: Navigating the workerd Codebase

A high-level tour of workerd's layered architecture, directory structure, and capability-based configuration model.

04

Navigating the workerd Codebase: Architecture and Directory Map

A high-level orientation to the workerd project — the open-source runtime behind Cloudflare Workers.

05

From main() to Response: The Complete Request Lifecycle in workerd

A detailed trace of the entire path from CLI invocation through server boot, socket binding, and the handling of a single HTTP request.

06

Server Boot and Request Lifecycle: From Socket to JavaScript

Traces the complete lifecycle of an HTTP request through workerd — from CLI startup through service creation to JavaScript execution.

07

From `workerd serve` to Accepting Requests: The Boot and Server Lifecycle

A deep dive into workerd's startup sequence — from CLI invocation through config parsing, V8 init, service graph construction, and the HTTP accept loop.

08

Handling a Request: IoContext, WorkerEntrypoint, and Cross-Thread Ownership

Traces the complete lifecycle of an HTTP request from socket acceptance through JavaScript execution and response generation.

09

JSG: The C++↔V8 Binding Layer That Powers the Workers API

A deep dive into JSG, workerd's macro-based C++↔V8 binding system that turns C++ classes into JavaScript objects.

10

Durable Objects Storage and the Compatibility Date System

Deep dives into Durable Objects' gate-based consistency model and the compatibility flag system that guarantees backwards compatibility.