Skip to content
ridds-ioPublic

About

๐ŸŽฎ AI-powered financial literacy game for Indian college students. RPG-style gameplay with personalized quests, Socratic AI tutoring, and real-world financial scenarios. Built with Next.js, Supabase, and LangGraph. 60%+ completion rate target vs 15-20% industry average.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

ย 

History

92 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


๐ŸŽฎ FinQuest

AI-Powered Financial Literacy Game for Indian College Students

Next.js PostgreSQL Groq Tailwind CSS


๐Ÿš€ Overview

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

๐ŸŽฏ Problem Statement

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

๐Ÿ’ก Solution

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

โšก Quick Start

cp .env.example .env.local
# Add:
# GROQ_API_KEY=
# DATABASE_URL=

npm install
npm run dev

Routes

  • / โ†’ Landing Page
  • /game โ†’ Main Game
  • /profile โ†’ Progress & stats

๐Ÿงฑ Tech Stack

TABLE II. TECHNOLOGY STACK

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)

๐Ÿงฉ System Architecture

UI Layer

  • React handles routing, auth, and global state
  • Phaser 3 renders game world & mini-games
  • Hybrid DOM + Canvas layering enables UI overlays on gameplay

Dynamic Content Pipeline

  • 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

๐Ÿง  Socratic AI Tutor (Penny)

  • Built using RAG (Retrieval-Augmented Generation)

Pipeline:

  1. User query โ†’ embedding (HuggingFace API)
  2. Retrieve relevant knowledge (PostgreSQL vector search)
  3. Inject context into Groq LLaMA 3.1
  4. Generate response with strict Socratic rules

Behavior:

  • Never gives direct answers
  • Asks guiding questions
  • Encourages independent reasoning

๐ŸŽฏ Contextual Adaptation Engine

  • Tracks:

    • Decision patterns
    • Mistakes
    • Time taken
  • Adjusts:

    • Difficulty
    • Scenario complexity
    • Concept repetition

๐ŸŽฒ Scenario & Simulation Engine

  • Parses JSON-based scenarios

  • Evaluates decisions using:

    • EMI calculations
    • Tax rules
    • Savings logic
  • Outputs:

    • Decision quality
    • Risk-adjusted outcomes

๐Ÿ† Gamification & Persistence

  • XP, levels, achievements

  • Dual persistence:

    • localStorage โ†’ fast sync
    • PostgreSQL โ†’ long-term storage

๐ŸŽฎ Features

๐Ÿ‘ค Avatars

  • Scholarship Grinder
  • Loan Leveraged
  • Hustle Economy
  • Privilege Stack
  • International Wildcard

๐Ÿ“ˆ Progression System

  • 30 Levels

  • Covers:

    • Budgeting
    • Debt
    • Investing
    • Taxation

๐ŸŽฎ Mini-Games

  • Budget Tetris
  • Compound Interest Simulator
  • Market Pattern Game

๐Ÿค– AI Tutor (Penny)

  • Available during gameplay
  • Guides via questions
  • Adapts to skill level

๐Ÿ” Learning Loop

1. ASSESS โ†’ initial quiz
2. IMMERSE โ†’ scenario
3. DECIDE โ†’ choose option
4. LEARN โ†’ feedback
5. PRACTICE โ†’ repetition
6. MASTER โ†’ level up

๐Ÿ“Š Key Differentiators

  • ๐ŸŽฏ Decision-based learning (not theory)
  • ๐Ÿง  Socratic AI (no spoon-feeding)
  • ๐Ÿ‡ฎ๐Ÿ‡ณ Indian financial system integration
  • ๐ŸŽฎ Game mechanics โ†’ higher engagement
  • ๐Ÿ” Adaptive difficulty

๐Ÿ—บ๏ธ Roadmap

โœ… Phase 1 (Current)

  • Core gameplay loop
  • AI integration (Groq)
  • Avatar system
  • Progression system

๐Ÿšง Phase 2

  • Leaderboards
  • Guild system
  • More quests
  • Market data integration

๐Ÿ“… Phase 3

  • Mobile version
  • Institutional dashboards
  • Advanced simulations

๐Ÿค Contributing

We welcome:

  • ๐Ÿ› Bug reports
  • ๐Ÿ’ก Feature ideas
  • ๐Ÿ“ Financial scenarios
  • ๐ŸŽจ UI improvements

๐Ÿ“– Documentation

  • Architecture โ†’ docs/ARCHITECTURE.md
  • API โ†’ docs/API.md
  • Database โ†’ docs/DATABASE.md

๐Ÿ“„ License

Copyright (c) 2026 FinQuest Team

  • Academic use allowed
  • Commercial use restricted
  • Contact for licensing

๐Ÿ‘ฅ Team

  • Project Lead โ€“ AI/ML + Backend
  • Frontend Developer โ€“ UI + Game
  • Full Stack Developer โ€“ DB + APIs

Institution: Symbiosis Institute of Technology, Pune


๐ŸŽฏ Mission

Make financial literacy as engaging as games and as effective as real-world experience.


โญ Support

If you like this project:

  • โญ Star the repo
  • ๐Ÿง  Share feedback
  • ๐Ÿš€ Try the game

About

๐ŸŽฎ AI-powered financial literacy game for Indian college students. RPG-style gameplay with personalized quests, Socratic AI tutoring, and real-world financial scenarios. Built with Next.js, Supabase, and LangGraph. 60%+ completion rate target vs 15-20% industry average.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages