Contract Review That Thinks Like a Lawyer
ClauseLens is an AI-powered contract comparison tool that helps users analyze changes between two versions of a legal document. Upload your original and revised contracts to receive a complete risk report — every change detected, risk-scored, and explained in plain English.
- 🔍 Detects changes between two contract versions
⚠️ Risk scoring system: CRITICAL / MODERATE / MINOR- 💬 Explains legal changes in plain English
- ✅ Smart recommendations: Reject / Negotiate / Acceptable
- 📄 Supports PDF, DOCX, and TXT files
- ⚡ Fast contract analysis powered by AI
- 🔒 No login required
- 🧠 Clean and modern UI with smooth UX
- Open the application
- Upload your original contract
- Upload the revised contract
- Click Analyze My Contract
- Review the generated risk report and recommendations
- DOCX
- TXT
Maximum file size: 10MB per file
- Framework: Next.js 14 (App Router)
- Frontend: React + Tailwind CSS
- UI Components: shadcn/ui
- Animations: Framer Motion
- AI Model: Anthropic Claude (
claude-sonnet-4-20250514) - PDF Parsing:
pdf-parse - DOCX Parsing:
mammoth.js - Deployment: Vercel
git clone https://github.com/your-username/clauselens.git
cd clauselensnpm installCreate a .env.local file in the root directory and add:
ANTHROPIC_API_KEY=your_api_key_herenpm run devVisit:
http://localhost:3000ClauseLens can be deployed on any Node.js-compatible hosting platform, but Vercel is recommended.
-
Push your project to GitHub
-
Import the repository into Vercel
-
Add
ANTHROPIC_API_KEYin:- Project Settings → Environment Variables
-
Deploy the project
src/
├── app/
│ ├── components/
│ │ ├── Upload/
│ │ ├── Analysis/
│ │ ├── Report/
│ │ └── UI/
│ ├── api/
│ │ └── analyze/route.js
│ └── utils/
│ ├── extractText.js
│ ├── compareContracts.js
│ └── riskAnalysis.js| Name | Role |
|---|---|
| Amanullah | Architecture, AI pipeline, deployment |
| Fahad | API integration, backend logic |
| Khizra | File upload, PDF/DOCX parsing |
| Sehr | UI/UX design, landing page |
| Shafia | Documentation, product communication |
- No user authentication required
- No contract data is permanently stored
- Files are processed in-memory only
- Designed for hackathons, legal-tech demos, and rapid contract analysis
MIT — Free to use, modify, and improve.