A comprehensive Chrome extension that uses advanced AI and machine learning to analyze website privacy policies, providing users with intelligent insights, risk assessments, and comparative analysis.
PolicyPeak is a sophisticated privacy analysis system that combines a Chrome extension frontend with a powerful AWS-based backend featuring custom ML models, RAG (Retrieval-Augmented Generation), and vector databases. The system automatically detects when users visit login pages, extracts privacy policies, and provides intelligent analysis using multiple AI techniques.
- LLM Integration: OpenAI GPT models for intelligent policy interpretation
- Custom ML Models: Privacy-specific classification, sentiment analysis, and red flag detection
- RAG System: Comparative analysis using similar policy contexts
- Vector Embeddings: Semantic search and similarity matching
- Risk Scoring: 0-100 privacy risk assessment
- Red Flag Detection: Automated identification of concerning practices (4 severity levels)
- Data Collection Analysis: Detailed breakdown of collected data types
- User Rights Assessment: Evaluation of user control and privacy rights
- Sentiment Analysis: Policy language user-friendliness rating
- Chrome Extension: Manifest V3, content scripts, background service workers
- React 18: Modern UI framework with TypeScript
- Webpack 5: Module bundling and optimization
- Chrome APIs: Tab management, messaging, storage
- AWS Lambda: Serverless compute for policy processing
- API Gateway: RESTful API with HTTP routing
- DynamoDB: NoSQL database for metadata and caching
- OpenSearch: Vector storage and semantic search
- S3: Object storage and data persistence
- CloudFormation: Infrastructure as Code
- OpenAI API: GPT models for policy analysis
- Custom ML Models: Classification, sentiment analysis, anomaly detection
- LangChain: Document processing and text chunking
- Vector Embeddings: text-embedding-ada-002 for semantic understanding
- RAG Architecture: Retrieval-augmented generation for contextual analysis
- Node.js 16+
- AWS CLI configured
- OpenAI API key
- Chrome browser (for extension testing)
- Clone and Install
git clone https://github.com/ranjan2601/PolicyPeak
cd PolicyPeak_v2
npm install- Configure Environment
# Create .env file with your OpenAI API key
echo "OPENAI_API_KEY=your-key-here" > .env- Build Chrome Extension
npm run build- Deploy AWS Infrastructure
cd aws
./deploy.sh- Load Extension in Chrome
- Open
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the
distfolder