Stories Behind Satori

Stories Behind Satori

by Shu

The potential candidates for included:

  • -based solutions lacked dynamic behaviors (e.g., layout) and APIs.
  • -based solutions were too slow
  • -based solutions were the perfect balance of the two, being fast and dev-friendly (/)

However, solutions lacked layout support. Given that and + are alike, we can convert and to . We can calculate the elements' positions through a layout engine and convert them into markups.

This is already done by an open-source facebook/yoga. Converting it into WASM will also benefit by targeting . Using a WASM-based approach also unlocked the possibility of running it on edge. Introducing support for WebAssembly at the Edge.

After simplifying the syntax with and simple , Shu used RazrFalcon/resvg and yisibl/resvg-js to convert the image to .

The team this for a while. They also added Google 's ?text= , containing a specific subset of the CJK library and rendering things on the fly. The same applies to .

Backlinks2