jpegli
Would you be interested in adding the jpegli algorithm approach if I make a PR? I could put it in src/jpegli/*, it would be a half dozen files. It would need to depend on lcms2 or (perhaps eventually) moxcms. Some API additions would be needed since jpegli has more configuration, offers f32 input, and has substantial color management. Jpegli could be a feature flag, however.
Oh, I would also add a reference_dct folder with some scripts to use cjpegli/djpegli from https://hub.docker.com/r/imazen/jpegli-tools to make reference values from test images (using a submodule in reference_dct to the jxl repo for now, this could be duplicated into a jpegli-testimages subdir to shrink it to 1-2mb instead of 70, or I could try to figure out git lfs).
It's looking like jpegli would require so many changes as to have little to no code overlap in the end.