Gea HTML Renderer is a native tool for turning controlled HTML and CSS templates, plus local fonts and images, into PNGs, frame sequences, or MP4 clips without launching a browser. It is available as an npm package and can also run as a Cloudflare service. For animation, it opens a page once and advances its clock across a specified time range; the Node API can keep the renderer open and reuse mounted pages. The renderer supports only a subset of HTML and CSS and does not run page JavaScript, so it suits predictable templates rather than websites that rely on scripts, remote assets, or full browser behavior. More interactive or data-driven scenes can instead be built as Gea apps and rendered with the separate native app workflow.
Benchmarks show substantial speed and memory advantages on two tested templates. On Cloudflare Basic, the first Card capture took a median 30 ms, compared with 3.23 seconds in Chrome and 3.48 seconds in Playwright; the Promo template took 103 ms, roughly 30 times faster than Chrome and 88 times faster than Playwright. Warm captures were also faster, and Gea used 12-15 MiB of peak anonymous and shared memory, versus 222-266 MiB for browser drivers. These figures include browser startup and PNG encoding but exclude container startup and network transfer. Results vary by workload and deployment: a Lite Promo series slowed markedly after its first 27 runs, apparently due to increased waiting, though the measurements do not establish the scheduler’s exact role.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.