Inspiration
Privacy policies are opaque legal documents that most users ignore. I saw an opportunity to leverage browser-based AI to decode these complex texts, making data handling practices transparent and accessible to everyone.
What it does
Legal AI analyzes privacy policies in real-time, providing risk assessments across key privacy dimensions. The extension breaks down complex policies into clear explanations and concrete findings, displayed in an intuitive side panel.
How we built it
- Chrome Extensions Manifest V3 framework
- Gemini Nano for local AI processing
- GPT Tokenizer for efficient text chunking
- Preact for lightweight UI components
- Radix for accessibility-first components
- Tailwind CSS for robust styling
Challenges we ran into
- Optimizing Gemini Nano for browser performance
- Cleaning webpage text extraction from diverse structures
- Crafting effective prompts for concise yet thorough analysis
- Managing token limits through parallel chunk processing
Accomplishments that we're proud of
- Built a completely local, privacy-respecting analyzer
- Achieved reliable risk assessments with small LLM
- Created an accessible, user-friendly interface
- Maintained speed while processing large documents
What we learned
- Modern Chrome Extension architecture
- Privacy-centric application design
- Legal document parsing techniques
- Small LLM optimization for complex analysis
What's next for Legal AI
- Multi-language support
- User-defined risk thresholds
- Policy comparison tools
- AI-powered policy search and explanation
Built With
- gemini
- preact
- radix
- tailwind
Log in or sign up for Devpost to join the conversation.