3 ms·
A repo for the @vercel/og API it uses isn't here: https://www.npmjs.com/package/@vercel/og https://www.npmjs.com/package/@vercel/og ...but it's easy enough to
by benatkin 4y ago
A repo for the @vercel/og API it uses isn't here: https://www.npmjs.com/package/@vercel/og https://www.npmjs.com/package/@vercel/og
...but it's easy enough to find on https://www.jsdelivr.com/package/npm/@vercel/og https://www.jsdelivr.com/package/npm/@vercel/og
It looks to be a tiny bit of glue code (minified but with source maps that I didn't examine), 2 wasm bundles which are probably open source, and an open source font.
Clever but I happen to be looking for documented open source stuff that does this. I guess knowing the names of yoga (which is a library from Facebook I already heard about) and resvg (which I probably already heard about) is a good starting point! https://github.com/facebook/yoga https://github.com/facebook/yoga https://github.com/yisibl/resvg-js https://github.com/yisibl/resvg-js
Edit: fonts are here https://github.com/yisibl/resvg-js/search?q=font https://github.com/yisibl/resvg-js/search?q=font and the yoga part seems to be here https://news.ycombinator.com/item?id=33156130 https://news.ycombinator.com/item?id=33156130 It's pretty neat but I think most of this can be had without using facebook stuff :) https://time.com/6217730/myanmar-meta-rohingya-facebook/ https://time.com/6217730/myanmar-meta-rohingya-facebook/