- Built for
- PromptWars x ADYPU, a four-hour hackathon with Google for Developers and Hack2skill
- When
- 2026
5languages
4hours to build
8features
A census asks every household to take part, and many people are unsure what will be asked, who is allowed to ask it and which messages are genuine. That uncertainty is where rumours and scams spread.
PromptWars gave four hours to build something useful with generative AI. I went for the part of Census 2027 that matters most to an ordinary citizen: understanding it and taking part safely.
CensusGuru is a citizen-first guide. It explains the census phases, lists state and UT schedules, lets people rehearse the digital self-enumeration process with demo data, and shows privacy and enumerator-safety guidance on how to recognise a suspicious request. Public Insights visualises reference statistics.
AI Census Saathi answers questions using Google Gemini, and a claim checker helps test census-related claims. The whole interface works in English, Hindi, Marathi, Bengali and Kannada.
Gemini is called from an Express server so the API key never reaches the browser. Inputs are validated with Zod, and selected common questions have deterministic fallback answers so the app still helps when the model does not. The simulator is clearly marked as demo-only: it never submits anything to a government system or generates a real Self-Enumeration ID.
The repository includes a test file for the census logic. The front end is React, TypeScript and Vite, deployed on Vercel.
A deployed, five-language product, shipped inside a four-hour hackathon. It also set a rule I still follow: with half an hour left, repeated AI-assisted edits broke a working build, so every change is now tested before the next one.
- React
- TypeScript
- Vite
- Express
- Gemini
- Zod
- Vercel
How it works
- 1GuideThe phases of Census 2027 in plain language
- 2SchedulesA searchable reference of state and UT schedules
- 3PracticeA self-enumeration simulator that uses demo data and submits nothing
- 4AskAI Census Saathi answers questions through Gemini
- 5CheckA claim checker for census-related misinformation