Cloudflare·7wWe deserve a better streams API for JavaScript
A deep technical critique of the WHATWG Web Streams API by a Cloudflare/Node.js core contributor, arguing that its fundamental design choices — reader/writer locking, BYOB complexity, advisory backpressure, promise-heavy internals, and push-oriented TransformStreams — create serious usability and performance problems that cannot be fixed incrementally. The post presents a proof-of-concept alternative API built around async iterables as the core primitive, pull-based lazy evaluation, explicit backpressure policies, batched chunk delivery (Uint8Array[]), and synchronous fast paths. Benchmarks show the alternative running 3x–120x faster than Web streams across Node.js, Deno, Bun, Cloudflare Workers, and Chrome, with gains attributed entirely to design choices rather than implementation optimizations. The author frames this as a starting point for community discussion about what a modern streaming standard could look like.