Inspiration
Everyone wants to learn, but nobody wants to sit through a dry 40-hour lecture or read a 200-page textbook. While short-form video feeds are addictive, we forget almost 90% of what we passive-scroll through. On the other hand, Duolingo cracked the dopamine formula for language learning: daily streaks, XP gains, bite-sized interactive levels, and instant feedback. We asked ourselves: Why should this habit loop be restricted only to learning Spanish or French? Why can't curiosity itself be gamified?
What It Does
Questly combines the addictive gamification of Duolingo with generative AI to build personalized, interactive learning quests on demand:
- Mitra the AI Guide: Search any topic under the sun. Mitra generates a 6-level interactive quest in seconds featuring vibrant story cards, multi-choice quizzes, and true/false challenges.
- Instant Explanations (Zero Frustration): Getting an answer wrong isn't punished with just a red cross. Questly instantly explains why the answer is incorrect, turning every mistake into an immediate learning opportunity.
- 9 Structured Worlds & 122+ Topics: For structured learning, explore dedicated tracks across History, Space, Science, AI & Tech, General Knowledge, Current World News, Culture, Sports, and Geography with clear unit milestones.
- The Curiosity Chain Reaction: When you finish a quest, Mitra suggests 3 contextual follow-up topics (e.g., Black Holes $\rightarrow$ Neutron Stars $\rightarrow$ ISRO Space Missions), creating an infinite loop of curiosity.
- Friend Challenge & Rival Duels: Completed a quest? Share a challenge link over WhatsApp in one click. Your friend gets your exact score and XP target to beat, culminating in a head-to-head victory/defeat showdown screen.
- Seamless Cloud Sync: Guest play works out-of-the-box via local storage; signing in with Supabase merges and preserves streaks across any device.
How We Built It
We built Questly from the ground up for speed, visual delight, and zero-downtime reliability during live demos:
- Next.js 16 (App Router) & React 19
- Google Gemini API
- Tailwind CSS v4 & Framer Motion
- Supabase
- Resilient AI Pipeline
- Web Audio & Haptics
- Vercel & Vercel Analytics
Challenges We Faced
- Strict JSON Schema Compliance from LLMs: Generating interactive game levels requires exact data structures (questions, options, correct indices, explanations, related topics). Early prompt iterations occasionally produced hallucinated schemas. We solved this by pairing Gemini's structured response schema mode with rigorous TypeScript-based runtime sanitizers and backoff retries.
- Hydration & Multi-Device Sync:
Balancing instant, offline-first
localStorageplay for guests with asynchronous Supabase cloud sync created potential hydration mismatches. - Low-Latency Game Flow: Users hate waiting for AI spinners. We introduced rich skeleton screen previews and animated loading hints while Mitra crafts the quest in the background, keeping perceived latency under 2 seconds.
What We Learned
- Feedback Loops > Passive Reading: Gamified active recall (story $\rightarrow$ question $\rightarrow$ instant reasoning $\rightarrow$ reward) dramatically outperforms passive reading in retention tests.
- Micro-Interactions Matter: Sounds, subtle haptics, bouncing badges, and shine-sweeps turn what would feel like an online test into an addictive game loop.
- Viral Social Mechanics: Learning is social. Adding the simple 1-click WhatsApp duel link doubled test user engagement and session length.
What's Next for Questly
- Classroom Mode: Teachers drop in a PDF or textbook URL; Questly auto-generates classroom quests with a live teacher leaderboard.
- Real-Time Multiplayer Duels: 1v1 live quiz battles where players race against each other simultaneously.
- Voice Quests: Speech-to-speech learning mode for hands-free learning during daily commutes.
- Vernacular Multi-Language Support: Expanding quests into Hindi, Tamil, Telugu, and other regional languages so language is never a barrier to curiosity.
Built With
- canvas-confetti
- edtech
- framer-motion
- gamification
- gemini-api
- generative-ai
- google-gemini
- haptics
- lucide-react
- nextjs
- react
- supabase
- tailwind-css
- typescript
- vercel
- vercel-analytics
- web-audio-api