Hidden Clauses
Hidden Clauses is an essential tool designed to empower users in the face of legal complexity. Utilizing the power of Google Gemini Artificial Intelligence, our application analyzes contracts in PDF format to detect, highlight, and explain potentially abusive, risky, or confusing clauses—the "fine print" that often goes unnoticed.
The goal is simple but vital: Read what no one reads to protect what everyone signs.
This application was built as part of a Hackathon, demonstrating how AI can have a real and positive impact on people's everyday legal security.
- Intelligent Contract Analysis: Upload your PDF and let the AI scan every paragraph for unfavorable terms.
- Document Comparison: Upload two versions of a contract to identify subtle but critical changes between them.
- Chat with your Contract: Have specific doubts? Ask the document directly and get answers based on the legal context of the file.
- Sensitive Data Detection: Automatic identification of personally identifiable information (PII) before analysis to protect privacy.
- Modern and Intuitive Interface: Designed with the latest web technologies for a smooth and pleasant user experience.
This project leverages a modern and robust tech stack:
- Frontend & Framework: Next.js 16 with React 19 for optimal performance and server-side rendering.
- Language: TypeScript for safe and scalable code.
- Styling: Tailwind CSS 4 for fast, responsive, and visually appealing design.
- Artificial Intelligence: Google Gemini API for natural language processing and legal analysis.
- PDF Handling:
react-pdffor visualization andpdf-parse(or similar) for text extraction. - Iconography: Lucide React for clean and consistent icons.
Follow these steps to run the project locally.
- Node.js (LTS version recommended)
- npm
-
Clone the repository
git clone https://github.com/JhanME/hidden-clauses.git cd hidden-clauses -
Install dependencies
npm install
-
Configure environment variables Create a
.env.localfile in the root of the project and add your Google Gemini API key:GEMINI_API_KEY=your_api_key_here
-
Run the development server
npm run dev
-
Open http://localhost:3000 in your browser to view the application.
Made in the Gemini 3 Hackathon