There is a filter in MeshLab that I normally use to decimate (or simplify) 3D models that were 'photogrammetised'; to a lower number of faces (so that they can be viewed faster on mobile client devices). The filter used is the Quadric Edge Collapse Decimation preserving textures.
I want to do this in bulk and programmatically from the web server side; so that those decimations (or simplifications) are done in batch and then stored in backend system like Omeka, a digital asset management system, or any other similar system really. I am using currently Sketchfab to view the Web3D models (each has an .obj, mtl and bunch of texture images). Any WebGL library like Three JS or Babylon JS can be used.
The important thing here is that I am looking for any implementation of the MeshLab Quadric Edge Collapse Decimation algorithm for the web, ideally either in JavaScript (node), PHP or Python? Any libraries that make the batch decimation or simplification easy?
Thank you for any help and suggestions.