Open Graph images with Astro and Typst

19 points by eaj 4 hours ago on lobsters | 5 comments

polywolf | 3 hours ago

oh this is excellent, I gotta put this on my own blog now too, nice writeup thanks!!!

[OP] eaj | 3 hours ago

Nice! Let me know how it goes :)

valdemar | 2 hours ago

This is pretty cool, Typst works quite well for this. The Rust package repository crates.io also uses Typst though they do it at runtime since there is quite a lot of packages which are not often accessed.

[OP] eaj | 2 hours ago

That makes sense. If I was tasked to setup this for a more dynamic site with user-generated content I'd still reach for typst, but probably with a cache in front.

valdemar | 43 minutes ago

Looks like they split it out into its own crate at some point: https://github.com/rust-lang/crates_io_og_image

I think they have some backend queue system that runs it and pushes the images to a CDN, though I don't know the details about that part.

I agree that typst is a wonderful tool to reach for, and you can get it to run quite fast as well which is nice.