(I also appreciate that this is probably me getting overexcited about this, since odds are the JS is cached, and in the case of mobile apps it doesn't matter much.)
https://pkg.go.dev/mod/github.com/fogleman/primitive https://primitive.lol/
I've used it in a project to generate vector thumbnails that are under 1KB that I can just base64 encode and send along with the general text of a page - so the page renders with the text and low-fi images, and then I can load the hi-fi ones as necessary.
The lo-fi images are art in themselves, sometimes I preferred them to the actual images :-P
Like cinemagraphs, but unique and alive in a nice way.
You could probably devise a much smaller data representation too, to get the size down.
Edit: Nevermind, derp, https://blurha.sh/blurhash.01ae00eea611ada5e9c7.js contains all of the JS of the entire website.
The algorithm itself fits into a few k.
Of course, my first clue should have been that it was also the only Javascript file.
I'm guessing that it's approximately the size of a single image, possibly quite a bit more.