Skip to content

Vaquill-AI/contract-debugger

Repository files navigation

Contract Debugger

Debug your contracts before they debug you.

An AI-powered tool that analyzes legal contracts to find risks, loopholes, and unfavorable terms — explained in plain English.

Contract Debugger TypeScript License


Screenshots

Contract Analysis Dashboard

Clause Review Interface


Why Use This?

Reading contracts is tedious. Missing a bad clause can cost you thousands. Contract Debugger scans your documents and highlights what matters:

  • Finds Hidden Risks — Spots unfavorable terms, missing protections, and legal loopholes
  • Explains in Plain English — No law degree required to understand the issues
  • Suggests Better Language — Get AI-rewritten clauses that protect your interests
  • Scores Each Clause — See at a glance which parts need attention (Low → Critical)

How It Works

  1. Upload your contract (PDF or Word)
  2. Review the AI analysis of each clause
  3. Accept or revise suggested changes
  4. Export your reviewed contract

Quick Start

# Clone the repo
git clone https://github.com/Vaquill-AI/contract-debugger.git
cd contract-debugger

# Install dependencies
npm install

# Add your OpenAI API key
echo "OPENAI_API_KEY=sk-your-key-here" > .env

# Start the app
npm run dev

Open http://localhost:3000 and upload a contract.


What Contracts Work?

Any contract in PDF or DOCX format:

Type Examples
Employment Offer letters, employment agreements
NDAs Confidentiality agreements, mutual NDAs
Services Freelance contracts, consulting agreements
Leases Rental agreements, commercial leases
Vendor Supply agreements, procurement contracts
Licensing Software licenses, IP agreements

Tech Stack

  • Frontend: Next.js 15, React 19, Tailwind CSS
  • AI: OpenAI GPT-4o
  • Storage: IndexedDB (everything stays in your browser)
  • Parsing: pdf-parse, mammoth.js

Privacy First

Your documents never leave your device. The app stores everything locally in your browser's IndexedDB. Only the extracted text is sent to OpenAI for analysis — no files are uploaded to any server.


Deploy Your Own

One-click deploy to Vercel:

Deploy with Vercel

Or deploy manually:

npm run build
npm start

Environment Variables

Variable Required Description
OPENAI_API_KEY Yes Your OpenAI API key
OPENAI_MODEL No Model to use (default: gpt-4o)

License

MIT — use it however you want.


Disclaimer

This tool provides AI-generated analysis for informational purposes only. It is not legal advice. Always consult a qualified attorney for legal matters.

Releases

No releases published

Packages

 
 
 

Contributors