A year of improving Node.js compatibility in Cloudflare Workers
Sep 25, 2025James M Snell

Summary
This post details the significant expansion of Node.js compatibility within Cloudflare Workers over the past year. Key technical contributions include: native implementation of a substantial subset of Node.js standard library APIs (console, crypto, dns, fs, http, https, net, process, timers, tls, zlib) in TypeScript and C++, improved HTTP client support built on the Fetch API, HTTP server support built on existing request handling, DNS queries routed through 1.1.1.1, and the implementation of a virtual, per-Worker file system for temporary storage using `node:fs` APIs. The post highlights the shift from polyfills to native runtime implementations for better performance and closer Node.js behavior.