Indian Legal Assistant

February 6, 2026

Indian Legal Assistant
Reactjs
Typescript
Python
PostgresSQL

šŸ›ļø Indian Legal Assistant

A comprehensive AI-powered platform for legal research, analysis, and documentation focused on Indian law

Live Demo License TypeScript React

šŸ“‹ Overview

Indian Legal Assistant is a modern web application designed to assist legal professionals and individuals with intelligent legal research, case analysis, and documentation. The platform leverages AI and modern technologies to provide comprehensive legal assistance across various domains of Indian law.

✨ Key Features

šŸŽ™ļø Audio Transcription

  • Multi-language support (English, Hindi, Telugu)
  • Real-time audio recording and processing
  • AI-powered summarization of legal conversations
  • Secure storage and retrieval

šŸ“„ Document Analysis

  • PDF and text document processing
  • AI-powered legal document analysis
  • Text extraction and intelligent insights
  • Secure document storage

āš–ļø Case Law Research

  • Integration with Indian Kanoon API
  • Comprehensive case law database search
  • Detailed case information and citations
  • Search history management
  • Multi-source input processing (documents, audio, text)
  • AI-generated comprehensive case analysis
  • Applicable sections and legal requirements
  • Similar case recommendations

šŸ“Š Additional Features

  • Legal Code Analysis: IPC section search and related sections
  • Interactive Flowcharts: Guided legal process navigation
  • Crime Data Visualization: State-wise crime statistics on interactive map
  • Legal News: Latest legal news and updates

šŸ› ļø Tech Stack

Frontend

  • Framework: React 18 with TypeScript
  • Build Tool: Vite
  • Styling: Tailwind CSS
  • Routing: React Router
  • Notifications: React Hot Toast
  • Document Processing: PDF.js
  • Audio: React Media Recorder
  • AI: Google Generative AI

Backend

  • Server: Express.js on Node.js
  • API Client: Axios
  • CORS: Enabled for cross-origin requests
  • Environment: dotenv management

Database & Storage

  • Platform: Supabase
    • PostgreSQL database
    • User authentication
    • File storage
    • Real-time subscriptions

External APIs

  • Indian Kanoon API (Case Law)
  • World News API (Legal News)
  • Google Generative AI (Analysis)

šŸ—ļø Architecture

src/
ā”œā”€ā”€ api/          # API integration layer
ā”œā”€ā”€ components/   # Reusable React components
ā”œā”€ā”€ context/      # React context providers
ā”œā”€ā”€ data/         # Static data and constants
ā”œā”€ā”€ hooks/        # Custom React hooks
ā”œā”€ā”€ lib/          # Utility libraries
ā”œā”€ā”€ pages/        # Page components
ā”œā”€ā”€ services/     # Service layer
ā”œā”€ā”€ types/        # TypeScript type definitions
└── utils/        # Utility functions

šŸ—„ļø Database Schema

Tables

  • audio_transcripts: Audio recordings with transcriptions and summaries
  • documents: Uploaded documents with extracted text and analysis
  • case_analysis: Comprehensive legal case analyses
  • case_searches: Case law search history and results

Security

  • Row Level Security (RLS) enabled on all tables
  • User-specific data access policies
  • Secure file storage with user-specific buckets
  • Environment variable protection

šŸš€ Getting Started

Prerequisites

  • Node.js (v16+)
  • npm (v7+)
  • Supabase account
  • Google AI API key
  • World News API key
  • Indian Kanoon API token

Installation

  1. Clone the repository

    git clone https://github.com/akhilathuluri/Indian_Legal_Assistant.git
    cd Indian_Legal_Assistant
  2. Install dependencies

    npm install
  3. Environment setup Create a .env file:

    VITE_SUPABASE_URL=your_supabase_url
    VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
    VITE_GOOGLE_AI_KEY=your_google_ai_key
    VITE_WORLDNEWS_API_KEY=your_worldnews_api_key
    VITE_INDIANKANOON_API_TOKEN=your_indiankanoon_api_token
  4. Database setup

    • Create a Supabase project
    • Run migrations from supabase/migrations
    • Set up storage buckets
  5. Run development server

    npm run dev
  6. Build for production

    npm run build

šŸ’” Use Cases

  • Legal Professionals: Research case law, analyze documents, and manage legal documentation
  • Law Students: Study legal concepts, explore case precedents, and understand legal procedures
  • General Public: Access legal information, understand rights, and navigate legal processes

šŸ” Security Features

  • Authentication via Supabase
  • Row-level security policies
  • Secure API key management
  • User-specific data isolation
  • CORS protection

šŸ“ˆ Project Highlights

  • Full-stack development with modern TypeScript and React
  • AI integration for intelligent legal analysis
  • Real-time features with Supabase subscriptions
  • Responsive design with Tailwind CSS
  • API integration with multiple external services
  • Secure architecture with comprehensive data protection

šŸ¤ Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

šŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


Built with ā¤ļø by Akhil Athuluri