Repository for Hack Rice 15
Gamified financial literacy with seamless onramps into credit-building services designed with the underbanked in mind.
Built with Next.js 16, React 19, TypeScript, Phaser 3.87, and Claude AI.
- 🎮 Interactive 2D game world with character movement (8-directional WASD/Arrow keys)
- 🏛️ Multiple educational buildings to explore:
- Credit University - Learn about credit scores and building credit
- Community Bank - Banking basics and account types
- Town Hall - Government financial resources and programs
- Smart Shopping - Budgeting and smart spending habits
- Budgeting Bistro - The 50/30/20 rule and budgeting tips
- Financial Protection Station - Fraud prevention and identity protection
- 🧙♂️ AI-powered Financial Literacy Wizard chatbot (powered by Claude)
- 📚 Educational overlays with actionable financial literacy content
- Next.js 16 (App Router)
- React 19
- TypeScript
- Phaser 3.87 (Game engine)
- Tailwind CSS 4
- Anthropic Claude API (Chatbot)
- Node.js 18+ and npm
- An Anthropic API key (get one at https://console.anthropic.com/)
- Install dependencies:
npm install- Create a
.env.localfile in the root directory:
cp .env.local.example .env.local- Add your Anthropic API key to
.env.local:
ANTHROPIC_API_KEY=your_api_key_here
npm run devOpen http://localhost:3000 in your browser.
npm run build
npm start- Use WASD or Arrow keys to move your character around the town
- Walk up to any building to see an "Inspect" button appear
- Click Inspect to learn about different financial topics
- Click the wizard icon in the bottom right to chat with the AI Financial Wizard
- Explore all 6 buildings to complete your financial literacy journey!
.
├── app/ # Next.js App Router pages
│ ├── api/chat/ # Claude AI chatbot API route
│ ├── layout.tsx # Root layout
│ └── page.tsx # Home page
├── components/ # React components
│ ├── overlays/ # Educational overlay components
│ ├── Game.tsx # Main game component
│ └── WizardChatbot.tsx # AI chatbot component
├── game/ # Phaser game logic
│ └── MainScene.ts # Main game scene
├── types/ # TypeScript type definitions
├── public/ # Static assets
│ └── img/ # Game images and sprites
└── README.md # This file
- Leif MacCarthy - Full Stack Developer
- Leo Garcia - Full Stack Developer
- Ryan Shen - Full Stack Developer
- Landon Doughty - Full Stack Developer
MIT