Company
Date Published
Sept. 30, 2019
Author
Rita Kozlov
Word count
857
Language
English
Hacker News points
9

Summary

Cloudflare has announced the beta release of HTMLRewriter, a streaming HTML parser with an easy-to-use selector-based JavaScript API for DOM manipulation. This feature is available in the Cloudflare Workers runtime and can be used to perform dynamic transformations on static HTML files hosted on Workers Sites. The combination of Workers Sites and HTMLRewriter allows developers to create serverless applications that are easy to scale, simplify web development workflow, and reduce latency by performing edge-side rendering. The HTMLRewriter API offers a jQuery-like experience for parsing and transforming HTML, allowing developers to build deeply functional applications with powerful JavaScript capabilities.