Skip to content

Githubmaniak/bandwidth-hero-proxy2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bandwidth Hero Data Compression Service

Welcome to the Serverless port of Bandwidth Hero Data Compression Service 🚀. This service is designed to compress images on the fly, saving you bandwidth and improving your browsing experience.

To get started with deploying your own instance of this service, please follow the detailed instructions in the #Deployment section below.

Forked from adi-g15/bandwidth-hero-proxy just trying to make the code up-to-date and error less upto my limited (equal to nothing) coding knowledge.

The original and this fork, both are, data compression service used by Bandwidth Hero browser extension. It compresses (optionally grayscale) given image to low-res WebP or JPEG image.

It downloads original image and transforms it with Sharp on the fly without saving images on disk.

Benefits - It's faster for initial requests, as it doesn't require restarting a sleeping heroku server deployment, also, you may benefit from a better ping (in my case it is such)

Note: It downloads images on user's behalf (By passing in same headers to the domain with required image), passing cookies and user's IP address through to the origin host.

Deployment

You need to deploy the functions to Netlify:

Deploy

Then, in the Data Compression Service in Bandwidth Hero extension, add https://your-netlify-domain.netlify.app/api/index, and you are good to go.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published