Universal Legal Intelligence & High-Fidelity Analysis Platform
Legal Sentinel is a document-agnostic legal analysis engine designed to protect freelancers, small businesses, and individuals from hidden risks in legal instruments. From NDAs and Wills to complex Service Agreements, Legal Sentinel provides high-precision audits, structural risk heatmaps, and proactive "Sentry Peek" browser integration.
A document-agnostic architecture that identifies the legal instrument type and extracts document-specific "Key Pillars" (e.g., Liability, Intellectual Property, Termination) without hardcoded templates.
A visual representation of document health, identifying "Safe," "Caution," and "Danger" zones in the legal structure.
An interactive tilting scale that weighs rights and obligations between parties to determine who truly holds the leverage in a contract.
A proactive Chrome extension that auto-detects legal links (Terms of Service, Privacy Policies) on any website and injects a 🛡️ Sentinel Badge for one-click instant audits.
AI-driven suggestions for professional-grade redlines, allowing users to see exactly what to strike through and what to add for better protection.
- Frontend: Next.js 16.2.6, Tailwind CSS, Framer Motion
- Intelligence: OpenRouter AI (LLM Agnostic), Vercel AI SDK
- Parsing:
unpdf(Optimized serverless PDF extraction) - Extension: Chrome Manifest V3, Content Script Injection, Background Service Workers
-
Clone the repository
git clone https://github.com/yourusername/legal-sentinel.git cd legal-sentinel -
Install dependencies
npm install
-
Configure Environment Variables Create a
.env.localfile:OPENROUTER_API_KEY=your_api_key_here
-
Run Development Server
npm run dev
-
Load the Extension
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer Mode"
- Click "Load Unpacked" and select the
extensionfolder in this repository.
- Open Chrome and navigate to
Legal Sentinel is designed with privacy in mind. Document text is processed temporarily for analysis and is never stored on a remote database. History is persisted locally in the user's browser via localStorage.
Built for the Legal and Non Legal Minds. Protect your future, one document at a time.
