Skip to content

Sultanlodi/Hackathon25

Repository files navigation

Stacks - AI-Powered Financial Literacy Platform

Stacks is a revolutionary financial literacy platform that combines AI coaching, blockchain transparency, and gamified rewards to make building wealth engaging and sustainable. Designed for Gen Z and young professionals, Stacks transforms traditional financial education into an interactive, personalized experience.

🎯 Purpose & Mission

Making wealth accessible to everyone through technology.

Traditional financial education is broken - it's boring, one-size-fits-all, and disconnected from real behavior change. Stacks bridges this gap by:

  • Personalizing financial advice through AI coaching
  • Gamifying wealth-building with blockchain-verified rewards
  • Democratizing access to sophisticated financial tools
  • Educating users through interactive, engaging experiences

Key Problems We Solve

  • πŸ“š Financial literacy gap among young adults
  • 🎯 Lack of personalized financial guidance
  • πŸ’° Difficulty maintaining savings habits
  • 🏦 Barriers to investment and wealth building
  • πŸ€– Need for 24/7 financial coaching

✨ Core Features

πŸ€– AI Financial Coach

  • Personalized insights based on spending patterns
  • 24/7 availability for financial questions and guidance
  • Smart budget analysis with optimization recommendations
  • Investment suggestions tailored to risk tolerance
  • Goal achievement tracking with actionable steps

🏦 Secure Bank Integration

  • Plaid integration for secure account linking
  • Real-time transaction monitoring and categorization
  • Bank-level encryption and security standards
  • Multi-account support across different institutions

🎯 Smart Goal Setting

  • SMART goals framework with blockchain backing
  • Milestone tracking with progress visualization
  • Automated savings recommendations
  • Goal commitment through smart contracts

πŸͺ™ Tokenized Rewards System

  • STX tokens earned for financial milestones
  • Blockchain transparency for all rewards
  • Gamified experience making saving fun
  • Real value tokens with future redemption options

πŸ“Š Comprehensive Dashboard

  • Financial overview with real-time data
  • Budget tracking and spending analysis
  • Investment portfolio monitoring
  • Goal progress visualization

πŸ’‘ Educational Content

  • Interactive tutorials on financial concepts
  • Personalized learning paths based on goals
  • Market insights and investment education
  • Best practices for wealth building

πŸ—οΈ Technology Stack

Frontend

  • Framework: Next.js 14 (App Router)
  • Language: TypeScript
  • Styling: Tailwind CSS + Custom CSS Variables
  • UI Components: Radix UI + Custom Components
  • Animations: Framer Motion
  • Charts: Recharts
  • State Management: React Hooks + Zustand (implied)

Backend & Database

  • Database: Supabase (PostgreSQL)
  • Authentication: Supabase Auth
  • API Routes: Next.js API Routes
  • Real-time: Supabase Realtime

Integrations

  • Banking: Plaid API
  • AI: Google Generative AI (@google/generative-ai)
  • Blockchain: Polygon Network (for STX tokens)
  • Payments: Stripe (future implementation)

Development Tools

  • Package Manager: pnpm
  • Linting: ESLint + Prettier
  • Type Checking: TypeScript
  • Deployment: Vercel (recommended)

πŸ›οΈ Architecture Overview

Database Schema

Users (Supabase Auth)
β”œβ”€β”€ Profiles (user metadata)
β”œβ”€β”€ Bank Connections (Plaid integration)
β”œβ”€β”€ Financial Accounts
β”œβ”€β”€ Transactions
β”œβ”€β”€ Budget Categories
β”œβ”€β”€ Goals & Milestones
β”œβ”€β”€ Reward Tokens
└── AI Chat Messages

API Structure

/api/
β”œβ”€β”€ auth/           # Authentication endpoints
β”œβ”€β”€ bank/           # Plaid integration
β”œβ”€β”€ budget/         # Budget management
β”œβ”€β”€ goals/          # Goal setting and tracking
β”œβ”€β”€ transactions/   # Transaction management
β”œβ”€β”€ ai/             # AI coach interactions
β”œβ”€β”€ wallet/         # Token management
└── rewards/        # Reward system

Component Architecture

src/
β”œβ”€β”€ app/                    # Next.js App Router pages
β”‚   β”œβ”€β”€ (auth)/            # Authentication pages
β”‚   β”œβ”€β”€ dashboard/         # Main application
β”‚   β”œβ”€β”€ budget/            # Budget management
β”‚   β”œβ”€β”€ goals/             # Goal setting
β”‚   └── api/               # API routes
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ ui/                # Base UI components
β”‚   β”œβ”€β”€ dashboard/         # Dashboard-specific components
β”‚   β”œβ”€β”€ auth/              # Authentication components
β”‚   β”œβ”€β”€ budget/            # Budget components
β”‚   β”œβ”€β”€ goals/             # Goal components
β”‚   β”œβ”€β”€ ai-coach/          # AI chat interface
β”‚   └── rewards/           # Reward system components
└── lib/
    β”œβ”€β”€ supabase.ts        # Database client
    β”œβ”€β”€ plaid.ts           # Banking integration
    β”œβ”€β”€ store.ts           # State management
    └── events.ts          # Event tracking

πŸš€ Getting Started

Prerequisites

  • Node.js 18+ and pnpm
  • Supabase account and project
  • Plaid developer account

Installation

  1. Clone the repository

    git clone https://github.com/Sultanlodi/Hackathon25.git
    cd Hackathon25
  2. Install dependencies

    pnpm install
  3. Set up environment variables

    cp .env.example .env.local

    Fill in your environment variables:

    # Supabase
    NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
    NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
    
    # Plaid
    PLAID_CLIENT_ID=your-plaid-client-id
    PLAID_SECRET=your-plaid-secret
    PLAID_ENV=sandbox
    
    # Google AI
    GOOGLE_GENERATIVE_AI_API_KEY=your-google-ai-key
  4. Set up Supabase database

    • Follow the complete setup guide in SUPABASE_SETUP.md
    • Run the provided SQL schema in your Supabase dashboard
  5. Start the development server

    pnpm dev
  6. Open the application Visit http://localhost:3000

πŸ“ Project Structure

Hackathon25/
β”œβ”€β”€ public/                 # Static assets
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/               # Next.js App Router
β”‚   β”‚   β”œβ”€β”€ globals.css    # Global styles
β”‚   β”‚   β”œβ”€β”€ layout.tsx     # Root layout
β”‚   β”‚   β”œβ”€β”€ page.tsx       # Landing page
β”‚   β”‚   β”œβ”€β”€ dashboard/     # Dashboard pages
β”‚   β”‚   β”œβ”€β”€ budget/        # Budget management
β”‚   β”‚   β”œβ”€β”€ goals/         # Goal setting
β”‚   β”‚   β”œβ”€β”€ login/         # Authentication
β”‚   β”‚   └── api/           # API routes
β”‚   β”œβ”€β”€ components/        # React components
β”‚   β”‚   β”œβ”€β”€ ui/            # Base UI components
β”‚   β”‚   β”œβ”€β”€ dashboard/     # Dashboard components
β”‚   β”‚   β”œβ”€β”€ auth/          # Auth components
β”‚   β”‚   β”œβ”€β”€ budget/        # Budget components
β”‚   β”‚   β”œβ”€β”€ goals/         # Goal components
β”‚   β”‚   β”œβ”€β”€ ai-coach/      # AI chat components
β”‚   β”‚   └── rewards/       # Reward components
β”‚   └── lib/               # Utilities and configs
β”‚       β”œβ”€β”€ supabase.ts    # Database client
β”‚       β”œβ”€β”€ plaid.ts       # Banking API
β”‚       β”œβ”€β”€ store.ts       # State management
β”‚       └── events.ts      # Analytics
β”œβ”€β”€ .env.local             # Environment variables
β”œβ”€β”€ SUPABASE_SETUP.md      # Database setup guide
β”œβ”€β”€ package.json           # Dependencies
β”œβ”€β”€ tailwind.config.js     # Styling config
└── tsconfig.json          # TypeScript config

πŸ› οΈ Available Scripts

  • pnpm dev - Start development server
  • pnpm build - Build for production
  • pnpm start - Start production server
  • pnpm lint - Run ESLint
  • pnpm lint:fix - Fix ESLint errors
  • pnpm type-check - Run TypeScript checks
  • pnpm format - Format code with Prettier
  • pnpm format:check - Check code formatting

πŸ” Security & Privacy

  • Bank-level encryption for all financial data
  • Row Level Security (RLS) in Supabase
  • No data selling - your information stays private
  • FDIC-insured partner institutions
  • Compliance with financial regulations

🌟 Key Differentiators

  1. AI-First Approach: Personalized coaching available 24/7
  2. Blockchain Transparency: All rewards and goals verified on-chain
  3. Gamification: Making financial literacy engaging and fun
  4. Real Integration: Live bank data and actual investment options
  5. Education Focus: Teaching rather than just tracking
  6. Gen Z Optimized: Modern UI/UX designed for digital natives

🀝 Contributing

We welcome contributions! Please see our contributing guidelines and code of conduct.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages