Despite the rapidly growing prevalence of online shopping, it is difficult for consumers to know whether the products they're spending their hard-earned money on are made ethically. For example, many reputable brands, including Nike and Adidas, sell products made with forced Uyghur labor in China.
Shop Clean is a browser extension for Chrome that flags these products on Amazon and suggests alternatives, so consumers can leverage their purchase power for good. When a user is on a product page, they simply click the browser extension. A script grabs the product URL and calls the Rainforest Product Data API to determine product information. This information is compared against several datasets to determine and display whether the product was manufactured ethically. If it wasn't we use a custom algorithm along with the Rainforest Search API to recommend similar products that were manufactured ethically.
We encountered many challenges in the development of this project. One key challenge was integrating our tech stack with the Chrome extension infrastructure in order to automatically check whether the Amazon product the user was browsing was made using ethical means. This required acquiring the URL of the browser, which is only accessible by certain scripts. Another challenge was determining which alternative products to suggest when a user was interested in a product made with forced labor.
- Run
npm install - Edit the Constants.js file to include your Rainforest API key and edit the manifest.json file to include your chrome extension security hash.
- Run
npm run build - Navigate to chrome://extensions/
- Press
load unpackedand select the build folder. You can run the browser extension now!
