Inspiration
I was really inspired by how much amazing information is out there online, especially on Reddit. It often just gets scrolled past, though, or consumed pretty passively. I wanted to change that – to make consuming that knowledge an active, engaging, and even rewarding experience. By combining AI to dig out specific facts and blockchain for real, verifiable rewards, I aimed to build a new kind of game. One that promotes curiosity, critical thinking, and digital ownership, all while exploring the rich world of online communities.
What It Does
Mind-Miner is basically my "Reddit Knowledge Hunt" game. Here's how it works: you connect your Algorand wallet, and then you get an AI-generated clue that points to a specific fact hidden within a Reddit post. Your job is to go to that Reddit post, find the comment that has the right fact, and then submit its permalink.
If you nail it, you earn Testnet ALGO cryptocurrency as a reward! Plus, you can earn unique Algorand NFT trophies for specific achievements and milestones, letting you build a cool digital collection that shows off your knowledge-mining skills. The platform also tracks your stats, like your average completion time, total ALGO earned, and how many hunts you've finished, with a public leaderboard to spark some friendly competition.
How I Built It
I built Mind-Miner as a full-stack Next.js 13.5.1 application, using the App Router.
Frontend: I used React for the UI, styled with Tailwind CSS, and jazzed it up with Shadcn/ui components for a modern, responsive feel. Framer Motion was integrated for smooth animations. Connecting your wallet is super seamless thanks to the Pera Wallet Connect SDK, which supports both QR code and web-based login. Axios handles all the API calls to my backend.
Backend: All my server-side logic is implemented using Next.js API Routes (kind of like Node.js/Express), and it's all written in TypeScript for solid type safety. This backend acts as the central brain, orchestrating all the integrations with external services.
Database: I leveraged Supabase (PostgreSQL) as my backend-as-a-service. I designed a clear schema for users and game_sessions, with a robust Supabase client setup for secure interactions. I also used Supabase's migration tools to manage schema changes.
Integrations:
AI Service (e.g., Gemini API): This is crucial for generating diverse clues and for verifying if a submitted comment actually contains the required fact. Reddit API: I use this to fetch specific posts and it can potentially help with clue generation or verification. Algorand Blockchain: I plan to use the Algorand SDK to manage Testnet ALGO rewards and mint ARC-3 compliant NFT trophies directly to players' wallets. My development process was pretty iterative; I built and tested each frontend screen and backend API endpoint step-by-step to make sure everything integrated smoothly.
Challenges I Ran Into
Orchestrating Multiple APIs: Getting the data flow and error handling right between the frontend, my Next.js API, Supabase, Algorand, AI, and Reddit APIs required some serious planning and debugging. Each external service had its own rate limits, authentication, and response structures to deal with. Blockchain Integration Nuances: Properly integrating Pera Wallet Connect for a seamless user experience while ensuring secure transaction signing with the Algorand SDK was a real learning curve, especially understanding wallet connection states and broadcasting transactions. AI Prompt Engineering & Verification: Crafting effective prompts for the AI to generate relevant clues, and more critically, accurately verify if a submitted comment contained the required fact was a significant challenge that took a lot of iterative refinement. Real-time Elements: Implementing the in-hunt timer and making sure its state persisted or was handled gracefully across client-server interactions was tricky. Time Management: As with any hackathon, balancing the implementation of core features with desired polish and advanced functionalities within a limited timeframe was a constant challenge. Accomplishments I'm Proud Of
End-to-End Game Flow: I successfully built the entire core loop of the game, from wallet connection and starting a hunt, through clue presentation and submission, to dynamically displaying results and managing navigation between screens. Robust Backend Architecture: I'm proud of building a well-structured and scalable backend using Next.js API routes, with a clean separation of concerns for database interactions, external API calls, and business logic. Seamless Wallet Integration: Achieving a smooth and intuitive Algorand wallet connection experience for users, which is absolutely foundational for Web3 games. Supabase Data Management: Effectively using Supabase to manage user profiles and game session data, showing my proficiency in both schema design and data manipulation. Ambitious Tech Stack Integration: Successfully weaving together AI, blockchain, and traditional web technologies (Reddit API) into a cohesive and functional application within a hackathon setting.
What I Learned
Deeper Algorand Ecosystem Understanding: I gained hands-on experience with Pera Wallet Connect and the Algorand SDK for asset management and transaction signing. Supabase Best Practices: My knowledge on designing effective PostgreSQL schemas, leveraging RLS for security, and optimizing database interactions was really reinforced. Complex API Orchestration: I learned practical strategies for managing asynchronous operations and error handling when integrating multiple, disparate external APIs. Full-Stack Development Synergy: This project really emphasized the importance of a clear API contract between the frontend and backend, and how a unified framework like Next.js simplifies development. Iterative Design & Development: I truly saw the value of breaking down a large project into smaller, testable units and constantly iterating based on immediate feedback. What's Next for Mind Miner
For the future of Mind-Miner, I'm thinking about:
Advanced AI Capabilities: Exploring more sophisticated AI models for richer clue generation, multi-stage hunts, and more nuanced fact verification. This could lead to even more creative and challenging puzzles. Enhanced Blockchain Utility: Implementing actual ASA (Algorand Standard Asset) distribution for rewards, potentially adding staking mechanisms for ALGO, and designing more complex NFT utility within the game (e.g., unique abilities, access to exclusive hunts). Competitive Features: Developing robust leaderboard mechanics, daily challenges, user rankings, and peer-to-peer hunt creation. Community Integration: Allowing users to submit their own Reddit posts or even generate clues for community-driven hunts. Mobile-First Experience: Optimizing the application for a native-like mobile experience. Expansion Beyond Reddit: Exploring integrating other knowledge-rich platforms as hunt sources. User Profiles & Social Features: Developing comprehensive user profiles, friend lists, and social sharing functionalities to foster a vibrant community.
Log in or sign up for Devpost to join the conversation.