Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PolicyPeak - AI-Powered Privacy Policy Analyzer

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.

Project Overview

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.

Key Features

AI-Powered Analysis

  • 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

Comprehensive Privacy Assessment

  • 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

Technologies Used

Frontend

  • 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

Backend & Cloud

  • 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

AI & Machine Learning

  • 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

Getting Started

Prerequisites

  • Node.js 16+
  • AWS CLI configured
  • OpenAI API key
  • Chrome browser (for extension testing)

Setup

  1. Clone and Install
git clone https://github.com/ranjan2601/PolicyPeak
cd PolicyPeak_v2
npm install
  1. Configure Environment
# Create .env file with your OpenAI API key
echo "OPENAI_API_KEY=your-key-here" > .env
  1. Build Chrome Extension
npm run build
  1. Deploy AWS Infrastructure
cd aws
./deploy.sh
  1. Load Extension in Chrome
  • Open chrome://extensions/
  • Enable "Developer mode"
  • Click "Load unpacked" and select the dist folder

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages