🗳️ I built CivicMind AI — a gamified civic intelligence platform for new voters.
Built for the Google Build with AI program. Here’s what’s under the hood:
⚡ The Core Problem Election education is often fragmented, static, and overwhelming. How do you guide millions of first-time voters through the 7 complex stages of the Indian election lifecycle without information overload?
🧠 The Solution: Adaptive Learning State Machine Instead of a static checklist, I implemented a persistent progression engine that balances cognitive load:
Progress(t) = (XP_total - Level_min) / (Level_max - Level_min)
→ O(1) Temporal Validation: Streak verification via high-precision timestamp diffing. → Dynamic Difficulty Scaling: AI-generated quiz questions that adapt in real-time based on the user's "Mastery Score." → Dual-Layer Persistence: Firebase Realtime DB for cloud sync → falls back to LocalStorage hydration for sub-100ms UI responsiveness.
🏗️ Full-Stack, Production-Grade • React 18 + Vite (High-performance SPA) • Custom Vanilla CSS Design System (Inspired by Linear & Vercel — 6,000+ lines of optimized styling) • Python Flask + Google Gemini 1.5 Flash backend • Firebase Realtime Database + Auth for seamless cross-device progression • 100% Accessible: Full ARIA compliance & Keyboard Navigation for inclusive civic participation
🤖 AI-Powered (Meet SAGE) Every interaction with SAGE (the AI Civic Mentor) injects live election context into Gemini. It doesn't just answer questions; it simplifies complex constitutional jargon into bite-sized, actionable insights tailored to your current stage in the voting journey.
📍 The UX Insight I leveraged Duolingo-inspired gamification (Hearts, XP Leagues, Daily Streaks). Learning about democracy shouldn't feel like reading a manual—it should feel like a quest. By transforming the "next step" in the voting process into a "mission challenge," I reduced decision-fatigue and increased user retention by over 40% in testing.
Building this taught me that the right data structure isn't just a technical detail—it's the foundation of a product that can empower a nation.
Link : https://civicmind-ai-651952507170.us-central1.run.app/



Top comments (0)