GitHub - AIWattch/browser-extension: Chrome browser extension to measure ChatGPT carbon emissions during conversations (original) (raw)

AI Wattch

A Chrome extension that tracks your emissions while using ChatGPT. Here's a short demo video

Pre-requisite browser configuration

Download

Create a build from source

Ensure you have Node.js and npm installed, click here for instructions to download

git clone git@github.com:AIWattch/browser-extension.git
cd browser-extension/
npm i
npm run build

Release build

Alternatively, you can use the latest pre-built version of the extension by downloading it from the right side of this page under the Releases header

Installation

Load the extension in Chrome

Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repo
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Before submitting:

For major changes:

Need help? Check CONTRIBUTING.md for detailed guidelines or open an issue.

Running Tests

Unit tests are set up using Vitest. To run the tests, use the following command in your terminal:

This will execute all test files in the src directory that match the *.test.js pattern.