# Legal Lens AI: Simplify Terms of Service with AI

Inspiration

We've all done it—clicking "I Accept" on Terms of Service without reading a single word. These documents are deliberately lengthy and complex, designed to discourage users from understanding what they're agreeing to. Legal Lens AI was born from my frustration with this common problem, aiming to bring transparency and clarity to digital agreements that impact our daily lives.

What it does

Legal Lens AI is a Chrome extension powered by Google's Gemini AI that translates dense legal jargon into clear, understandable language. my 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

Users simply paste the terms of service text into our analyzer, and within seconds receive a breakdown that helps them make informed decisions about digital agreements.

How I built it

We built Legal Lens AI using a modern tech stack:

  • React for a responsive, component-based UI
  • React Router for seamless navigation between views
  • Tailwind CSS for clean, efficient styling
  • Google's Gemini AI API for natural language processing
  • Chrome Extension API for browser integration
  • Webpack for bundling and optimization

Challenges we ran into

  • Designing effective prompts for Gemini AI to consistently produce structured, accurate analyses
  • Managing API key security in a browser extension environment
  • Creating an intuitive UI that presents complex information simply

Accomplishments that I am proud of

  • Building a tool that addresses a genuine pain point in digital literacy
  • Successfully integrating Gemini AI to produce valuable, actionable insights
  • Creating a polished, intuitive user experience that makes complex information accessible

What I learned

  • How to integrate react into a chrome extension
  • How to use tailwind for styling
  • Using Gemini Api to analyze text

What's next for Legal Lens AI

  • Auto-detection of Terms of Service on websites
  • Comparison feature to evaluate privacy policies against industry standards
  • multiple language support

Built With

Share this project:

Updates