We deserve a better streams API for JavaScript
Feb 27, 2026James M Snell37 min read
Opens blog.cloudflare.comWhat the post covers
This post critically analyzes the fundamental usability and performance issues of the WHATWG Streams Standard (Web Streams), which underpins many modern web APIs and Cloudflare Workers.
- It highlights design decisions made a decade ago that no longer align with current JavaScript development practices, such as excessive ceremony for common operations and a problematic locking model.
- The post proposes an alternative approach built around JavaScript language primitives that demonstrates significantly faster performance (2x to 120x) and aims to spark a conversation about the future of streaming APIs.
More from the Website Content Optimization trail
When "idle" isn't idle: how a Linux kernel optimization became a QUIC bug
Redirects for AI Training enforces canonical content
How does Cloudflare’s Speed Test really work?
Connection coalescing with ORIGIN Frames: fewer DNS queries, fewer connections
How Cloudflare Images addressed the aCropalypse vulnerability