Advanced contract risk analysis powered by AI. This project helps users identify potential risks, unfair clauses, and hidden liabilities in legal documents through a multi-platform ecosystem.
- AI-Powered Analysis: Leverages OpenAI to perform deep legal analysis of contract text.
- Real-Time Detection: Highlights immediate risks and suggestions as you type or upload.
- OCR Support: Extract text from images and PDF documents for seamless analysis.
- Smart Verdicts: Provides a risk score (1-10) and a clear verdict (Low, Medium, or High Risk).
- Multi-Platform:
- Frontend: A modern Next.js dashboard for detailed reports and history.
- Browser Extension: Seamlessly analyze contracts directly on any webpage.
- Backend: Robust Express server handling AI logic and document processing.
- Frontend: Next.js, React, Tailwind CSS, Chart.js, Socket.io
- Backend: Node.js, Express, OpenAI API, Multer (File uploads), Tesseract.js (OCR)
- Extension: Manifest V3, Chrome Extension API, Content Scripts
- Tools: TypeScript, ESLint, PostCSS
contract-scanner/
βββ backend/ # Express server & AI logic
βββ frontend/ # Next.js dashboard application
βββ extension/ # Chrome extension source code
βββ shared/ # Shared utilities and logic
- Backend: Navigate to
backend/, install dependencies withnpm install, add yourOPENAI_API_KEYto.env, and start withnpm start. - Frontend: Navigate to
frontend/, install dependencies withnpm install, and start withnpm run dev. - Extension: Load the
extension/folder as an unpacked extension in Chrome.
Disclaimer: This tool provides automated analysis for informational purposes only and does not constitute formal legal advice.