Skip to content

AI-powered web platform for analyzing contracts and detecting potentially harmful or hidden clauses.

Notifications You must be signed in to change notification settings

JhanME/hidden-clauses

Repository files navigation

Hidden Clauses

Next.js React Git Tailwind CSS TypeScript Google Gemini VSCode Vercel

About the Project

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.

Main Features

  • 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.

Technologies Used

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-pdf for visualization and pdf-parse (or similar) for text extraction.
  • Iconography: Lucide React for clean and consistent icons.

Getting Started

Follow these steps to run the project locally.

Prerequisites

  • Node.js (LTS version recommended)
  • npm

Installation

  1. Clone the repository

    git clone https://github.com/JhanME/hidden-clauses.git
    cd hidden-clauses
  2. Install dependencies

    npm install
  3. Configure environment variables Create a .env.local file in the root of the project and add your Google Gemini API key:

    GEMINI_API_KEY=your_api_key_here
  4. Run the development server

    npm run dev
  5. Open http://localhost:3000 in your browser to view the application.

Team


Made in the Gemini 3 Hackathon

About

AI-powered web platform for analyzing contracts and detecting potentially harmful or hidden clauses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •