If you are looking for a ready-made web app that can do something like that, try https://bincdn.com . I built it so if it is close to what you were looking for.. we can definitely talk further.
You could build your own CDN using https://bunnyapi.com .
DreamObjects by DreamHost would be another option for which you can upload the AWS library to your website and use that code too.