Democratizing Access to Justice Through Artificial Intelligence
Mission Statement
India has over 50 million pending court cases. Millions of citizens cannot afford legal counsel. Nyay Saarthi bridges this gap by putting an AI-powered legal assistant, end-to-end case management, and secure virtual courts in the hands of every Indian — entirely free of charge.
- Why Nyay Saarthi?
- Key Features
- Tech Stack
- Quick Start
- Documentation
- Contributing
- Contributors
- License
The Indian judiciary faces a systemic crisis that affects hundreds of millions of citizens:
| Problem | Scale |
|---|---|
| Pending court cases | 50+ Million |
| Average time to resolve a civil case | 10–15 Years |
| Citizens unable to afford legal representation | Hundreds of Millions |
Nyay Saarthi is built to address this directly. The platform removes the three biggest barriers to legal access — cost, complexity, and distance — by digitizing the entire judiciary workflow and placing an AI legal assistant at every citizen's fingertips.
AI Legal Assistant (Vakil Friend) A conversational AI companion powered by Groq's Llama 3.1 that helps citizens understand their legal rights, navigate case filings, review documents, and get real-time answers in plain, accessible language.
Role-Based Dashboards Secure, tailored portals for every user type in the legal ecosystem: Litigants, Lawyers, Judges, Police, and Administrators — each with a workflow designed around their specific responsibilities.
End-to-End Case Management Full case lifecycle support from initial filing to final order, including a case diary, hearing timelines, document management, and status tracking.
Evidence Vault Structured digital evidence uploads with SHA-256 hash verification, creating a tamper-proof and legally admissible record for every case.
Digital FIR Handling Police can upload FIRs digitally. The AI instantly generates a structured summary and draft charge sheet, significantly reducing manual paperwork and processing time.
Virtual Courtrooms Native WebRTC-based video conferencing integrated directly into the case timeline for secure, seamless remote hearings — no third-party applications required.
Secure Authentication JWT-based stateless authentication with Spring Security, role-based access control, and multi-layer request filtering.
For complete setup instructions, environment configuration, and Docker deployment details, refer to the Detailed Setup Guide.
At a high level, the platform consists of three services that need to run concurrently:
| Service | Directory | Command |
|---|---|---|
| Frontend | frontend/nyaysetu-frontend/ |
npm install && npm run dev |
| Backend | backend/nyaysetu-backend/ |
mvn spring-boot:run |
| NLP Orchestrator | nlp-orchestrator/ |
uvicorn main:app --reload |
Prerequisites: Node.js >= 20, Java 17, Maven 3.9+, PostgreSQL 15+, Python 3.12+
For environment variables, copy .env.example to .env and fill in your values. A full reference of all required variables is documented in the Setup Guide.
| Document | Description |
|---|---|
| Setup Guide | Full database setup, environment variables, and Docker configuration |
| Architecture Overview | System design, component diagrams, and data flow |
| AI Integration Guide | Groq API and NLP orchestrator technical deep-dive |
| API Documentation | All REST endpoints with request and response specifications |
| Contributing Guidelines | Branching strategy, commit conventions, and PR workflow |
This project is part of GSSoC (GirlScript Summer of Code) 2026. Contributions are welcome from everyone, regardless of experience level.
Before opening a Pull Request:
| Requirement | Details |
|---|---|
| Read the guidelines | Review CONTRIBUTING.md for our branching and commit conventions |
| Link an issue | Every PR must reference the issue it closes (Closes #123) |
| Include visuals | UI-affecting PRs must include screenshots or a screen recording |
| Sync with main | Rebase or merge main into your branch before requesting review |
| Pass all checks | CI checks for lint, tests, and build must all pass |
Browse open issues and filter by good first issue to get started.
This chart updates automatically as new contributors merge pull requests. Want to see your avatar here? Pick up an issue and start contributing.
License to be added. All rights reserved until a license is formally declared.
Built with purpose for a more accessible Indian Judiciary.
Nyay Saarthi — न्याय हर किसी का अधिकार है।
