Project Status: [COMPLETED / ARCHIVED] > This project has reached the end of its development lifecycle. It was built to democratize access to Indian legal information using AI featuring a multilingual legal assistant, an automated document drafter, and a vision-based notice analyzer and successfully achieved its architectural goals. I am no longer actively maintaining or updating this repository.
(Leave the rest of your README below this line as a showcase of what the app does)
Bharat Juris is a next-generation AI legal assistant designed to bridge the gap between complex Indian laws and the common citizen. Built with Next.js and Llama-3 (via Groq), it acts as a virtual legal companion that democratizes access to justice.
Legal literacy in India is low, and professional legal advice is expensive. Bharat Juris solves this by providing instant, accurate, and simplified explanations of the Constitution of India, Bharatiya Nyaya Sanhita (BNS), and the Indian Penal Code (IPC). Whether you are a law student, a citizen seeking rights awareness, or someone confused by legal jargon, Bharat Juris is here to help.
-
Nyaya Sahayak (AI Legal Consultant) A high-speed AI legal assistant trained on the Bharatiya Nyaya Sanhita (BNS) and IPC. Contextual Understanding: Interprets colloquial queries like "Someone is building a wall in my land" and maps them to specific legal sections. Multilingual Support: Asks and answers in Hindi, Marathi, English, and more.
-
Document Analyzer Upload complex court notices or legal letters. Simplification: Breaks down legalese into plain English. Action Items: Tells you exactly what to do next and if the matter is urgent.
-
Instant Legal Drafter Create legally binding documents without a lawyer. Templates: Rent Agreements, Affidavits, and Notices. Customizable: Fills in your details automatically.
Unlike typical RAG (Retrieval-Augmented Generation) chatbots that simply fetch and stitch database snippets, Bharat Juris utilizes a Multi-Model Inference Engine powered by Groq.
| Feature | Standard RAG Chatbot | Bharat Juris (Groq Inference) |
|---|---|---|
| Speed | High Latency (Search + Retrieve + Generate) | Zero Latency (Direct LPU Inference) |
| Response Quality | "Stitches" random paragraphs together | Synthesizes legal intent like a human expert |
| Context | Struggles with vague queries | Understands situational context & nuance |
| Reliability | Prone to retrieval errors | Contextually Fluent & consistent |
- Framework: NextJs
- Language: TypeScript
- Styling: Tailwind CSS, Lucide React
- AI Inference: Groq
- Analytics: Vercel Analytics
- Deployment: Vercel
- Node.js 18+
- A Groq API Key
- Clone the repository
git clone [https://github.com/Macplayz/Bharat-Juris.git](https://github.com/Macplayz/Bharat-Juris.git)
cd Bharat-Juris- Install dependencies
npm install
Set up Environment Variables Create a .env.local file in the root directory:- Get Your Groq Api
GROQ_API_KEY=your_groq_api_key_hereRun the development server
npm run devOpen http://localhost:3000 with your browser to see the result.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
-
Fork the Project
-
Create your Feature Branch (git checkout -b feature/AmazingFeature)
-
Commit your Changes (git commit -m 'Add some AmazingFeature')
-
Push to the Branch (git push origin feature/AmazingFeature)
-
Open a Pull Request
Neelay Machha
Twitter: @PlayzMac
GitHub: Macplayz
Email: machhanilay@gmail.com
Made with ❤️ in India 🇮🇳