Skip to content
aaas72Public

About

AI-powered legal contract auditing SaaS that flags risky clauses and suggests safer wording. Angular · ASP.NET Core · Gemini.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

LEX.AUDIT

AI-powered legal-tech platform that audits contracts for risky clauses — such as perpetual non-competes or one-sided IP transfers — and translates legalese into clear, actionable insight.

Angular ASP.NET Core C# Gemini Tailwind CSS Docker

How It Works

  1. Upload a contract (PDF) through the Angular client.
  2. Extract — the API parses the document text with PdfPig and sanitizes it.
  3. Analyze — an audit pipeline sends the text to Google Gemini, constrained to return strict JSON instead of free-form prose.
  4. Deliver — results are persisted and pushed back to the client in real time over SignalR, then rendered as a health score, severity-ranked findings and suggested rewrites.

Features

  • Clause-level risk detection with severity levels and an overall contract health score
  • Plain-language explanations and suggested safer wording for each flagged clause
  • Real-time progress and results via WebSockets (SignalR hub)
  • JWT authentication with BCrypt password hashing
  • Distinctive "editorial brutalism" UI — monochrome palette on a Swiss typographic grid

Architecture

The backend follows Clean Architecture:

server/src/
├── LexAudit.Domain/          # Entities, enums, value objects — no dependencies
├── LexAudit.Application/     # Use cases, DTOs, interfaces, audit pipeline
├── LexAudit.Infrastructure/  # EF Core persistence, migrations, PDF parsing, AI client
├── LexAudit.Api/             # Controllers, SignalR hubs, auth, OpenAPI/Swagger
└── LexAudit.Tests/           # NUnit + Moq unit tests

client/                       # Angular 18 + Tailwind CSS, served by Nginx

See ARCHITECTURE.md for the full design document.

Getting Started

Requirements: .NET SDK, Node.js 20+, a Google Gemini API key

# API
cd server
dotnet restore
dotnet run --project src/LexAudit.Api

# Client (in a second terminal)
cd client
npm install
npm start

Or run everything with Docker:

docker compose up --build

Run the tests:

cd server && dotnet test

Author

Abdellah Sheikh — abdellahsheikh.dev · LinkedIn

About

AI-powered legal contract auditing SaaS that flags risky clauses and suggests safer wording. Angular · ASP.NET Core · Gemini.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages