Lex AI is an advanced, AI-powered legal research and case intelligence platform. It transforms raw, chaotic case documents into structured, instantly searchable, and interactive intelligence. Designed specifically for legal professionals, Lex AI provides AI-driven insights that are strictly grounded in your actual uploaded documents and verified legal databases, eliminating hallucinations and saving countless hours of manual review.
- 📚 Centralized Document Library: One central, instantly searchable library for all case documents, organized by client and matter.
- 💬 Grounded AI Document Chat: Ask complex questions about your uploaded documents and get AI answers that are grounded in the text. Every claim includes clickable quote references that jump exactly to the source location in the document.
- 🗺️ Interactive Argument Mapping: Visualize your case as an interactive graph. See exactly how claims, supporting evidence, and contradictions connect across all your documents.
- 🔍 Verified Citation Search: Search the CanLII database using natural language. Lex AI analyzes the results, extracts key passages, and provides verified legal citations—with a full audit trail and zero hallucinations.
- 💼 Authority Binder Export: Automatically build curated binders of key authorities and export them as structured, audit-ready JSON packs.
- 🔒 Enterprise-Grade Security & Governance: Built for stringent infosec reviews. Features include strict matter scoping, SSO-ready access control, immutable audit logs, and automated retention policies.
This project is a modern, full-stack web application built with the following technologies:
- Framework: Next.js (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: shadcn/ui, Radix UI
- Animations: Framer Motion
- Icons: Lucide React
Follow these instructions to set up the project locally.
Ensure you have Node.js (v18+) and npm (or pnpm, yarn) installed.
-
Clone the repository
git clone https://github.com/yourusername/lex-ai.git cd lex-ai -
Install dependencies
npm install
-
Set up Environment Variables Create a
.env.localfile in the root directory and add the necessary environment variables (e.g., Database URLs, AI Provider API Keys, Authentication secrets).# Example .env.local NEXT_PUBLIC_APP_URL="http://localhost:3000"
-
Run the Development Server
npm run dev
-
View the Application Open http://localhost:3000 with your browser to see the result.
.
├── app/ # Next.js App Router (Pages, Layouts, API routes)
│ ├── api/ # Backend API routes (Document processing, search, embeddings)
│ ├── dashboard/ # Main application interface and workspace
│ └── page.tsx # Public landing page
├── components/ # Reusable React components (UI elements, Layouts)
│ ├── documents/ # PDF & DOCX viewers integrations
│ └── ui/ # shadcn/ui generic components
├── lib/ # Utility functions, helpers, and configurations
├── public/ # Static assets (images, fonts, formatting)
└── styles/ # Global CSS files (Tailwind configuration)
Not legal advice. The output generated by Lex AI requires human review by a qualified attorney. The platform acts as a research assistant and does not replace professional legal counsel.
This project is licensed under the MIT License - see the LICENSE file for details.