LawShield
LawShield is a legal awareness and personal safety
Created on 11th October 2026
•
LawShield
LawShield is a legal awareness and personal safety
The problem LawShield solves
LawShield was built to dismantle the barriers of legal illiteracy and intimidation, specifically focusing on women's safety and citizen empowerment in India. Currently, the justice system is heavily gatekept by dense legal jargon (like the new BNS and DPDP acts), making it nearly impossible for the average citizen—especially victims of harassment or domestic abuse—to understand their rights without paying exorbitant legal fees.
Furthermore, existing AI tools require users to upload highly sensitive personal data to the cloud, creating massive privacy risks for victims of domestic disputes.
People use LawShield to:
Instantly Understand the Law: Through our 100% private, locally-hosted AI, citizens can describe their situation in plain text (or voice) and receive a legally verified Case Dossier detailing their statutory rights.
Translate Legalese: Our AR Translator converts complex legal notices into plain Indian regional languages (Hindi, Bengali, Marathi, Tamil).
Preserve Digital Evidence: The Cryptographic Evidence Locker safely archives threat screenshots and call logs, maintaining the metadata necessary for Section 65B court admissibility.
Ensure Physical Safety: An integrated Emergency SOS map provides live tracking of nearby police stations and 1-tap distress beacons that instantly alert pre-configured family members.
Evade Coercion: A built-in "Decoy Mode" allows victims to instantly switch the app to a harmless, fake UI if confronted by an abuser.
Challenges we ran into
We faced several intense architectural hurdles, primarily balancing user privacy with complex AI inference.
The Cloud Privacy Dilemma: Initially, we used Google's Gemini API for legal analysis. However, we realized that sending highly sensitive domestic abuse details or unredacted evidence to third-party cloud servers fundamentally compromised victim privacy.
How we got over it: We completely ripped out our cloud integrations and re-architected the entire backend to run on Ollama (Llama 3) locally. Now, all legal intelligence is processed 100% on the user's device, ensuring zero data leakage.
AI Hallucinations vs. Actual Law: Large Language Models are notorious for hallucinating legal precedents, which is dangerous in a legal tech app.
How we got over it: We built a custom Nyaykosh RAG (Retrieval-Augmented Generation) Pipeline. Before Ollama answers, our backend fetches the exact, verbatim statutes from the Government's "Law-as-Code" API and injects them into the system prompt. This forcibly grounds the AI to only cite real Indian law.
Node.js Timeout Crashes: When we switched to local Ollama inference, our backend Node.js fetch requests started crashing with AbortError. We discovered that our local LLM was taking up to 30-40 seconds to generate complex JSON responses, triggering Node's default timeout limits.
How we got over it: We re-wrote our backend API controllers to utilize custom AbortController signals with 60,000ms timeouts. Furthermore, we engineered a "Direct Retrieval Fallback"—so if the user's computer is too slow and the local LLM fails, the backend seamlessly bypasses the AI and pipes the raw Nyaykosh government law text directly to the UI, guaranteeing 100% uptime during an emergency.
Technologies used
