MindSnap is a next-generation, community-powered learning platform that gamifies education and rewards top performers. By integrating interactive quizzes, dynamic leaderboards, and blockchain-based incentives, MindSnap creates an engaging environment where users are motivated to learn, compete, and grow together.
The following diagram illustrates the workflow of the project:
-
Interactive Quizzes:
MindSnap offers a diverse set of quizzes across multiple subjects and difficulty levels. Each quiz is designed to challenge users and help them expand their knowledge base in a fun, interactive way. -
Real-Time Leaderboards:
The platform features both weekly and monthly leaderboards, allowing users to track their progress and see how they stack up against others in the community. Leaderboards update instantly as users complete quizzes and earn points. -
User Profiles & Stats:
Every user has a personalized profile displaying their name, wallet address, rank, and performance statistics. This transparency fosters healthy competition and personal accountability. -
Blockchain-Based Rewards:
Top learners are rewarded with tokens sent directly to their crypto wallets. The reward system is automated and transparent, leveraging blockchain technology to ensure fairness and security. -
Hall of Fame:
The Hall of Fame section highlights the top three performers in a visually distinct podium, celebrating their achievements and inspiring others to reach the top. -
Responsive & Modern UI:
Built with React and Tailwind CSS, MindSnap provides a seamless experience across devices, with visually appealing gradients, animations, and intuitive navigation. -
Secure Authentication:
User authentication and session management are implemented to protect user data and ensure a safe learning environment.
MindSnap is designed to make learning both rewarding and competitive:
-
User Journey:
Users sign up and create a profile. Once authenticated, they can participate in quizzes, each contributing to their overall score. -
Quiz Mechanics:
Quizzes are dynamically loaded and scored in real-time. The system tracks attempts, correct answers, and time taken, ensuring a fair assessment of each user's performance. -
Leaderboard Calculation:
As users complete quizzes, their scores are aggregated and ranked. The leaderboards (weekly and monthly) are updated live, reflecting the most recent activity and performance. -
Reward Distribution:
At the end of each leaderboard cycle, the top-ranked users are eligible to claim blockchain-based rewards. The platform integrates with wallet services to securely distribute tokens, with a dedicated claim interface for winners. -
Recognition & Motivation:
The Hall of Fame and user profile stats provide ongoing motivation, while the competitive structure encourages consistent participation and improvement.
Follow these steps to set up MindSnap locally:
- Node.js (v18 or higher recommended)
- npm or yarn
- Python (v3.10+)
- MongoDB (local or cloud instance)
git clone <your-repo-url>
cd MindSnapYou have two options for the AI service:
cd type-ai
# Install dependencies:
npm install
# Set up environment:
cp env.example .env
# Edit .env and add your GOOGLE_API_KEY
# Build and start:
npm run build
npm startcd agent
# (Optional but recommended) Create a virtual environment:
python -m venv venv
# Activate the virtual environment:
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
# Install dependencies:
pip install -r requirements.txtNote: The frontend automatically uses the TypeScript AI service by default, with fallback to the Python agent if needed. See MIGRATION_GUIDE.md for details.
cd ../frontend
# Install dependencies:
npm install
# or
# yarn install
# Start the development server:
npm run dev
# or
yarn dev- Ensure MongoDB is running locally or provide a connection string to a cloud instance (e.g., MongoDB Atlas).
- Update the MongoDB connection string in the appropriate config file (e.g.,
frontend/app/config.tsor.env.local).
If you want to work with blockchain rewards:
cd ../web3
# Install dependencies:
npm install
# Compile contracts:
npx hardhat compile
# (Optional) Deploy contracts to local/testnet:
npx hardhat run scripts/deploy.js --network <network>Now you can access the frontend at http://localhost:3000 and interact with the platform!
For any issues, please refer to the documentation or open an issue.
MindSnap aims to continuously evolve with the following potential enhancements:
- AI-Powered Personalized Learning Paths: Adaptive recommendations and content tailored to individual learning styles and progress.
- Mobile App Integration: Native apps for iOS and Android to expand accessibility and engagement.
- Expanded Blockchain Features: NFT-based achievements, decentralized identity, and cross-platform token rewards.
- Social & Collaborative Learning: Group challenges, peer-to-peer tutoring, and community-driven content creation.
- Advanced Analytics: Deeper insights for users and educators to track learning outcomes and optimize strategies.

