๐ฑ GreenBucks - Sustainable Finance Platform
Made with ๐ @ PennApps XXVI
๐ฅ Team Members
- Apoorv Thite
- Aarya Soni
- Kartavya Suhagiya
- Nikhil Saini
A revolutionary fintech application that rewards sustainable spending through AI-powered eco-scoring, real bank integration, and personalized environmental insights.
๐ Overview
GreenBucks transforms how people think about their environmental impact by connecting real banking data to eco-friendly rewards and actionable insights. Using advanced AI and machine learning, we analyze spending patterns to provide personalized recommendations for more sustainable financial decisions.
๐ฏ Key Features
- ๐ฆ Real Bank Integration: Connect via Plaid to analyze actual spending data
- ๐ CO2-Based Eco-Scoring: Realistic environmental impact calculations for every transaction
- ๐ฐ Smart Cashback System: Earn rewards based on eco-friendliness (up to 5% for Eco++ purchases)
- ๐ค AI Assistant (Koshi): Personalized eco-tips powered by Google Gemini AI
- ๐ฑ Receipt OCR: Upload receipts for item-level environmental analysis
- ๐ Comprehensive Analytics: Real-time dashboards and spending insights
- ๐ Gamification: Leaderboards and eco-challenges for behavior change
๐ Live Demo
Demo Credentials:
- Email:
[email protected] - Password:
password123
๐ ๏ธ Tech Stack
Frontend
- React 18 with Vite for fast development
- Tailwind CSS for modern, responsive design
- React Router for seamless navigation
- Zustand for state management
- Lucide React for beautiful icons
Backend
- FastAPI (Python) for high-performance API
- PostgreSQL for robust data storage
- SQLAlchemy for database ORM
- Plaid API for secure bank connectivity
- Google Vision API for OCR processing
- Tesseract OCR as failsafe for image recognition
- Climatiq API for accurate carbon impact calculations
AI & Machine Learning
- Google Gemini AI for intelligent conversational responses
- Cerebras API for accurate receipt item parsing
- Custom CO2 Calculation Engine powered by Climatiq API
- Receipt Analysis Pipeline for item-level eco-scoring
Infrastructure
- Alembic for database migrations
- Pydantic for data validation
- CORS enabled for secure cross-origin requests
๐ Project Structure
GreenBucks/
โโโ greenfrontend/ # React frontend application
โ โโโ src/
โ โ โโโ components/ # Reusable UI components
โ โ โ โโโ UI/ # Base UI components (Button, Card, etc.)
โ โ โ โโโ Layout/ # Layout components (Header, Footer)
โ โ โ โโโ Decor/ # Visual components (Backgrounds, Hero)
โ โ โ โโโ Koshi/ # AI chatbot components
โ โ โโโ routes/ # Page components
โ โ โโโ lib/ # Utilities and API clients
โ โ โโโ assets/ # Static assets
โโโ greenbackend/ # FastAPI backend application
โ โโโ backend/
โ โ โโโ app/
โ โ โ โโโ api/ # API route handlers
โ โ โ โโโ models/ # Database models
โ โ โ โโโ services/ # Business logic
โ โ โ โโโ db/ # Database configuration
โ โโโ alembic/ # Database migrations
โโโ README.md
๐ Complete User Flow:
- ๐ Onboarding โ Login with demo credentials (
[email protected]/password123) - ๐ฆ Bank Connection โ Secure Plaid integration syncs transaction history
- ๐ค AI Analysis โ Climatiq API calculates CO2 impact, assigns eco-scores (1-10)
- ๐ Dashboard View โ See Eco-Wallet ($23,379+), Green Score, and Eco Points
- ๐งพ Receipt Upload โ OCR + AI parsing for detailed item-level analysis
- ๐ฌ AI Assistant โ Chat with Koshi for personalized sustainability tips
- ๐ Gamification โ Compete on leaderboards, earn badges, join challenges
- ๐ฑ Behavior Change โ Track progress and build sustainable spending habits
๐ง Quick Setup
# Backend
cd greenbackend && pip install -r requirements.txt
uvicorn backend.app.main:app --reload --port 8787
# Frontend
cd greenfrontend && npm install && npm run dev
Environment Variables: Plaid, Google Vision/Gemini, Cerebras, Climatiq API keys required.
๐ Key Features Deep Dive
๐ฆ Bank Integration
- Plaid Sandbox Integration: Secure connection to 4,160+ realistic transactions
- Real-time Sync: Automatic transaction updates and categorization
- Multi-bank Support: Connect multiple accounts seamlessly
- Privacy First: Bank data encrypted and processed securely
๐ Environmental Impact Scoring
Our proprietary eco-scoring algorithm analyzes transactions using:
Category-Based Scoring:
- Public Transit: 9-10 (Eco++)
- Groceries/Coffee: 7-8 (Eco+)
- Restaurants: 5-6 (Neutral)
- Gas/Ride Share: 3-4 (Less-Eco)
- Airlines: 1-2 (Non-Eco)
Climatiq API Integration: Precise CO2 calculations using real environmental data
Receipt Analysis: Item-level scoring for mixed retailers
Dynamic Adjustments: Scores evolve with spending patterns
๐ค Meet Koshi: Your Eco-Friendly AI Companion
Why "Koshi"? In Sanskrit, "Koshi" (เคเฅเคถเฅ) means "treasury" or "treasure chest" - perfectly embodying our AI assistant who helps you discover the hidden treasures of sustainable living while building your eco-wallet. Just as a treasury holds valuable resources, Koshi holds the wisdom to transform your spending habits into environmental rewards.
Koshi's Capabilities:
- Personalized Analysis: Examines your unique spending patterns using real transaction data
- Smart Recommendations: Suggests eco-friendly alternatives based on your lifestyle
- Behavioral Coaching: Provides gentle nudges toward more sustainable choices
- Environmental Education: Explains the CO2 impact of your purchases in simple terms
- Progress Celebration: Acknowledges your eco-improvements and milestones
- Interactive Chat: Powered by Google Gemini AI for natural, helpful conversations
- Voice Integration: Supports speech-to-text and text-to-speech for accessibility
๐ฑ Receipt OCR System
Advanced receipt processing pipeline with multiple AI layers:
- Google Vision API: Primary OCR for text extraction from receipt images
- Tesseract OCR: Failsafe backup for image recognition when Vision API fails
- Cerebras API: Accurate parsing of extracted text into individual items and prices
- Climatiq CO2 Analysis: Precise environmental impact calculations for each item
- Eco-Scoring: Assigns environmental scores based on real carbon footprint data
- Transaction Linking: Associates receipts with bank transactions
๐ฐ Cashback Rewards
Dynamic reward system based on eco-scores:
- Base Rate: 1% on all purchases
- Eco Bonus: Up to 4% additional for sustainable spending
- Total Potential: Up to 5% cashback on Eco++ purchases
- Real Rewards: $23,379+ in total available cashback
๐ Analytics & Insights
Dashboard Metrics
๐ Eco-Wallet
- Total Cashback: $23,379+ available across all users
- Personal Earnings: Real-time tracking of individual cashback
- Reward Rates: Dynamic 1-5% based on eco-score performance
- Monthly Growth: Track sustainable spending improvements
๐ Green Score
- Average Rating: Environmental impact across all transactions (1-10 scale)
- Category Breakdown: Performance by spending category
- Trend Analysis: Month-over-month eco-score improvements
- CO2 Impact: Real carbon footprint data via Climatiq API
โญ Eco Points
- Base Points: Direct correlation with eco-scores
- Bonus Multipliers: Extra points for Eco++ purchases
- Achievement Rewards: Special bonuses for milestones
- Leaderboard Ranking: Compare with community members
Transaction Analysis
- Category Breakdown: Detailed spending by environmental impact
- Merchant Recognition: 40+ specific merchants with custom scoring
- Trend Tracking: Month-over-month improvement in eco-scores
- Goal Setting: Personalized targets for sustainable spending
๐ฎ Gamification Features
๐ Leaderboard & Achievements
Top Eco-Warriors:
Achievement Badges: Eco++ Streak, Carbon Saver, Transit Hero, Green Shopper (Future Scope)
๐ Security & Privacy
- Bank-Level Security: Plaid's industry-standard encryption
- JWT Authentication: Secure user session management
- Data Minimization: Only necessary financial data processed
- Transparent Processing: Clear explanation of data usage
- User Control: Easy account deletion and data export
๐ Performance Optimizations
Frontend
- Lazy Loading: Components loaded on demand
- Code Splitting: Optimized bundle sizes
- Caching: Smart data caching with cache busting
- Responsive Design: Mobile-first approach
Backend
- Database Indexing: Optimized query performance
- Connection Pooling: Efficient database connections
- Async Processing: Non-blocking I/O operations
- Error Handling: Comprehensive error management
๐ Impact & Results
Environmental Benefits
- CO2 Awareness: Users understand environmental cost of purchases
- Behavior Change: Incentivized shift to sustainable options
- Education: Learning about eco-friendly alternatives
- Community: Shared commitment to environmental responsibility
Technical Achievements
- 4,160+ Transactions: Successfully processed and scored
- 100% Uptime: Robust error handling and recovery
- Sub-second Response: Fast AI-powered insights
- Scalable Architecture: Ready for production deployment
๐ Future Scope & Roadmap
๐ฆ Enhanced Banking Integration
- Multi-Bank Support: Connect multiple accounts from different institutions
- International Banks: Expand beyond US to global banking systems
- Credit Card Integration: Include credit card transactions and rewards
- Investment Tracking: Monitor ESG investments and sustainable portfolios
๐ฅ Community & Social Features
๐ Roommate & Friend Challenges
- Group Eco-Challenges: Monthly sustainability competitions
- Shared Goals: Collective carbon reduction targets
- Progress Sharing: Real-time updates on group performance
- Reward Splitting: Share cashback earnings for group achievements
๐ Advanced Leaderboard System
- Multiple Categories: Transit heroes, green shoppers, carbon savers
- Seasonal Competitions: Quarterly eco-challenges with prizes
- Local Rankings: Compare with users in your city/region
- Achievement Badges: Unlock special recognition for milestones
๐ฐ Bill Splitting & Eco-Score Sharing
- Splitwise Integration: Seamless bill splitting with eco-score tracking
- Shared Receipts: Upload group purchases and distribute eco-points
- Fair Share Calculation: Split environmental impact among participants
- Group Cashback: Collective rewards for sustainable group spending
๐ Rewards & Incentives
๐๏ธ Shopping Rewards
- Partner Discounts: Exclusive deals with eco-friendly brands
- Cashback Redemption: Convert eco-points to real shopping credits
- Sustainable Products: Curated marketplace for green alternatives
- Local Business Partnerships: Support eco-friendly local merchants
๐ Achievement System
- Milestone Rewards: Physical prizes for top performers
- Certification Programs: Eco-warrior certificates and credentials
- Brand Partnerships: Exclusive access to sustainable product launches
- Carbon Offset Credits: Purchase real carbon offsets with eco-points
๐ฌ Advanced Analytics
๐ Predictive Insights
- Spending Forecasts: Predict future eco-score trends
- Behavior Recommendations: AI-powered suggestions for improvement
- Impact Projections: Visualize long-term environmental benefits
- Goal Optimization: Personalized targets based on lifestyle patterns
๐ Environmental Impact Tracking
- Carbon Footprint Dashboard: Detailed CO2 emissions by category
- Water Usage Calculations: Track water impact of purchases
- Waste Generation Metrics: Monitor packaging and waste production
- Biodiversity Impact: Assess effects on ecosystems and wildlife
๐ค AI & Machine Learning Enhancements
๐ง Smarter Recommendations
- Contextual Suggestions: Location and time-based eco-tips
- Habit Formation: AI-guided sustainable behavior development
- Personalized Coaching: Custom eco-improvement programs
- Predictive Nudges: Proactive suggestions before purchases
๐ฑ Advanced Receipt Processing
- Real-time OCR: Instant receipt processing via mobile camera
- Ingredient Analysis: Detailed sustainability scoring for food items
- Brand Recognition: Automatic identification of eco-friendly brands
- Alternative Suggestions: Recommend greener product alternatives
๐ Platform Expansion
๐ฑ Mobile Applications
- Native iOS/Android Apps: Full-featured mobile experience
- Offline Functionality: Core features available without internet
- Push Notifications: Real-time eco-tips and achievement alerts
- Widget Integration: Quick eco-score checks from home screen
๐ Third-Party Integrations
- Mint/YNAB Sync: Import data from existing financial tools
- Google Pay/Apple Pay: Direct integration with mobile wallets
- Amazon/Shopping APIs: Analyze online purchase sustainability
- Fitness Apps: Connect eco-actions with health and wellness goals
๐ผ Business & Enterprise Features
๐ข Corporate Sustainability
- Company Dashboards: Track employee eco-spending patterns
- Team Challenges: Department-wide sustainability competitions
- CSR Integration: Connect with corporate social responsibility programs
- Expense Report Integration: Eco-scoring for business expenses
๐ Educational Institutions
- Campus Challenges: University-wide sustainability competitions
- Student Discounts: Special rates for educational institutions
- Research Partnerships: Collaborate on environmental impact studies
- Curriculum Integration: Educational content for sustainability courses
๐ค Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Development Workflow
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ API Documentation
Authentication Endpoints
POST /auth/login # User login
POST /auth/register # User registration
POST /auth/verify-token # Token verification
Transaction Endpoints
GET /transactions/ # List user transactions
POST /transactions/sync # Sync Plaid transactions
GET /transactions/{id} # Get specific transaction
Receipt Endpoints
POST /receipts/upload # Upload and process receipt
GET /receipts/{id}/items # Get receipt items
POST /receipts/attach # Attach receipt to transaction
Plaid Endpoints
POST /plaid/link-token # Create Plaid link token
POST /plaid/exchange # Exchange public token for access token
POST /plaid/sync # Sync transactions from Plaid
๐ Contact & Team
Built by passionate developers at PennApps XXVI
๐ Acknowledgments
- PennApps XXVI for the incredible hackathon experience
- Plaid for secure banking API access
- Google Cloud for Gemini AI and Vision API services
- Cerebras for high-performance receipt parsing
- Climatiq for accurate carbon footprint calculations
- Tesseract OCR for reliable text recognition
- Open Source Community for amazing tools and libraries
Made with ๐ @ PennApps XXVI
Transforming finance for a sustainable future, one transaction at a time. ๐โจ
Built With
- albemic
- cerebras
- climatq
- cors
- fastapi
- flask
- gcp
- gemni
- html
- javascript
- json
- lucide
- plaid
- pydantic
- python
- react
- sqlalchemy
- sqlite
- tailwind
- tessract
- vite


Log in or sign up for Devpost to join the conversation.