Attention Guardian AI is a productivity Chrome Extension that replaces distracting advertisements on learning websites with AI-generated study tips and interactive quizzes.
It helps users stay focused while browsing educational content by turning distractions into micro-learning moments.
Chrome Extension (content.js)
β
Local AI Server (Node.js + OpenRouter)
β
AIβgenerated Tips / Quiz
β
Rendered in Webpage instead of Ads
Dashboard:
Chrome Storage β React Dashboard UI
AttentionGuardian-AI
β
βββ extension/ # Chrome extension
β βββ content.js
β βββ background.js
β βββ style.css
β βββ manifest.json
β βββ icons/
β βββ icon16.png
β βββ icon48.png
β βββ icon128.png
β
βββ dashboard/ # React analytics dashboard
β βββ src/
β βββ public/
β
βββ server.js # AI tip server
βββ package.json
βββ .env # API key
git clone https://github.com/SaiKarthik29/AttentionGuardian-AI.git
cd AttentionGuardian-AI
Create a .env file in the root folder:
OPENROUTER_KEY=your_openrouter_api_key_here
Get free key from: π https://openrouter.ai/keys
npm install
npm start
You should see:
AI server running at http://localhost:5000
Test in browser:
http://localhost:5000/tip?topic=javascript&concept=loop
chrome://extensions/Extension will appear in Chrome toolbar.
Open any supported learning site:
Ads will be replaced by:
Study Tip
AIβgenerated learning tip
On YouTube ads β AI quiz overlay appears.
cd dashboard
npm install
npm start
Dashboard shows:
YouTube ads β replaced by quiz overlay.
Sai Karthik Sriram GitHub: https://github.com/SaiKarthik29
Give it a β on GitHub and share!
β Extension working β AI tips generation β Quiz overlay β Dashboard analytics
Productionβready for local usage.