Skip to content

oyelurker/LegalKlarity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

137 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LegalKlarity

Gen AI Exchange License Status Frontend


Watch Demo Video

Watch LegalKlarity in action: Simplifying legal complexity in seconds.

(Click the badge above to play the video)


🚩 The Challenge: Legal Jargon = Risk

"Legal documents—such as rental agreements, loan contracts, and terms of service—are often filled with complex, impenetrable jargon that is incomprehensible to the average person."

This complexity creates a significant information asymmetry. Individuals often unknowingly agree to unfavorable terms, exposing themselves to financial and legal risks. There is a pressing need for a tool that makes essential legal information accessible to everyone—from everyday citizens to small business owners.

🎯 The Objective: Demystifying with Gen AI

LegalKlarity answers this call. We have developed an intelligent solution using Google Cloud's Generative AI (Gemini) to demystify complex legal documents. Our platform acts as a reliable first point of contact, providing a private, safe, and supportive environment.

We empower users to:

  • Decipher complex clauses instantly
  • Summarize lengthy contracts into plain English
  • Identify hidden risks and red flags
  • Make informed decisions to protect themselves legally and financially

⚡ Key Features

Feature Description
📄 AI Document Analysis Upload contracts (PDF, DOCX) for instant, clause-by-clause analysis.
🎓 Role-Based Insights Tailored explanations for Students, Citizens, and Business Owners.
⚖️ Legal Case Explorer Search Indian Supreme Court & High Court cases with AI summaries.
📊 Smart Reports Generate professional PDF reports with risk assessments.
💾 Legal Vault Secure, encrypted storage for your personal legal documents.
🎨 Premium UI Accessible dark/light mode with a "Maroon & Gold" professional aesthetic.

🛠️ Technology Stack

Frontend

React TypeScript Vite TailwindCSS Firebase

Backend & AI

Node.js Express.js Python Gemini AI


⚠️ Hosting & Demo Note

Current Status:

  • Frontend: Live on Netlify 🚀
  • Backend: Currently Offline (Runs Locally) 🛠️

Why is the backend not hosted? Our AI models (Content Analyzer & Gemini integration) are computationally intensive and require significant RAM and optimization to run cost-effectively in a cloud environment. We are currently optimizing the backend for deployment on platforms like Google Cloud or Railway.

For the Hackathon demo, the Frontend is fully interactive, but AI analysis features will require the backend to be running locally on your machine.


📦 Installation & Setup

Prerequisites

  • Node.js 18+
  • Python 3.9+
  • Firebase Project Credentials
  • Google Gemini API Key

1. Clone Repository

git clone https://github.com/oyelurker/legalklarity.git
cd legalklarity

2. Frontend Setup

cd frontend
npm install
# Create .env file with your Firebase config
npm run dev

3. Backend Setup

cd backend
npm install
# Create .env file with your API keys
npm run dev

The app will be available at http://localhost:5173.


📞 Contact


Made for Gen AI Exchange Hackathon 25 🧬 Democratizing legal access in India.

About

A Generative AI-powered Legal Intelligence Platform that leverages Google Gemini and semantic NLP to perform instant risk assessment and document simplification, bridging the information gap for non-legal natives.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors