Inspiration

The fact that digital technologies are responsible for 4% of all global greenhouse gas emissions is shocking to most. The average person doesn't realise that each webpage they load (and reload) directly contributes to the slow death of our planet. Therefore, we decided a good first step would be to reduce this impact by creating Eco Loader.

What it does

Eco Loader is a server which automatically caches its files on the client by using a service worker. Effectively it’s an extended default python server; it seemingly gives you normal access to files in the local directory. Behind the scenes however, it first sends a webpage that loads a service worker, which intercepts further requests and resends them to the server to get their original content. Any further requests for the same page won’t get sent to the server, but will be returned from the service worker’s cache. This can save a huge amount of network usage, and reduce the carbon footprint.

How we built it & challenges we ran into

Read our GitHub: https://github.com/Henry-Hart/eco-loader

What's next for Eco Loader

We have a few ideas:

  • Fixing bugs and making an official beta release

  • Running Eco Loader on servers we create in the future (Henry, for example, maintains an online database of trees)

  • Extending Eco Loader’s capabilities to make it smarter and more globalised

  • Getting some small businesses to run Eco Loader on their servers

Please Note:

For debugging purposes, if you navigate to /deletecache, the service worker will delete the cache it uses.

Built With

Share this project:

Updates