An advanced privacy protection Chrome extension built with React and TypeScript that provides real-time tracker blocking, AI-powered privacy policy analysis, and data flow visualization.
- 🛡️ Real-time Tracker Blocking: Detects and blocks third-party trackers as you browse
- 🧠 AI Privacy Policy Analysis: NEW! Uses Google Gemini to analyze privacy policies and identify risks
- 📊 Data Trust Score: Shows a live trust score (0-100) for each website based on privacy practices
- 🌊 Data Flow Visualization: Interactive visualization showing how your data flows between domains
- ⚡ One-Click Opt-out: GDPR/CCPA compliant opt-out tools for quick privacy protection
- 🔍 Client-side Tracking Detection: Monitors canvas fingerprinting and other tracking attempts
- ⚖️ Compliance Checking: Automatically checks GDPR, CCPA, and COPPA compliance
- 🎯 Risk Assessment: Identifies specific privacy risks and provides actionable recommendations
- Background Script (
src/background/index.ts): Handles web request monitoring, tracker detection, and data storage - Content Script (
src/content/index.ts): Detects privacy policies and provides opt-out UI - Injected Script (
src/injected/index.ts): Runs in page context to detect client-side tracking - Popup UI (
src/popup/): React-based interface showing privacy metrics and controls
- Express.js Server (
backend/): AI-powered privacy policy analysis - Google Gemini Integration: Real AI analysis instead of mock data
- Policy Scraper: Automatically finds and extracts privacy policies
- Production Ready: Deployed on Render with proper security
TrustScore: Displays website trust rating with visual indicatorsTrackerList: Shows detected trackers with blocking statusPrivacyAnalysis: Enhanced! Now shows real AI analysis resultsDataFlowVisualization: Interactive graph of data flows between domainsActionButtons: Quick controls for blocking and opt-out actions
git clone https://github.com/your-username/kavach-privacy-guardian.git
cd kavach-privacy-guardiancd backend
npm install
npm run setupGet your Gemini API key:
- Visit Google AI Studio
- Create an API key
- Add it to
backend/.env
Start backend:
npm run devcd ../ # Back to root directory
npm install# Development build with watch mode
npm run dev
# Production build
npm run build- Build the extension:
npm run build - Open Chrome →
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" → Select
distfolder - 🎉 Start browsing with AI-powered privacy protection!
- Backend:
http://localhost:3000 - Real-time AI analysis with local Gemini API calls
- Hot reload for both frontend and backend
- Backend deployed to Render: https://kavach-hackolution.onrender.com
- Real AI-powered privacy analysis in production
- Rebuild extension for production use:
npm run build
- Setup Guide: Detailed setup instructions
- Backend Deployment: Deploy to Render
- Backend README: API documentation
webRequest: Monitor and analyze network requestsdeclarativeNetRequest: Block tracking requestsstorage: Persist user preferences and site datatabs: Track active tabs and website changesscripting: Inject content scripts
This extension prioritizes user privacy by:
- No data collection: All analysis happens locally and via your own API
- Transparent operations: Open source code for full transparency
- Your own API: You control the backend and API keys
- Secure communication: HTTPS-only API calls
- Local storage only: No external data transmission except for analysis
- GDPR/CCPA compliance: Built-in compliance checking tools
- ✅ Real AI Analysis: Replaced mock data with Google Gemini AI
- ✅ Automatic Policy Detection: Finds privacy policies automatically
- ✅ Comprehensive Risk Assessment: Detailed privacy risk analysis
- ✅ Compliance Checking: GDPR, CCPA, COPPA status checking
- ✅ Production Ready: Backend deployable to Render
- ✅ Better Error Handling: Graceful fallbacks when AI is unavailable
- ✅ Cost Effective: Free tier available for both Render and Gemini
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini AI for privacy policy analysis
- Render for free backend hosting
- Chrome Extensions API for browser integration
- React ecosystem for modern UI development
- 📖 Check SETUP.md for detailed setup instructions
- 🚀 See backend/DEPLOY.md for deployment guide
- 🐛 Report issues on GitHub Issues
- 💬 Discuss features in GitHub Discussions
Built with ❤️ for digital privacy advocates
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests and ensure builds pass
- Submit a pull request
MIT License - see LICENSE file for details
- Enhanced AI privacy policy analysis
- More comprehensive tracker database
- Custom blocking rules
- Export privacy reports
- Integration with popular privacy services