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.
- Upload a contract (PDF) through the Angular client.
- Extract — the API parses the document text with PdfPig and sanitizes it.
- Analyze — an audit pipeline sends the text to Google Gemini, constrained to return strict JSON instead of free-form prose.
- 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.
- 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
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.
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 startOr run everything with Docker:
docker compose up --buildRun the tests:
cd server && dotnet testAbdellah Sheikh — abdellahsheikh.dev · LinkedIn