
9/25/2025 · James M Snell
What this post added
This post details the significant expansion of Node.js compatibility within Cloudflare Workers. It covers the implementation of a substantial subset of the Node.js standard library, including `node:console`, `node:crypto`, `node:dns`, `node:fs`, `node:http`, `node:https`, `node:net`, `node:process`, `node:timers`, `node:tls`, and `node:zlib`. Key technical details include: the implementation of HTTP client and server support using the Fetch API and existing request handling, the creation of a virtual file system for `node:fs` operations (ephemeral per Worker, shared within Durable Objects), and the use of the Workers Sockets API and fetch for `node:net`, `node:tls`, and `node:http`. The `node:dns` module is supported via subrequests to 1.1.1.1. All implementations are native to the Workers runtime, using TypeScript and C++.