A free software game designed to explore the orders of magnitude of CO2 footprints in our daily lives and raise awareness about climate change.
This application is based on the work of Thomas James Watson (thank you! ❤️) for wikitrivia. Original source code available on github.
This project uses open data provided by ADEME (Agence de l'Environnement et de la Maîtrise de l'Énergie, the French state agency working on climate change). The raw data is available on the ADEME website, either through a user-friendly website, or via an API. To enable offline gameplay and reduce redundant API calls (since the data doesn't change frequently), the information is stored within the app and manually updated regularly. The last update was performed on 2025-03-05.
Contributions to the project are very welcome! By contributing, you agree that your work will be licensed under the AGPL licence (see the LICENSE
file for details).
This project is using the Next.js framework, itself based on React. NodeJS 18.17.0 or higher is required to build and run the project.
npm install
npm run i18n-compile
npm run dev
Then visit http://localhost:3000/ to preview the website.
disCO2very uses Lingui to manage translation. If you add or modify any text in the app, you must run:
npm run i18n-extract
This will modify the english keys in locales/en/messages.po
. Look for entries starting with #~
: these are now outdated and should be removed.
Then open the other languages files like locales/fr/messages.po
and look for empty strings ""
to add the missing translations.
Once done, run:
npm run i18n-compile
To build a static version of the website to the out
folder, that you can then deploy anywhere (it's plain HTML + JS, no server needed) run:
npm run build