An open API service indexing awesome lists of open source software.

https://github.com/devilisback100/nyay_sethu_frontend

NyaySethu — a multilingual AI chatbot that helps you navigate Indian law, in your own language.
https://github.com/devilisback100/nyay_sethu_frontend

Last synced: 11 months ago
JSON representation

NyaySethu — a multilingual AI chatbot that helps you navigate Indian law, in your own language.

Awesome Lists containing this project

README

          

# ⚖️ NyaySathi
Empowering Justice with AI, Empathy, and Verified Legal Support

![License](https://img.shields.io/badge/License-MIT-blue.svg)
![Build](https://img.shields.io/badge/Build-Flask%20%7C%20React%20%7C%20Gemini%20%7C%20FAISS-blueviolet)
![Status](https://img.shields.io/badge/Status-Beta-green)

---

## 🗄️ Preview
NyaySathi – where technology meets justice.

![Hero Page](public/Resources/hero_page.png)

---

## 🌐 Live Links
- 🚀 **Frontend:** [https://www.nyaysethu.online/](https://www.nyaysethu.online/)
- 🧠 **Backend API:** Hosted via Render / HuggingFace Spaces

---

## 🧐 About the Project
NyaySathi is a two-sided legal help platform combining:
- AI chatbot for IPC/legal guidance
- Verified lawyers, NGOs, judges, and professors (NyaySathis)
- Appointment scheduling & chat
- Legal education for the public
- SOS & emotion detection for emergency help

---

## ✨ Key Features
| Feature | Description |
|----------------------------|-------------|
| 🧠 AI Legal Assistant | Real-time, multilingual legal help |
| 📚 IPC Section Finder | FAISS + Gemini-based intelligent search |
| 🗕️ Appointment Scheduler | Two-step dynamic appointment form |
| 👨‍⚖️ Verified NyaySathi | Role-based signup and dashboard |
| 💬 Chat Integration | User ↔ NyaySathi messaging |
| 💾 Legal Education | Static and animated tutorials |
| 📱 Responsive Design | Mobile-first experience |
| 🚘 SOS & Emotion Detector | Alerts for serious queries |

---

## ⚙️ Tech Stack
| Layer | Tools Used |
|--------------|------------|
| **Frontend** | React.js, Tailwind CSS, Vercel |
| **Backend** | Flask, JWT, REST APIs |
| **AI Layer** | Gemini Pro, FAISS (local vector search) |
| **Database** | MongoDB or SQLite |
| **Deployment** | Vercel (Frontend), Render/HuggingFace (Backend) |

---

## 🧐 AI Chat System
Our Gemini + FAISS-powered bot helps users understand the legal situation and guides them with IPCs and next steps.

![AI Chat Mobile](public/Resources/mobile_chat_page.png)

---

## 🗕️ Appointments & Profiles
### 👨‍⚖️ NyaySathi Profile View
Verified expert dashboard with credentials and case activity

![NyaySathi Profile](public/Resources/nyaysathi_profile.png)

### 👤 User Profile View
Track case progress, chat, and feedback

![User Profile](public/Resources/user_profile.png)

---

## 📘 Legal Help – Multilingual AI Assistance
### 🗣️ Step 1 – Choose Your Language
NyaySathi supports all 22 official Indian languages. Users can pick any language for help, and the system adapts instantly.

![Multilingual Support UI](public/Resources/legal_help_1.png)

### 🧠 Step 2 – AI Begins the Conversation
The chatbot responds in the selected language. This image shows a subset of actual conversation in action.

![Start of Legal Chat UI](public/Resources/legal_help_2.png)

### 🎥 Learn Your Rights with Tutorial GIF
Visual guide for legal awareness and actions.

![Legal Help Tutorial](public/Resources/legal_help_tut.gif)

---

## 🧭 Find Help Page
Smartly recommends nearby and categorized legal support systems:
- 👮‍♂️ Police Stations
- 🏢 NGOs
- 🤝 Legal Aid Volunteers
- ⚖️ Courts
- 👩‍⚖️ Women Help Centers

![Find Help Page](public/Resources/find_help_page.png)

---

## 📱 Mobile View Support
Optimized for accessibility on smaller screens.

![Mobile Hero](public/Resources/mobile_hero_page.png)
![Mobile Chat](public/Resources/mobile_chat_page.png)

---

## 📁 Project Structure
```
nyay-sathi/
├── client/
│ ├── pages/
│ ├── components/
│ ├── public/Resources/
│ └── App.js
├── backend/
│ ├── routes/
│ ├── models/
│ ├── faiss_engine.py
│ └── app.py
└── README.md
```

---

## 🔧 Local Setup
```bash
# Clone repository
git clone https://github.com/your-username/nyay-sathi.git
cd nyay-sathi

# Frontend setup
cd client
npm install
npm run dev

# Backend setup
cd ../backend
pip install -r requirements.txt
python app.py
```

.env file (backend):
```
JWT_SECRET=your_secret_key
GEMINI_API_KEY=your_gemini_key
```

---

## 🔮 Future Roadmap
- 🎤 Voice-to-Text for Hindi Queries
- 📃 FIR Decoder + PDF Parser
- 📊 Admin Analytics Panel
- 📞 Video Calling with NyaySathi
- 🧠 Agent-style LangGraph AI flows

---

## 📜 License
This project is the intellectual property of [Nyay Sethu].

© 2025 [Suresh Paliwal]. All rights reserved.

Unauthorized use, copying, distribution, or reverse engineering of this software, in part or full, is strictly prohibited. This software is intended for internal evaluation and private deployment only.

For commercial use or licensing inquiries, please contact: [sanj35814@gmail.com]

---

> ⭐ Loved the project? Star this repo and share it with your friends!