Skip to content

adisingh-cs/Murdock

Repository files navigation

Murdock Logo

MURDOCK

AI-Powered Indian Legal Document Compiler

License Contributing Live Demo

"A fighting chance in YOUR legal system."


⚖️ The Mission

Murdock enables Indian citizens, lawyers, businesses, and developers to generate legally structured, court-acceptable plain-paper documents using AI assistance.

🏗️ Technical Architecture

Murdock is built as a modular pipeline that isolates complex legal logic from the interface. It turns messy, unstructured facts into high-fidelity, compliant legal JSON.

sequenceDiagram
    participant U as User Input
    participant N as Normalizer (TS)
    participant E as Engine (Modules)
    participant A as AI Structuring (LLM)
    participant V as Validator (Schema)
    participant D as Document (PDF/MD)

    U->>N: Raw Facts (Voice/Text)
    N->>E: Clean Data
    E->>A: Contextual Mapping
    A-->>E: Structured Clauses
    E->>V: Compliance Check
    V-->>E: 100% Validated
    E->>D: Professional Template
    D-->>U: Final Legal Document
Loading

🛠️ Tech Stack

Built with a focus on precision, speed, and scalability:

  • Frontend: React 18 + Vite + Tailwind CSS + shadcn/ui + Framer Motion
  • Authentication: Supabase Auth
  • Backend APIs: Netlify Functions (Node.js/TypeScript)
  • Database: Supabase PostgreSQL
  • Infrastructure: Fully serverless (Netlify + Supabase)

📦 Core Features

  • 7 Core Legal Modules: Consumer Complaints, RTI Applications, Legal Notices, FIR Drafts, Employment Grievances, Rental Disputes, Banking/UPI Frauds
  • Multilingual Support: English, Hindi, Marathi, Gujarati with localized legal glossaries
  • Async AI Generation: Queue-based processing using Netlify Background Functions
  • Secure Authentication: Role-based access via Supabase Auth
  • Zero-Infra Architecture: Fully serverless deployment

🚀 Getting Started

Prerequisites

  • Node.js (v18+)
  • npm / pnpm / yarn

Installation

  1. Clone the repository:

    git clone https://github.com/adisingh-cs/Murdock.git
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev

Tip

Create a .env.local file with your VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY.

🌐 Deployment (Netlify)

Environment Variables

# Supabase Keys
VITE_SUPABASE_URL=your_project_url
VITE_SUPABASE_ANON_KEY=your_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key

# AI Provider Key
OPENAI_API_KEY=your_openai_api_key

Build Settings

  • Build Command: npm run build
  • Publish Directory: dist

🤝 Contributing

We are building in public. We welcome contributions from both developers and legal experts:

  • Coders: Build new legal modules or improve AI pipelines
  • Lawyers: Validate and improve legal accuracy across jurisdictions

Please read our CONTRIBUTING.md for detailed guidelines.

📄 License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.


Built with ❤️ by Aditya Singh

Releases

No releases published

Packages

 
 
 

Contributors

Languages