Skip to content

aryansaksena/declaro

Repository files navigation

Declaro

Voice-first legal aid for anyone, anywhere, in any language.

Live DemoDemo VideoDevpost


The Problem

Less than 1% of people in low-income countries have access to legal aid. 760 million adults worldwide cannot read. 123 million people are forcibly displaced with no idea what their rights are. A lawyer in the US costs $300/hour. For most of the world, legal help is simply out of reach.

What Declaro Does

Declaro lets anyone speak their legal situation in their own language and hear their rights back instantly — for free. No reading required. No lawyer required.

  • Speak in any of 65+ languages
  • Hear legal guidance spoken back in your language in under 3 seconds
  • Get location-specific advice based on where you are in the world
  • Generate formal legal documents — landlord letters, benefits appeals, Know Your Rights cards
  • Emergency detection for domestic violence, detention, and food crisis — with real hotline numbers

Tech Stack

Layer Technology
Frontend Next.js 15, TypeScript, Tailwind CSS
Speech to Text OpenAI Whisper
Legal Reasoning Anthropic Claude Sonnet
Text to Speech OpenAI TTS
UI Translation Google Translate API
Deployment Vercel
Built with Cursor

How It Works

  1. User picks their language from 65+ options — the entire UI translates instantly
  2. They tap the mic and describe their situation in their language
  3. Whisper transcribes the audio and detects the language
  4. Claude receives the transcript, language code, location, and conversation history and returns legal guidance
  5. TTS reads the response back out loud in the user's language
  6. If a document is needed, Declaro generates it in the official language of the user's country with a translation appended in their spoken language

Features

  • Voice first — speak your problem, hear the answer, zero reading required
  • 65+ languages — Arabic, Gujarati, Swahili, Tigrinya, Dari, and 60 more
  • RTL support — Arabic, Farsi, Urdu, Hebrew, Pashto render right to left
  • Location aware — specific legal frameworks for 15+ countries
  • Confidence scoring — every response rated high, medium, or low confidence
  • Emergency detection — multilingual keyword detection triggers real hotlines instantly
  • Document generation — context-aware legal documents in the official language of the user's location
  • Auto translation — documents auto-translated into the user's spoken language if different
  • Nothing stored — every conversation is stateless, zero data retention

Running Locally

git clone https://github.com/aryansaksena/declaro.git
cd declaro
npm install

Create a .env.local file:

ANTHROPIC_API_KEY=your_key_here
OPENAI_API_KEY=your_key_here
npm run dev

Open http://localhost:3000

Built By

Aryan Saksena, age 15 — Pingry School, Warren NJ

Built in 5 days for the GenAI Dev Hackathon 2026.


Declaro provides legal information, not legal advice. If you are in immediate danger, call emergency services.

About

Voice-first legal aid for refugees and immigrants in 65+ languages. Free, private, powered by Claude AI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages