Skip to content

w3c/sustainableweb-wsg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a923b10 · Mar 25, 2025
Mar 3, 2025
Mar 23, 2025
Nov 14, 2024
Dec 6, 2024
Feb 19, 2025
Nov 14, 2024
Mar 19, 2025
Feb 7, 2025
Mar 23, 2025
Mar 23, 2025
Mar 3, 2025
Mar 25, 2025
Mar 25, 2025
Mar 24, 2025
Feb 12, 2025
Mar 23, 2025
Mar 24, 2025
Mar 24, 2025
Nov 18, 2024

Repository files navigation

Web Sustainability Guidelines (WSG)

Welcome to the repository of the Web Sustainability Guidelines (WSG).

If you would like to learn more about us and how to participate in this project, please check the readme in the W3C Sustainable Web Interest Group repository.

Statistics

  • 93 Guidelines covering UX, Web Development, DevOps, & Business / Product Strategy.
  • 256 Success Criteria to meet the guidelines on various aspects of sustainability.
  • 100+ contributors from over 20 nations around the world.

Work

The chartered focus of the W3C Sustainable Web Interest Group is the development of the Web Sustainability Guidelines (WSG) and its deliverables.

Links to relevant documents (based on the CG Draft Report) can be found below.

Guidelines:

Name Status Date
Web Sustainability Guidelines (WSG) W3C Editors Draft 19 Mar 2025

Other Deliverables:

Name Status Date
Sustainable Tooling And Reporting (STAR) W3C Editors Draft 19 Mar 2025
WSG At A Glance W3C Editors Draft 03 Mar 2025
Introduction to Web Sustainability W3C Editors Draft 19 Mar 2025
Web Sustainability Laws & Policies W3C Editors Draft 12 Feb 2025
Quick Reference for WSG & Checklist (PDF) W3C Editors Draft 19 Mar 2025
WSG JSON API JSON API 19 Mar 2025
STAR JSON API JSON API 19 Mar 2025
STAR Test Suite Test Suite 03 Mar 2025

Schedule

Name Date
Initial Draft 30 June 2025
Final Draft 31 December 2025
Measurability 31 Mar 2026
W3C Draft Note 22 Apr 2026 (Earth Day)

Note: We will still consider the remaining proposed and planned updates carried forward from the Sustainable Web Community Group (based on both W3C and CG member feedback).

Processes

Work is planned in accordance with the issues requiring resolution.

If you would like to contribute towards this specification, please refer to the CONTRIBUTING.md document for details and refer to the guidance on the W3C Sustainable Web Interest Group repository readme regarding participation.

JSON APIs

We have two JSON APIs which are kept in sync with the changes occurring within our specification and STAR.

These documents are reachable via GitHub pages and can be queried using JavaScript to embed our data within your client of choice.

WSG (guidelines.json)

category[1].guidelines[0].guideline = "Display any variables that have a negative impact on your project"

STAR (star.json)

category[1].techniques[0].title = "Produce a List of Variables To Monitor for Sustainability Impacts"

One method of reaching the API could be through code similar to the below (customize to your requirements):

fetch("https://w3c.github.io/sustainableweb-wsg/guidelines.json")
  .then((res) => res.json())
  .then((data) => {
    console.log(`The First UX Guideline Title is ${data.category[1].guidelines[0].guideline}`); });

Note: To match a WSG guideline to a STAR technique, you can match the guideline testable anchor hash (WSG JSON API) to the technique id (STAR JSON API).

Test Suite

We have a Test Suite which is used to showcase machine testability (as denoted in STAR) for the Web Sustainability Guidelines (WSGs). The template structure for the file uses common W3C conventions for test cases to maintain interoperability for tooling that wishes to align our work with their own.

Key concepts of note include:

  • Each title element contains a short identifier for the test.
  • The rel="author" link element contains details of who created that test.
  • The rel="help" link element links to the WSG guideline it relates to.
  • The name="flags" meta element identifies any requirements the test may have such as an external file (asset), scripting (JavaScript), user-involvement (interaction), or if it's trying to disprove something (invalid).
  • The name="assert" meta tag explains which STAR technique it relates to by title.
  • The conditions of passing are what requirements are necessary to pass the technique (and thus the success criteria).

Resources

Below are some handy links for contributors to our project: