π¨ Spot hidden risks before you click "I Agree."
ClauseGuard is a Chrome extension that scans Terms & Conditions, Privacy Policies, and legal contracts to flag hidden risks that could impact your rights, finances, or privacy. With instant alerts and plain-language summaries, youβll always know what youβre agreeing to β before you click "I agree."
- π‘ Protect yourself from unfair terms and hidden fees
- β‘ Save time with intelligent AI-powered risk detection
- π§ Understand legal jargon in plain English
- π Stay informed and in control of every agreement
Sign smart. Stay protected. Every time.
π½οΈ Demo Video
ClauseGuard.Demo.mp4
β¬οΈ Install from Chrome Web Store
- Smart Popup β On signup, login, checkout, or account setup pages, ClauseGuard automatically displays an icon. Click it to instantly analyze all legal links (Terms, Privacy, Policies) on that page.
- Scan Options β From the extension, you can:
- Upload a contract for instant analysis
- Paste or enter any link for review
- Scan the current page with one click
- Backend Magic β ClauseGuard sends the request to the backend (via the extension), where analysis happens.
- Plain-Language Results β Risky clauses are flagged, explained in simple terms, and highlighted back in the extension.
flowchart TD
A[User Action in Extension] -->|Send Document/Link| B[FastAPI Backend]
B -->|Link| C[Playwright Scraper]
B -->|Document| D[Doc Processor]
D -->|Chunking + Keyword Filtering| E[LLM Analyzer - LangChain + Gemini]
C -->|Extracted Text Chunks| E
E --> F[Risk Flags + Summaries]
F --> G[Return Results to Extension]
G --> H[Display to User]
- FastAPI β Lightweight, async API server
- Playwright β Scrapes and extracts text from URLs
- Document Processor β Handles uploaded contracts (max 10 MB), splits into chunks, keyword-filters, and routes only relevant sections for analysis
- LangChain + Gemini β LLM-powered analyzer that flags risks with custom prompts
- MongoDB β Stores cached results for links (24h) to optimize cost/performance
- Caching β Prevents re-analyzing the same link within 24 hours
- Privacy-first β No documents are permanently stored; everything is deleted immediately after analysis
-
Chrome Extension:
- Auto-detects Terms & Privacy links on pages
- Smart Popup icon shows up when relevant
- Options to scan current page, upload documents, or paste links
- Displays analysis results in a clean, user-friendly panel
- AWS EC2 β Hosts backend
- Docker + Docker Compose β Containerized deployment
- GitHub Actions β CI/CD pipeline for seamless updates
- AWS Application Load Balancer (ALB) β Balances traffic and provides HTTPS termination
- β No data stored β all documents are deleted immediately after analysis
- β³ 24h cache only for links β saves compute costs without exposing sensitive info
- π User-first design β transparency and privacy are core principles
- Frontend: Chrome Extension (JavaScript/HTML/CSS)
- Backend: FastAPI (Python)
- Scraping: Playwright
- LLM Framework: LangChain
- AI Model: Google Gemini
- Database: MongoDB (caching only)
- Infrastructure: AWS EC2, Docker, ALB, GitHub Actions
Got ideas or spotted something we can improve?
Open an issue or reach out β contributions and feedback are always welcome!
All rights reserved Β© 2025 ClauseGuard.