-
-
Raasta Logo
-
Introduction
-
Raasta numbers
-
Secure and private AI pipeline
-
The most clarified steps you can get
-
Asking minimal questions while giving best output
-
Emergency support
-
Auto form filling for ease of access
-
12+ Languages for Rural Access, With right to left engine for Urdu
-
Ease of access for any person
-
Easy steps given for all civic problems
-
Works on the oldest of old phones with NoJS so that any device can access it
Inspiration
Almost everyone has had a moment when something went wrong that was not their fault. A landlord quietly kept the deposit, a salary stopped arriving, a product broke in a week, or a link in an SMS emptied a bank account in seconds. In that moment you usually know you are in the right, and yet one small question stops you from doing anything about it: which office am I even supposed to go to?
In India the honest answer could be the police station, the consumer commission, the labour office, the ward office, a Lok Adalat, the banking ombudsman or a lawyer you cannot afford. The DAKSH Access to Justice survey found that 74% of people first turn to friends and family for help. When nobody they know has the answer, many simply give up, and a small unpaid deposit slowly hardens into a grudge that nobody meant to start.
I did not want to build another chatbot that sounds confident. I wanted to build the thing people actually need on a bad day: one clear first step and the right door to knock on. I called it Raasta, which means "the way" in Hindi and Marathi.
What it does
You describe what happened in your own words, in any of 12 Indian languages, and Raasta gives you three things:
- The free, peaceful first step you can take today, such as a fifteen-day notice to a landlord.
- The exact office or portal that handles your problem, with its fee, usual timing and the documents to keep ready.
- The next door to try if the first one does not work.
Along the way it:
- asks at most three short questions, and only when the answer changes the route
- walks you through every portal in plain language, at about a Class 8 reading level, with each link turned into a big, clear button
- generates a properly formatted PDF letter, a postal label, and email and WhatsApp drafts, with the office address already filled in
- checks whether you qualify for a free government lawyer under Section 12 of the Legal Services Authorities Act, and finds offices near you
- switches to an emergency mode for fraud and violence: no questions, the right helpline first (1930 for cyber fraud, 112, 1091, 108), then the paperwork
- adapts offices and complaint channels to your state and city with one tap
- works with JavaScript turned off, so it runs on old phones and weak networks
It covers 19 kinds of everyday disputes across all 36 states and union territories.
How I built it
The most important decision I made was a simple rule: the AI understands, the rules decide.
Language models are wonderful at reading messy human sentences, and terrible at being trusted with a phone number, a fee or a deadline. So in Raasta the AI is only allowed to extract facts from what a person wrote, such as the type of dispute, the amount, the place and how long ago it happened. A deterministic rule engine then picks the route, and every link, fee, helpline and deadline comes from a verified registry of 22 official platforms, including CPGRAMS, e-Jagriti, the national cybercrime portal, RBI, SEBI, IRDAI, EPFO, SHe-Box and NALSA.
The request pipeline looks like this:
Browser
-> Cloudflare Pages (prerendered pages in 12 languages)
-> Cloudflare Worker (Hono)
-> mask personal numbers (Aadhaar, PAN, phone, card, UPI, OTP)
-> AI slot extraction (Gemini, then Workers AI, then Ollama locally, then keywords)
-> deterministic rules
-> verified registry
-> documents, guides and chat
The stack
| Area | What I used |
|---|---|
| Front end | React 19 (Preact in production), Vite, Tailwind 4 |
| Server | Cloudflare Worker with Hono |
| Data | KV, D1, typed schemas and the verified registry |
| AI | Gemini first, Cloudflare Workers AI, Ollama for local runs, keyword fallback |
| Documents | pdf-lib, print layouts, email and WhatsApp builders |
| Languages | 12 languages, more than 5,500 translated lines, Urdu right to left |
| Quality | 275 automated tests and 168 real-browser checks at phone, tablet and desktop sizes |
Because the site is about 730 prerendered pages served from Cloudflare's edge, with a small serverless worker behind it, it costs almost nothing to run. I think that matters, because a public good should not need a large budget to stay alive.
Challenges I ran into
Stopping the AI from making things up. Early on, a model happily produced a plausible helpline number that did not exist. That one moment shaped the whole architecture. Now an automated check fails the release if any guide links outside the verified registry. If a link cannot be verified, the page says "Check before you go" instead of guessing.
Asking fewer questions. Every question is a chance for someone to give up. I went through every dispute and kept only the questions that actually change the answer, and I skipped the city entirely when I already knew it. That took the total from 73 questions down to 53:
$$ \frac{73 - 53}{73} \approx 27\% \text{ fewer questions} $$
Covering the whole country without lying about it. Pune and Maharashtra get ward-level detail, six major cities have full office directories, and everywhere else falls back to national platforms and each state's legal services authority. To be sure no one ever lands on an empty page, I checked by machine that every state has a complete guide for every dispute:
$$ 36 \text{ states and UTs} \times 19 \text{ disputes} = 684 \text{ combinations, all covered} $$
Building for the cheapest phone. I set ourselves a hard rule that the core journey must work with JavaScript disabled. Every interactive step therefore had to exist first as a plain HTML form, with JavaScript only as an enhancement. The first page needs only about 40 KB of code.
Twelve languages, done properly. Translating buttons is easy. Translating questions, step-by-step guides and legal terms so they still read naturally was not, and getting Urdu to lay out correctly from right to left meant fixing assumptions hidden throughout our CSS.
Designing for the worst day, not just the easy one. For a fraud that happened minutes ago, the first hour can decide whether the money can still be frozen, so the flow had to change completely: no questions, helpline first. For violence, Raasta never asks about money at all, and leads with safety, a Zero FIR and free legal aid.
What I learned
- Trust is an architecture decision, not a disclaimer. Separating "understanding" from "deciding" made the AI safe to use, and it also made every answer testable.
- Fewer, better questions beat smarter questions. Users do not want a conversation, they want the next step.
- Accessibility constraints make better software. Building for no JavaScript, slow networks and screen readers forced a simpler, faster product for everyone.
- Privacy is easiest when you keep nothing. Raasta has no accounts, does not store the problems people type, masks personal numbers before any AI sees the text, and signs result links so they expire after seven days.
What's next for Raasta
- BHASHINI live translation and speech, so people who cannot read or write can simply speak their problem.
- DIGIT and UPYOG, so a pothole or streetlight complaint goes straight into a city's own system and comes back with a real tracking number.
- Deeper links with Tele-Law, NALSA and Lok Adalats, so "you can get a free lawyer" becomes "your free lawyer is booked."
- Reaching people without smartphones through Common Service Centres, SMS and voice calls.
Every person deserves to know which door to knock on.
Built With
- cloudflare-d1
- cloudflare-kv
- cloudflare-pages
- cloudflare-workers
- cloudflare-workers-ai
- css3
- digit
- google-gemini
- hono
- html5
- javascript
- node.js
- ollama
- pdf-lib
- playwright
- preact
- react
- sqlite
- tailwind-css
- typescript
- vite
- vitest
- wrangler