Inspiration
Growing up in Pakistan, we watched our community struggle with basic public services — broken roads, understaffed hospitals, underfunded schools. When we asked why, nobody had answers. Once, a family member needed urgent medical care but the nearest government hospital lacked basic equipment despite budget allocations showing millions spent on healthcare. That contradiction — money allocated but services missing — made us realize the real problem was not just corruption but the complete absence of tools for ordinary citizens to see, question, and challenge how public money is spent. CivicLens was born from that moment.
What it does
CivicLens is an AI-powered open government data platform that transforms complex Pakistani government budget reports and policy documents into simple, searchable, and understandable information for every citizen. Citizens can upload any government PDF and ask questions in plain Urdu or English and receive cited, accurate answers instantly. Key features include:
- Multi-Agent AI System — 4 specialized agents work simultaneously to extract, analyze, translate, and orchestrate
- Bilingual Support — Full Urdu and English with one-click toggle
- Cited Answers — Every answer grounded in the actual document with page references
- Anomaly Detection — AI automatically flags suspicious budget patterns
- Visual Analytics — Budget charts and sector breakdowns
- Voice Input — Speak questions in Urdu or English
- Document Comparison — Compare two government documents side by side
- PDF Report Generator — Download citizen-friendly reports
How we built it
We built CivicLens using a modern AI-first stack:
- Frontend: React + Vite + Tailwind CSS for a stunning responsive UI
- AI Engine: Groq API with LLaMA 3.3 70B for fast, accurate responses
- Multi-Agent Architecture: Custom JavaScript orchestrator managing 4 specialized agents — Extractor, Analyst, Translator, and Orchestrator
- Voice Input: Web Speech API for hands-free Urdu and English queries
- Charts: Recharts for beautiful budget visualizations
- PDF Export: jsPDF for generating citizen reports
- Deployment: Vercel for instant global deployment
Challenges we ran into
- Implementing true multi-agent orchestration in a browser environment without a backend server
- Making Urdu text rendering work correctly with right-to-left support across all components
- Getting the AI to provide accurate cited answers from government documents rather than hallucinating
- Keeping the app fully functional as a frontend-only application with no server to crash on demo day
- Designing an interface that feels professional and trustworthy for civic use
Accomplishments that we're proud of
- Built a fully working multi-agent AI system that runs entirely in the browser
- Achieved real Urdu language support with proper RTL rendering and voice recognition
- Created a platform that makes government accountability accessible to every Pakistani citizen regardless of education level
- Delivered a complete working prototype with 8 major features in hackathon timeframe
- Designed a UI that looks and feels like a real funded product
What we learned
- Multi-agent AI architectures can be implemented without complex backend infrastructure
- Bilingual AI applications require deep attention to language-specific UX patterns
- Government data accessibility is a fundamental civic right that technology can democratize
- Building for real civic impact requires understanding the actual problems citizens face daily
What's next for CivicLens
- Partner with Pakistani journalism outlets and NGOs to expand the document library
- Add provincial budget support for all 4 provinces
- Integrate with data.gov.pk for real-time government data
- Launch a mobile app for citizens with limited computer access
- Expand to other South Asian governments facing the same accountability crisis
- Add a freemium model — free for citizens, paid API access for NGOs and researchers
Built With
- css
- groq
- javascript
- jspdf
- llama3.370b
- react
- recharts
- tailwand
- vercel
- vite
- websearchapi
Log in or sign up for Devpost to join the conversation.