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.
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.
We have a JSON API which is kept in sync with the changes occurring within our specification.
This document is 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 = "Identify, assess, disclose, review, and mitigate 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}`); });