AI-Powered Financial Literacy Game for Indian College Students
FinQuest is a gamified financial literacy platform designed specifically for Indian college students. It transforms passive financial education into an interactive RPG-style experience, where users learn by making real-world financial decisions.
Instead of reading theory, players:
- Make decisions in simulated financial scenarios
- See consequences instantly
- Improve through guided AI questioning
Most students graduate without practical financial skills.
- High credit card misuse
- Poor budgeting habits
- Lack of understanding of investments & taxes
Traditional education:
- โ Passive learning
- โ Low engagement (5โ20%)
- โ Near-zero behavioral impact
FinQuest solves this through:
- ๐ฎ Game-based learning (RPG mechanics)
- ๐ค AI-generated financial scenarios
- ๐ง Socratic AI tutor (no spoon-feeding)
- ๐ฎ๐ณ Indian financial context (โน, tax, loans, PPF, etc.)
- ๐ Decision-based learning with real consequences
cp .env.example .env.local
# Add:
# GROQ_API_KEY=
# DATABASE_URL=
npm install
npm run dev/โ Landing Page/gameโ Main Game/profileโ Progress & stats
| Layer | Technology |
|---|---|
| Front-End | React 18 (Hooks, Context API), Next.js, Tailwind CSS, Phaser 3 |
| Back-End | Node.js 20 + Next.js API Routes |
| Data Store | PostgreSQL 15 (Supabase) |
| Machine Learning | Groq API (LLaMA 3.1) |
| Infrastructure | Vercel (CDN + Serverless Functions) |
- React handles routing, auth, and global state
- Phaser 3 renders game world & mini-games
- Hybrid DOM + Canvas layering enables UI overlays on gameplay
-
Powered by Groq (LLaMA 3.1)
-
Uses structured prompts with:
- Avatar financial profile
- Player level
- Indian economic context
-
Generates:
- Unique financial scenarios
- Non-repetitive quests
- Real-life decision problems
- Built using RAG (Retrieval-Augmented Generation)
Pipeline:
- User query โ embedding (HuggingFace API)
- Retrieve relevant knowledge (PostgreSQL vector search)
- Inject context into Groq LLaMA 3.1
- Generate response with strict Socratic rules
Behavior:
- Never gives direct answers
- Asks guiding questions
- Encourages independent reasoning
-
Tracks:
- Decision patterns
- Mistakes
- Time taken
-
Adjusts:
- Difficulty
- Scenario complexity
- Concept repetition
-
Parses JSON-based scenarios
-
Evaluates decisions using:
- EMI calculations
- Tax rules
- Savings logic
-
Outputs:
- Decision quality
- Risk-adjusted outcomes
-
XP, levels, achievements
-
Dual persistence:
localStorageโ fast sync- PostgreSQL โ long-term storage
- Scholarship Grinder
- Loan Leveraged
- Hustle Economy
- Privilege Stack
- International Wildcard
-
30 Levels
-
Covers:
- Budgeting
- Debt
- Investing
- Taxation
- Budget Tetris
- Compound Interest Simulator
- Market Pattern Game
- Available during gameplay
- Guides via questions
- Adapts to skill level
1. ASSESS โ initial quiz
2. IMMERSE โ scenario
3. DECIDE โ choose option
4. LEARN โ feedback
5. PRACTICE โ repetition
6. MASTER โ level up
- ๐ฏ Decision-based learning (not theory)
- ๐ง Socratic AI (no spoon-feeding)
- ๐ฎ๐ณ Indian financial system integration
- ๐ฎ Game mechanics โ higher engagement
- ๐ Adaptive difficulty
- Core gameplay loop
- AI integration (Groq)
- Avatar system
- Progression system
- Leaderboards
- Guild system
- More quests
- Market data integration
- Mobile version
- Institutional dashboards
- Advanced simulations
We welcome:
- ๐ Bug reports
- ๐ก Feature ideas
- ๐ Financial scenarios
- ๐จ UI improvements
- Architecture โ
docs/ARCHITECTURE.md - API โ
docs/API.md - Database โ
docs/DATABASE.md
Copyright (c) 2026 FinQuest Team
- Academic use allowed
- Commercial use restricted
- Contact for licensing
- Project Lead โ AI/ML + Backend
- Frontend Developer โ UI + Game
- Full Stack Developer โ DB + APIs
Institution: Symbiosis Institute of Technology, Pune
Make financial literacy as engaging as games and as effective as real-world experience.
If you like this project:
- โญ Star the repo
- ๐ง Share feedback
- ๐ Try the game