Inspiration

Legal contracts are written by lawyers, for lawyers. The average startup founder or small business owner has no real way to understand what they are signing, and a proper attorney review costs $300 to $800 per hour and takes up to a week.

Most people don't have that time or budget, so they sign and hope for the best. Sometimes that costs them far more than a legal review ever would have.

The problem is not that people are careless. The problem is that legal understanding is not accessible enough.

That is the problem Lexicon is built to solve.


What it does

Lexicon is an AI-powered contract analysis platform for startups and small businesses. Users paste in any legal agreement and within seconds receive a complete risk assessment.

Lexicon provides:

  1. A risk verdict with a visual gauge
  2. Severity-rated warnings for risky clauses
  3. A plain-English summary
  4. Negotiation-ready suggested edits
  5. A missing clause checklist

It works for:

  • NDAs
  • MSAs
  • Employment offers
  • Vendor agreements
  • Leases
  • Service agreements

Each warning explains what the clause says, what it means for the user, and what action they should take before signing.


How we built it

Built on Next.js 15 with React 19 and Tailwind CSS, deployed on Vercel.

Layer Technology
Frontend Next.js 15 + React 19
Styling Tailwind CSS
Design Custom neo-brutalist system
Deployment Vercel
State Zustand + localStorage
AI OpenAI-compatible API route

The backend is a Next.js API route with two modes:

  • Demo mode uses three built-in full-length contracts covering low, medium, and high risk.
  • Live mode sends the user's contract to an OpenAI-compatible model using a structured prompt.

The front end includes:

  • Custom loading animation
  • Document scanning animation
  • Scroll-triggered animations
  • Animated counters
  • Interactive risk gauge
  • Keyboard shortcuts
  • One-click copy on suggested edits
  • Full dark mode

Example output schema:

{
  "riskLevel": "medium",
  "confidence": 0.82,
  "warnings": [],
  "precautions": [],
  "suggestedEdits": []
}

Built With

Share this project:

Updates