Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โš–๏ธ JurisAI - AI-Powered Legal Assistant Platform

.NET 10 Blazor Server Azure AI Azure Maps QuestPDF License

Intelligent Legal Assistance for India's Justice System

A multi-stakeholder AI-powered legal platform supporting Citizens, Lawyers, Police, and Administrators with intelligent case management, investigation assistance, cybercrime tracking, and real-time legal guidance โ€” inspired by Maharashtra Police's MahaCrimeOS AI.

Features โ€ข Tech Stack โ€ข AI Integration โ€ข Installation โ€ข Configuration โ€ข Team


โš ๏ธ Important Disclaimer

This project is configured with the developer's Azure AI Agent Service, Azure Maps, and other API credentials for demonstration purposes only.

You MUST replace all API keys, endpoints, and credentials in appsettings.json with your own before deploying or using this application. The developer's services may be deactivated, rate-limited, or removed at any time without notice.

The platform currently uses in-memory JSON storage โ€” all data resets on app restart. For production use, integrate a persistent database (Azure Cosmos DB, SQL Server, etc.).


Overview

JurisAI is an innovative AI-powered web application designed to modernize India's legal ecosystem. The platform provides intelligent assistance across the full legal workflow โ€” from FIR drafting and case management to phone intelligence analysis and cybercrime investigation โ€” all powered by Azure AI and accessible in 8 Indian languages.

Key Highlights

  • ๐Ÿค– Azure AI Agent โ€” Intelligent legal chat, FIR drafting, and investigation guidance
  • ๐Ÿ” Phone Intelligence Dashboard โ€” Telecom, banking, OSINT, and CDR analysis
  • ๐Ÿ“‹ Case Management โ€” Full lifecycle tracking with BNSS statutory deadlines
  • ๐Ÿ›ก๏ธ Cybercrime Hub โ€” Scam reporting, pattern detection, and emergency SOS
  • ๐Ÿ“– Legal Database โ€” IPC, BNS 2023, IT Act 2000, DPDP Act 2023, Constitution of India
  • ๐ŸŒ Multilingual โ€” Hindi, English, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada
  • ๐Ÿ‘ฅ Role-Based Access โ€” Citizen, Lawyer, Police, and Admin dashboards
  • ๐Ÿ“„ PDF Export โ€” Generate FIR drafts, legal notices, and reports as PDFs

Features

๐Ÿ  Core Modules

Module Description
AI Legal Chat Conversational legal assistant powered by Azure AI Agent
Case Management Create, search, track, and manage legal cases
FIR Generator AI-powered FIR drafting with PDF export
Case Tracker Timeline visualization of case events
Deadline Tracker BNSS statutory deadline calculation & alerts

๐Ÿ” Investigation & Intelligence

Module Description
Phone Intelligence Phone number lookup across telecom, banking, and OSINT sources
CDR Analysis Call Detail Record parsing, pattern detection, and visualization
Suspect Network Relationship mapping and communication graph analysis
Evidence Custody Digital evidence chain-of-custody with SHA-256/MD5 verification
CaseIQ AI-guided investigation workflow and recommendations
Bank Freeze Suspicious account freeze request management

๐Ÿ›ก๏ธ Cybercrime & Safety

Module Description
Cybercrime Hub Cybercrime resources, incident analysis, and case tracking
Scam Hub Trending scams, alerts, and pattern database
Report Scam Citizen scam reporting with categorization
Emergency SOS GPS-based emergency alerts with legal rights display

๐Ÿ“š Legal Reference

Module Description
Legal Database Searchable IPC, BNS 2023, IT Act 2000, DPDP Act 2023
Constitution Full Indian Constitution browser with article search
Precedents Landmark judgments and case law database
Legal Notices 30+ legal notice templates with auto-generation

๐Ÿ‘ค Administration

Module Description
Admin Dashboard System overview and management
User Management Create, edit, suspend, and verify user accounts
Reports Analytics dashboard with charts and exports
Settings Theme, language, and preference management

Role-Based Access Control

Role Access
Citizen File FIR drafts, track cases, Emergency SOS, report scams, AI legal chat, search laws/precedents
Police All Citizen features + Phone Intelligence, CDR Analysis, Evidence Custody, Deadline Tracker, CaseIQ, Suspect Network, Legal Notices
Lawyer All Citizen features + Case management, precedent research, legal database, case assignment
Admin All features + User Management, Verification Center, Reports Dashboard, System Settings

Tech Stack

Backend

  • .NET 10 โ€” Latest .NET framework
  • ASP.NET Core Blazor Server โ€” Interactive server-side components with SignalR
  • Azure AI Agent Service โ€” Intelligent chat and document generation
  • QuestPDF โ€” PDF document generation

Frontend

  • Razor Components โ€” Component-based UI architecture
  • Bootstrap 5 โ€” Responsive layout framework
  • Bootstrap Icons โ€” Modern iconography
  • Custom CSS โ€” 50+ stylesheets with dark mode support

AI & Cloud Services

  • Azure AI Foundry โ€” AI Agent for legal Q&A, FIR drafting, investigation guidance
  • Azure Maps โ€” Geolocation, geocoding, and map visualization
  • Azure Identity โ€” Managed identity and authentication

Data Storage (Phase 1)

  • In-memory JSON โ€” Lightweight storage for development
  • JSON configuration files โ€” Case timelines, legal notice templates

AI Integration

Current Setup: Azure AI Agent Service

The platform uses Azure AI Foundry to host an AI Agent that provides:

  • Legal Q&A โ€” Answer questions about Indian laws, procedures, and rights
  • FIR Drafting โ€” Generate structured FIR drafts from incident descriptions
  • Investigation Guidance โ€” AI-powered case analysis and next-step recommendations
  • Document Generation โ€” Legal notices, case summaries, and reports

Configuring Your Own AI Agent

โš ๏ธ The current appsettings.json contains the developer's Azure AI Agent endpoint. You must set up your own Azure AI Agent Service.

  1. Create an Azure AI Foundry project
  2. Deploy an AI Agent with legal domain knowledge
  3. Update appsettings.json:
{
  "AzureAgent": {
    "ProjectEndpoint": "https://<your-resource>.services.ai.azure.com/api/projects/<your-project>",
    "AgentName": "<your-agent-name>",
    "TenantId": "<your-tenant-id>"
  }
}

Azure Maps Integration

Used for geolocation in Emergency SOS, jurisdiction lookup, and nearby services mapping.

{
  "AzureMaps": {
    "ClientId": "<your-client-id>",
    "SubscriptionKey": "<YOUR_AZURE_MAPS_SUBSCRIPTION_KEY>"
  }
}

Installation

Prerequisites

Quick Start

  1. Clone the repository
git clone https://github.com/JaswantVathanam/JurisAI.git
cd JurisAI
  1. Install dependencies
dotnet restore
  1. Configure API keys (see Configuration)

  2. Run the application

dotnet run
  1. Open in browser
https://localhost:5031

Configuration

Update appsettings.json with your own credentials:

{
  "AzureAgent": {
    "ProjectEndpoint": "<your-azure-ai-endpoint>",
    "AgentName": "<your-agent-name>",
    "TenantId": "<your-tenant-id>"
  },
  "AzureMaps": {
    "ClientId": "<your-maps-client-id>",
    "SubscriptionKey": "<your-maps-subscription-key>",
    "DefaultCenter": {
      "Latitude": 13.0827,
      "Longitude": 80.2707,
      "City": "Chennai"
    }
  }
}

Required Azure Services

Service Purpose Setup Guide
Azure AI Foundry AI Agent for legal chat & document generation Docs
Azure Maps Geolocation & mapping Docs
Azure Identity Authentication & managed identity Docs

Project Architecture

JurisAI/
โ”œโ”€โ”€ Program.cs                    โ†’ Service registration & app startup
โ”œโ”€โ”€ Components/
โ”‚   โ”œโ”€โ”€ Pages/                    โ†’ 29 Razor pages (main UI)
โ”‚   โ”œโ”€โ”€ Layout/                   โ†’ App layout & navigation
โ”‚   โ””โ”€โ”€ Shared/                   โ†’ Reusable components
โ”œโ”€โ”€ Services/                     โ†’ 40+ backend services
โ”‚   โ”œโ”€โ”€ AzureAgentService.cs      โ†’ Azure AI Agent integration
โ”‚   โ”œโ”€โ”€ AILegalChatService.cs     โ†’ Legal Q&A processing
โ”‚   โ”œโ”€โ”€ CaseService.cs            โ†’ Case CRUD operations
โ”‚   โ”œโ”€โ”€ PhoneIntelligenceService.cs โ†’ Phone number analysis
โ”‚   โ”œโ”€โ”€ FIRDraftService.cs        โ†’ FIR document generation
โ”‚   โ”œโ”€โ”€ EvidenceCustodyService.cs  โ†’ Evidence chain tracking
โ”‚   โ””โ”€โ”€ ...                       โ†’ 35+ more services
โ”œโ”€โ”€ Models/                       โ†’ 24 data models
โ”œโ”€โ”€ Controllers/                  โ†’ PDF export API
โ”œโ”€โ”€ Data/                         โ†’ JSON configuration files
โ””โ”€โ”€ wwwroot/                      โ†’ CSS, JS, and static assets

Multilingual Support

JurisAI supports 8 Indian languages to ensure accessibility across India:

Language Code Region
English en Pan-India
เคนเคฟเคจเฅเคฆเฅ€ (Hindi) hi North India
เฆฌเฆพเฆ‚เฆฒเฆพ (Bengali) bn West Bengal, Tripura
เฎคเฎฎเฎฟเฎดเฏ (Tamil) ta Tamil Nadu
เฐคเฑ†เฐฒเฑเฐ—เฑ (Telugu) te Andhra Pradesh, Telangana
เคฎเคฐเคพเค เฅ€ (Marathi) mr Maharashtra
เช—เซเชœเชฐเชพเชคเซ€ (Gujarati) gu Gujarat
เฒ•เฒจเณเฒจเฒก (Kannada) kn Karnataka

Our Team

Development Team

I'm very grateful to acknowledge the dedicated team members who contributed to the development of this platform:

  1. Ligoris Cabrini Devanandraj A (https://github.com/ligorisen)
  2. Sandhiya S (https://github.com/Sandhiya2110)
  3. Rishika Ponnalagappan (https://github.com/Rishika057)

Supervisors & Mentors

Special thanks to my mentor for his invaluable guidance:


Acknowledgments

  • Microsoft โ€” For .NET 10, Blazor Server, Azure AI Foundry, and Azure Maps
  • QuestPDF โ€” For excellent PDF generation capabilities
  • The Open Source Community โ€” For the libraries and tools that made this possible
  • Indian Legal Professionals โ€” For domain expertise and validation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

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

Contact

For questions, feedback, or support, please open an issue on GitHub.


Made with โค๏ธ for India's Justice System

Empowering legal access through intelligent technology

About

AI legal platform built on Indian laws and workflows

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages