Introducing libSquoosh | Blog | web.dev
It's Squoosh, but as a Node library.