Introducing the HTMLRewriter API to Cloudflare Workers
Nov 28, 2019Rita Kozlov

Summary
Introduced the GA release of the HTMLRewriter API for Cloudflare Workers. This API provides a streaming parser for manipulating HTML content directly at the edge, enabling dynamic applications and edge-side JAMstack architectures. It offers a jQuery-like experience for DOM manipulation using selectors and handlers, allowing for URL rewrites, content customization, and reducing origin load and client-side bloat. The post details an example of rewriting URLs and discusses the benefits of edge-side DOM modifications over client-side updates.