Inspiration Every Indian citizen has rights — but most don't know them. We've all seen it: a restaurant forcing a service charge, a traffic cop demanding cash, a builder ghosting buyers for years. The problem isn't the law — India has strong laws. The problem is awareness. NyayaSpace was born from one simple frustration: why should knowing your rights require a lawyer?

What it does NyayaSpace is a civic grievance platform where Indian citizens can post real problems and instantly get AI-powered legal analysis. It tells you exactly which law applies, whether you're in the right, what steps to take, and which government portals to use — in plain, simple language. No jargon. No lawyer fees. Just answers.

How we built it

Backend: Node.js + Express serving a REST API Frontend: Vanilla HTML/CSS/JS — fast, lightweight, no framework overhead AI: Groq API (LLaMA 3.3 70B) with a custom legal knowledge base as the system prompt covering Indian consumer, housing, police, banking, and workplace laws Database: In-memory store (prototype) — designed to swap with PostgreSQL/Supabase in production

Challenges we ran into

Getting the AI to always return valid JSON — hallucinations would break the parser. Solved with strict system prompting and response cleaning. Building a meaningful legal knowledge base from scratch — reading through actual Acts, CCPA guidelines, RBI circulars, and Supreme Court judgements to make the AI responses trustworthy. Keeping the app free to run — switched from paid APIs to Groq's free tier without sacrificing response quality.

Accomplishments that we're proud of

The AI correctly identifies the exact Act and Section for real citizen problems — not generic advice Built a fully working prototype in a hackathon timeframe Zero cost to run — completely free stack making it accessible for anyone to deploy Real sample cases based on actual everyday problems faced by citizens in Gurugram

What we learned

How powerful a well-crafted system prompt is as a knowledge base — essentially fine-tuning without fine-tuning The depth of Indian civic law — citizens are far more protected than they realise How to build a clean, production-ready Node.js API with caching, error handling, and modular structure

What's next for NyayaSpace

Multi-language support — Hindi, Tamil, Bengali so it reaches Bharat, not just urban India Real database — Supabase/PostgreSQL so issues persist and build a public record Lawyer connect — verified lawyers can respond to escalated issues pro bono State-specific laws — each Indian state has its own rules; we want to cover all of them Mobile app — most citizens access internet via phone, not desktop RTI assistant — help citizens file Right to Information requests automatically

Built With

Share this project:

Updates