https://floooh.github.io/qoiview/qoiview.html
A QOI decoder should fit into a few hundred bytes of WASM at most, maybe a few kilobytes for a "proper" polyfill.