A Chrome extension that uses Google's Gemini AI to translate complex Terms of Service agreements into plain language summaries.
Legal Lens AI empowers users to understand what they're agreeing to when they click "I Accept" on Terms of Service agreements. By leveraging the power of Google's Gemini AI, our extension:
- Analyzes Terms of Service agreements with advanced AI
- Provides a concise, plain-language summary of key points
- Highlights potential concerns and red flags users should be aware of
- Presents results in a clean, user-friendly interface
- Clone this repository or download the latest release
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in the top right)
- Click "Load unpacked" and select the project directory
- The extension icon should appear in your browser toolbar
- Clone this repository
- Install dependencies:
npm install - Get a Gemini AI API key from Google AI Studio
- Create a
.envfile in the root directory with your API key:REACT_APP_GEMINI_API_KEY=your_api_key_here - Build the extension:
npm run build - Load the extension in Chrome as described in the "For Users" section
- Click on the Legal Lens AI extension icon in your browser
- Click "Get Started" to begin
- Paste your terms of service text into the analyzer
- Click "Analyze" to receive a simplified summary and list of potential concerns
- Navigate back to analyze more text or return to the home screen
- React.js - Frontend UI library
- React Router - Navigation and routing
- Tailwind CSS - Styling and UI components
- Google's Gemini AI API - Natural language processing
- Chrome Extension API - Browser integration
- Webpack - Module bundling
- Clean, Intuitive Interface: A modern UI that makes complex information accessible
- AI-Powered Analysis: Leveraging Gemini AI for accurate summaries and concern detection
- Responsive Design: Adapts to different browser window sizes
- Robust Error Handling: Graceful handling of API failures and edge cases
For development with auto-rebuild:
npm run dev
src/components/App.jsx- Main application component with routingsrc/components/routes/- Page components for different viewssrc/services/geminiService.js- Gemini AI integration servicepublic/- Static assets and HTML templatedist/- Compiled extension files (output from build)
