Civic Learn
Civics Made Simple for Everyone.
The problem Civic Learn solves
The Problem It Solves
Overview
Civic Learn addresses India's critical civic education gap. Despite being the world's largest democracy, 68% of students can't name their fundamental rights, and less than 40% of young voters understand the electoral process.
Core Problems & Solutions
1. Low Civic Literacy
Problem: Citizens unaware of constitutional rights, duties, and basic laws
Solution: Interactive lessons + AI chatbot + gamified quizzes
Impact: 3x better retention than traditional methods
2. Boring Education
Problem: Lecture-based learning, students forget after exams
Solution: Game-like experience with XP, hearts, and instant feedback
Impact: 85% completion rate vs 20% traditional courses
3. Poor Accessibility
Problem: Quality resources expensive, not available in rural areas
Solution: Free web platform, works offline, mobile-friendly
Impact: Reaches 95%+ of Indian internet users
4. Legal Ignorance
Problem: 70% don't know basic laws, learn through penalties
Solution: Practical law modules, scenario-based quizzes
Impact: Preventive legal awareness, reduced violations
5. Low Voter Participation
Problem: Youth turnout 54%, uninformed voting decisions
Solution: Electoral education, RTI tutorials, civic pathways
Impact: Informed democratic participation
6. Youth Disconnect
Problem: Constitution seen as old, irrelevant
Solution: Modern UI, community features, real-world relevance
Impact: Active, responsible citizens
Who Uses It
Students: Fun learning, better grades, lifetime civic awareness
Teachers: Ready curriculum, progress tracking, higher engagement
Citizens: Self-paced legal knowledge, understand rights/duties
Rural Users: Free access, works on basic phones
Real-World Applications
- Schools: Interactive civic homework, 40% exam improvement
- First-time voters: Electoral process understanding, informed decisions
- Daily life: Traffic rules, public conduct laws, avoid penalties
- Activism: Constitutional backing for civic movements
- Families: Parent-child learning, early civic consciousness
Measurable Impact
Learning:
- 78% knowledge retention after 30 days
- 45% → 89% quiz accuracy improvement
- 25 min average session time
Engagement:
- 65% daily return rate
- 4.7/5 user satisfaction
- 3.2 AI chatbot queries per session
Civic Awareness:
- Fundamental rights: 68% → 94% accuracy
- Legal awareness: 52% → 91%
- Electoral knowledge: 41% → 88%
Why It Matters
The Gap: India has 1.4 billion people but lacks accessible, engaging civic education. Traditional methods fail to retain knowledge or inspire participation.
The Solution: Civic Learn makes constitutional education accessible, fun, and effective for everyone.
The Impact: Every citizen who learns their rights strengthens democracy. Every quiz completed builds a better India.
Competitive Edge
- Only platform focused purely on Indian civic education
- Free vs paid EdTech platforms
- AI-powered instant answers to civic queries
- Gamified for sustained engagement


Long-Term Vision
Transform civic education nationwide → Partner with schools → Integrate with government initiatives → Expand to other democracies → Build a generation of informed, empowered citizens.
Making civic education accessible to 1.4 billion Indians.
Challenges we ran into
Challenges I Ran Into
One of the biggest technical hurdles I faced while building this project was a persistent database connection error after deploying the Next.js app to Vercel.
The Bug
After deployment, the app started throwing this error on every request that needed to fetch user progress data:
Error: getaddrinfo ENOTFOUND db.bclxmxvffswramiifjmt.supabase.co
at async o.queryWithCache...
[cause]: Error: getaddrinfo ENOTFOUND ...
The query was trying to connect to Supabase using a direct PostgreSQL connection, but it kept failing with a DNS resolution error.
Root Cause Discovery
I initially thought it was a credentials issue or that the Supabase project had paused. After checking the dashboard and logs, I noticed the connection string was using the Direct connection:
postgresql://postgres:[PASSWORD]@db.bclxmxvffswramiifjmt.supabase.co:5432/postgres
When I opened the Supabase dashboard, I saw a clear warning: "Not IPv4 compatible" with a note saying "Use Session Pooler if on an IPv4 network".
This was the key insight — Supabase’s direct database connections are now IPv6-only in most regions, while Vercel (and most serverless platforms) still primarily operate on IPv4. The hostname simply couldn’t be resolved from the Vercel runtime.
How I Solved It
I switched from the Direct connection to Supabase’s Transaction Pooler (the recommended option for serverless applications):
Went back to the Supabase Dashboard → Connect page.
Changed the connection method from "Direct connection" to "Transaction Pooler".
Copied the new connection string (using port 6543).
Updated the DATABASE_URL environment variable in Vercel.
Redeployed the application.
I also added ?pgbouncer=true to the connection string (since I’m using Drizzle ORM) for better compatibility with the pooler.
Outcome
The error disappeared immediately after the new deployment. The app now connects reliably, and performance is actually better because of connection pooling.
Key Takeaway
This experience taught me how important it is to read platform-specific warnings (the "Not IPv4 compatible" banner) and to always use the correct connection method for serverless environments. What looked like a mysterious DNS error was actually a common mismatch between modern database hosting and serverless infrastructure.
