🌱 Sustainable Web Analyzer

How sustainable is your website?

Every visit travels through servers, cables and power grids. Make that chain visible, and make your site lighter, greener and closer to home.

Try it at kreativ-anders.de API openapi.json

The hidden chain

  1. Weight

    Every byte of HTML, scripts, styles and images takes energy to send.

  2. File types

    Modern formats like WebP compress images far better than JPG or PNG.

  3. HTML

    Semantic elements instead of nested divs make code lean, accessible and easy to read.

  4. Hosting

    Green hosting runs the servers on renewable energy.

  5. Location

    The server's country decides the power mix and which laws apply to your visitors' data.

  6. Distance

    Nearby hosts keep traffic short. Hosts abroad send it across oceans and borders.

  7. Cookies

    No cookies means no consent banner and more privacy for your visitors.

  8. CO2

    All of it adds up to grams of CO2 per visit, graded from A+ to F.

Small choices add up: fewer bytes, lean code, green hosting nearby and no tracking make a site faster, cleaner and more independent.

How it works

The tool adds up everything a first visit downloads: the HTML plus its scripts, stylesheets and images. It checks where those files are hosted and whether the hosting runs on green energy.

Bytes become energy, energy becomes CO2 using the power mix of the server's country. The result is grams of CO2 per visit and a grade from A+ to F, following the Sustainable Web Design Model v4.

Example

GET /api/?url=kreativ-anders.de

{
  "bytes": 217543,
  "hosts": { "kreativ-anders.de": "DE" },
  "green": true,
  "co2": { "per_visit": 0.0263, "rating": "A+", "unit": "g", … },
  …
}

Run

echo "<?php return ['debug' => true];" > config.php   # optional, overrides config.default.php
php -S 127.0.0.1:8080 -t docs index.php   # docs at /, API at /api/
bin/analyze https://kreativ-anders.de
php tests/run.php

Production: nginx + PHP-FPM with nginx.conf.example.