trending

3d ago

Ditching Puppeteer for 2.37x faster opengraph image generation

GitHub dynamically generates opengraph images for repositories and other pages such as issues and pull requests of a particular repository.

In their engineering blog, GitHub outlined their approach: they spin up a headless Chromium instance via Puppeteer, load a template with HTML & CSS, and take a screenshot of the DOM.

2d ago

Decal - Render images dynamically with code, super fast.

A declarative graphics rendering library that lets you describe scenes using a Rust-native DSL and render them to SVG or PNG.