Skip to content

Krishnam2411/DPBH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dark Pattern Buster Hackathon 2023


Table of Contents

Introduction

Welcome to the Dark Pattern Buster Hackathon 2023 project by Team Z. Our goal is to identify and mitigate dark patterns in user interfaces, making the web a more user-friendly place.


Project Overview

Problem Statement

Dark patterns are deceptive design practices used to trick users into taking actions they might not otherwise take. These patterns can lead to frustration, loss of trust, and even financial loss.

Our Solution

We have developed a broswer extension that scans websites for common dark patterns and provides actionable insights to improve user experience. The extension highlights issues and suggests alternatives, promoting ethical design practices.


Installation

Frontend Setup

  1. Clone the repository:
      git clone https://github.com/Krishnam2411/DPBH.git
  2. Navigate to the frontend extension directory:
      cd ../extension
  3. For all browsers, installation is different:
    • chrome :
      • Enter "chrome://extensions/" in the URL bar.
      • Turn "ON" the developers option (if not already), and click on "Load unpacked" in the toolbar.
      • Select the extension's directory and hit "Enter".
    • Edge :
      • Enter "edge://extensions/" in the URL bar.
      • Turn "ON" the developers option (if not already), and click on "Load unpacked" option.
      • Select the extension's directory and hit "Enter".

For chromium based browsers only

Backend Setup

  1. Navigate to the Backend directory:
      cd /api
  2. Download and Set Up the Model:
  3. Set Up Environment Variables:
    • Create a .env file in the project root directory:
        touch .env
    • Edit the .env file to include the following environment variables:
        MODEL_PATH=./core/models/
        IMAGEDIR="screenshots/"
        URL_FILE='data/urls.txt'
        HOST='127.0.0.1'
        PORT=8000
        db_key="your-neon-tech-key"
    • Get your unique key from Neon.tech by creating an account or logging in, and replace your-neon-tech-key with your actual key.
  4. Build the Docker Image:
  docker build -t dark-pattern-buster .

Usage

After docker image is built, you can run the image by running follwowing command:

    docker run -d -p 8000:8000 --env-file .env dark-pattern-buster

Follow the on-screen instructions to scan a website for dark patterns and view the results.


Technologies Used

  • Frontend: Browser Extension (HTML, CSS, JavaScript)
  • Backend: Python, FastAPI
  • Database: Neon, mySql
  • Deployment: Docker

Team Members

  • Sohail Kazi
  • Sacheth Koushik
  • Saptarshi Adhikari
  • Suraj Gupta
  • Krishnam Maheshwari

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published