Skip to content

Adii0906/SentiFlags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SentiFlags πŸ”₯
πŸš€ Real-time Sentiment Analysis Chrome Extension with Flagsmith Integration

SentiFlags πŸ” SentiFlags – Instant Sentiment Analysis for Webpages
SentiFlags is a Chrome extension that instantly analyzes the sentiment of any selected text on a webpage. It leverages:
πŸš€ Flask (Backend)
πŸ“Š VADER NLP (Sentiment Analysis)
πŸŽ› Flagsmith (Feature Toggling)

Enable or disable sentiment analysis dynamically using Flagsmith without modifying the code! πŸ’‘ It uses Flask (Backend), VADER NLP (Sentiment Analysis), and Flagsmith (Feature Toggling) to provide real-time insights.

✨ Features
βœ… One-click sentiment analysis (😊 Positive, 😐 Neutral, 😑 Negative)
βœ… Real-time analysis using VADER NLP
βœ… Feature toggling with Flagsmith
βœ… Simple Chrome extension UI

πŸ“Œ Demo
πŸŽ₯ https://github.com/user-attachments/assets/6764e123-391c-4b0e-9dc0-2e6d4818b139

πŸ›  Installation
1️⃣ Clone the Repository

git clone https://github.com/Adii0906/SentiFlags.git  
cd SentiFlags

2️⃣ Backend Setup (Flask API)
πŸ”Ή Install Dependencies

pip install -r requirements.txt

πŸ”Ή Configure Flagsmith
Go to Flagsmith and create an account.
Create an environment and get the Environment Key.
Replace the environment_key in app.py with your Flagsmith Environment Key.

πŸ”Ή Run the Flask Server

python app.py

(Flask will start running on http://127.0.0.1:5000)

3️⃣ Load the Chrome Extension
Open Chrome and go to chrome://extensions/
Enable Developer Mode
Click Load Unpacked and select the SentiFlags folder
Done! πŸŽ‰

πŸ”₯ How to Use
1️⃣ Select any text on a webpage
2️⃣ Click the SentiFlags extension icon
3️⃣ The popup will display the sentiment analysis result

βš™οΈ Feature Flagging with Flagsmith
The extension checks Flagsmith to see if sentiment analysis is enabled.
Feature ON: Sentiment analysis runs smoothly.
Feature OFF: Users see an error message stating "Sentiment analysis is disabled."
βœ… Toggle this feature ON/OFF in Flagsmith without changing the code!

πŸ’‘ Tech Stack

  • Flask (Backend API)
  • VADER NLP (Sentiment Analysis)
  • Flagsmith (Feature Toggling)
  • JavaScript, HTML, CSS (Chrome Extension)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors