Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ayastreb/bandwidth-hero-proxy
:zap: Proxy that compresses images to low-resolution
https://github.com/ayastreb/bandwidth-hero-proxy
compression compression-proxy-server data-compression data-saving express heroku proxy sharp
Last synced: 9 days ago
JSON representation
:zap: Proxy that compresses images to low-resolution
- Host: GitHub
- URL: https://github.com/ayastreb/bandwidth-hero-proxy
- Owner: ayastreb
- License: mit
- Created: 2017-05-24T08:48:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T16:08:42.000Z (almost 2 years ago)
- Last Synced: 2024-04-15T07:40:39.132Z (7 months ago)
- Topics: compression, compression-proxy-server, data-compression, data-saving, express, heroku, proxy, sharp
- Language: JavaScript
- Homepage: https://bandwidth-hero.com/
- Size: 147 KB
- Stars: 188
- Watchers: 12
- Forks: 149
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bandwidth Hero Data Compression Service
[![NSP Status](https://nodesecurity.io/orgs/bandwidth-hero/projects/1f035cf0-00f2-43db-9bc0-8e39adb24642/badge)](https://nodesecurity.io/orgs/bandwidth-hero/projects/1f035cf0-00f2-43db-9bc0-8e39adb24642)
This data compression service is used by
[Bandwidth Hero](https://github.com/ayastreb/bandwidth-hero) browser extension. It compresses given
image to low-res [WebP](https://developers.google.com/speed/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](https://github.com/lovell/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](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/ayastreb/bandwidth-hero-proxy)
[![Deploy to Heroku guide](http://img.youtube.com/vi/y3tkYEXAics/0.jpg)](http://www.youtube.com/watch?v=y3tkYEXAics)
### Self-hosted
Data compression service is a Node.js app which you can run on any server that supports Node.js.
Check out
[this guide](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04)
on how to setup Node.js on Ubuntu.DigitalOcean also provides an
[easy way](https://www.digitalocean.com/products/one-click-apps/node-js/) to setup a server ready to
host Node.js apps.