
Description
Turning an X post into an image for an article, a newsletter or a social card usually means booting headless Chromium to take a screenshot: slow, memory-hungry, and a whole browser stack to maintain. xeet takes another route and reimplements in Rust just the parts a post depends on. Give it a post or an x.com link and you get a Retina PNG that matches what Chrome shows.
Line breaks, emoji, fallback fonts and the "Show more" cut land exactly where x.com puts them, and the project tests each against real headless Chrome. With its font packs loaded, a text post renders in about 2.8 ms; rendering uses no network, no filesystem and no system fonts, and the native and WebAssembly builds produce identical bytes. Written by Vercel CEO Guillermo Rauch, Apache 2.0, with an online playground to paste links into.
X's own layout: its own text shaper, bidi engine and rasterizer handle CJK, Arabic, Hebrew and math characters correctly.
Links to images: xeet-resolve turns post text or an x.com URL into a full post, while the caller supplies all network I/O and the core stays a pure function.
Three targets: WebAssembly in the browser, a Rust crate inside your program, or a CLI.
Edge cases covered: quotes, carousels, polls, video posters, verification badges, and light and dark themes.
Line breaks, emoji, fallback fonts and the "Show more" cut land exactly where x.com puts them, and the project tests each against real headless Chrome. With its font packs loaded, a text post renders in about 2.8 ms; rendering uses no network, no filesystem and no system fonts, and the native and WebAssembly builds produce identical bytes. Written by Vercel CEO Guillermo Rauch, Apache 2.0, with an online playground to paste links into.
Features
X's own layout: its own text shaper, bidi engine and rasterizer handle CJK, Arabic, Hebrew and math characters correctly.
Links to images: xeet-resolve turns post text or an x.com URL into a full post, while the caller supplies all network I/O and the core stays a pure function.
Three targets: WebAssembly in the browser, a Rust crate inside your program, or a CLI.
Edge cases covered: quotes, carousels, polls, video posters, verification badges, and light and dark themes.
