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 SentiFlags2οΈβ£ 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)