/bandwidth-hero-proxy

:zap: Data compression proxy that converts images to low-res WebP/JPEG

Primary LanguageJavaScriptMIT LicenseMIT

Sponsor

Bandwidth Hero Data Compression Service

NSP Status

This data compression service is used by Bandwidth Hero browser extension. It compresses given image to low-res WebP or JPEG image. Optionally it also converts image to greyscale to save even more data.

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

This is NOT an anonymizing proxy — it downloads images on user's behalf, passing cookies and user's IP address through to the origin host.

Deployment

Heroku

You can deploy this service to Heroku:

Deploy

Webtask

You can also use webtask.io to run the service:

  • Clone the repository:

    git clone https://github.com/ayastreb/bandwidth-hero-proxy.git
    
  • Install Webtask CLI:

    npm install wt-cli -g
    
    wt init __your_email__
    
  • Create new webtask:

    wt create server.js --meta wt-compiler=webtask-tools/express