AI-Powered Alternative Credit Scoring for 2+ Billion Unbanked People Worldwide
HisaabScore is a revolutionary fintech platform that provides alternative credit scores for gig workers, street vendors, freelancers, and informal economy workers who lack traditional credit history. Unlike FICO or VantageScore which require credit cards and bank loans, HisaabScore analyzes everyday financial behaviors to create fair, accessible credit scores.
- 2+ billion people worldwide are excluded from traditional credit systems
- Traditional credit scoring requires credit cards, bank loans, and formal banking history
- Informal economy workers (gig workers, street vendors, freelancers) have no way to prove creditworthiness
- This prevents access to loans, financing, and financial services
HisaabScore uses AI to analyze:
- ๐ฑ Mobile wallet transactions
- ๐ฐ Income consistency patterns
- ๐ณ Bill payment history (rent, utilities, mobile)
- ๐ Expense management and savings behavior
- ๐ Financial growth trends over time
- Drag-and-drop upload for receipts, bills, and statements
- OCR extraction using Google Gemini 2.0 Flash
- Automatic transaction detection from images and PDFs
- Smart categorization into 12+ categories with confidence scoring
- Real-time processing with status tracking
Supported Documents:
- Receipts (retail, restaurant, services)
- Utility bills (electricity, water, internet)
- Mobile wallet statements (M-Pesa, PayTM, etc.)
- Bank statements
- Rent receipts
Our proprietary algorithm evaluates 5 key factors:
| Factor | Weight | What It Measures |
|---|---|---|
| Bill Payment History | 30% | On-time payments for rent, utilities, mobile bills |
| Income Consistency | 25% | Regular earning patterns and income stability |
| Expense Management | 20% | Spending discipline, savings rate, financial control |
| Financial Growth | 15% | Income trend over 3-6 months, upward trajectory |
| Transaction Diversity | 10% | Multiple income sources, diversified earnings |
Score Ranges:
- A (800-1000): Excellent - Very low risk
- B+ (700-799): Good - Low risk
- B (600-699): Fair - Moderate risk
- C (500-599): Needs improvement - Higher risk
- D (<500): Poor - High risk
Financial Overview:
- Total income, expenses, and net profit
- Real-time credit score with animated gauge
- Pending transactions counter
- Financial health metrics
Visual Analytics:
- Income vs Expense bar chart (last 6 months)
- Category breakdown pie chart
- Top 5 income sources
- Recent transaction history
Smart Insights:
- Spending pattern analysis
- Savings recommendations
- Score improvement tips
Conversational AI Advisor:
- Analyzes your transaction history
- Answers questions about spending patterns
- Provides personalized budgeting advice
- Offers financial tips and recommendations
- Context-aware responses based on your data
Example Queries:
- "Analyze my spending patterns"
- "What's my total income this month?"
- "Give me saving tips"
- "How can I improve my credit score?"
Generate Bank-Ready Reports:
- Detailed credit score breakdown
- Income and expense analysis
- Payment history summary
- Risk grade assessment
- Personalized recommendations
Export Options:
- PDF download for lenders
- Shareable report links (coming soon)
- Password-protected access (coming soon)
Complete Transaction Control:
- View all income and expenses
- Filter by merchant, type, category
- Search functionality
- Pagination for large datasets
- Real-time updates from Firestore
Transaction Categories:
- Income: Sales, Services, Gig Work, Remittances
- Expenses: Inventory, Rent, Utilities, Transport, Food, Supplies
Email-Based Authentication:
- Email/password signup and login
- Email verification required
- Password reset functionality
- Forgot password flow
- Auth guards on protected routes
Security Features:
- Firebase Authentication
- Firestore security rules
- User data isolation
- Protected API routes
Optimized for Low-End Devices:
- Responsive layout (mobile, tablet, desktop)
- Fast loading on 3G networks
- Optimized for Android devices
- Touch-friendly interface
- Minimal data usage
- Next.js 15.3 - React framework with App Router
- TypeScript 5 - Type-safe development
- Tailwind CSS - Utility-first styling
- Shadcn/ui - Beautiful component library
- Recharts - Data visualization
- Lucide Icons - Modern icon set
- Firebase - Authentication, Firestore database, hosting
- Google Genkit 1.20 - AI orchestration framework
- Gemini 2.0 Flash - Document processing and chat
- Zod - Schema validation
- jsPDF - PDF generation
- Turbopack - Fast bundler
- ESLint - Code linting
- TypeScript - Static type checking
- Node.js 18+ installed
- Firebase project created
- Google AI API key
- Clone the repository
git clone https://github.com/yourusername/hisaabscore.git
cd hisaabscore- Install dependencies
npm install- Set up environment variables
Create .env.local file:
# Firebase Configuration
NEXT_PUBLIC_FIREBASE_API_KEY=your_firebase_api_key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
NEXT_PUBLIC_FIREBASE_APP_ID=your_app_id
# Google AI
GOOGLE_GENAI_API_KEY=your_google_ai_api_key
# App URL
NEXT_PUBLIC_APP_URL=http://localhost:9003- Deploy Firestore rules
firebase deploy --only firestore:rules- Start development server
npm run dev- Open your browser
http://localhost:9003
# Start dev server with Turbopack
npm run dev
# Test AI flows with Genkit UI
npm run genkit:dev
# Type checking
npm run typecheck
# Production build
npm run build
# Start production server
npm starthisaabscore/
โโโ src/
โ โโโ ai/ # AI flows and configuration
โ โ โโโ genkit.ts # Genkit setup
โ โ โโโ flows/
โ โ โโโ calculate-credit-score.ts
โ โ โโโ categorize-transactions.ts
โ โ โโโ extract-transactions-from-document.ts
โ โ โโโ finance-chat.ts
โ โโโ app/
โ โ โโโ (auth)/ # Authentication pages
โ โ โ โโโ login/
โ โ โ โโโ signup/
โ โ โ โโโ forgot-password/
โ โ โ โโโ verify-email/
โ โ โ โโโ resend-verification/
โ โ โโโ (app)/ # Protected app pages
โ โ โ โโโ dashboard/ # Main dashboard
โ โ โ โโโ documents/ # Document upload
โ โ โ โโโ transactions/ # Transaction list
โ โ โ โโโ reports/ # Credit reports
โ โ โ โโโ settings/ # User settings
โ โ โโโ api/ # API routes
โ โ โ โโโ create-user-profile/
โ โ โ โโโ generate-report/
โ โ โ โโโ generate-pdf/
โ โ โโโ layout.tsx # Root layout
โ โ โโโ page.tsx # Landing page
โ โ โโโ globals.css # Global styles
โ โโโ components/
โ โ โโโ ui/ # Shadcn components
โ โ โโโ app-header.tsx
โ โ โโโ app-sidebar.tsx
โ โ โโโ auth-guard.tsx
โ โ โโโ finance-chatbot.tsx
โ โ โโโ score-gauge.tsx
โ โ โโโ score-breakdown.tsx
โ โ โโโ charts.tsx
โ โโโ firebase/ # Firebase configuration
โ โ โโโ config.ts
โ โ โโโ provider.tsx
โ โ โโโ firestore/
โ โโโ lib/
โ โ โโโ types.ts # TypeScript types
โ โ โโโ credit-analysis.ts # Credit scoring logic
โ โ โโโ pdf-generator.ts # PDF generation
โ โ โโโ firebase/ # Firebase utilities
โ โโโ hooks/ # Custom React hooks
โโโ public/ # Static assets
โโโ documentation/ # All documentation
โโโ firestore.rules # Firestore security rules
โโโ firebase.json # Firebase configuration
โโโ next.config.ts # Next.js configuration
โโโ tailwind.config.ts # Tailwind configuration
โโโ package.json # Dependencies
- Primary:
HSL(49, 100%, 50%)- Vibrant yellow (#FFDA63) - Background:
HSL(53, 26%, 92%)- Light warm (#F7F4EC) - Accent:
HSL(19, 92%, 51%)- Bright orange (#F1711E)
- Headlines: Poppins (geometric sans-serif)
- Body: PT Sans (humanist sans-serif)
- Mobile-first responsive layout
- Clear visual hierarchy
- Consistent spacing and padding
- Accessible color contrast
- Subtle animations with Framer Motion
- User data isolated per Firebase user ID
- Firestore security rules enforce ownership
- No cross-user data access
- Encrypted data transmission
- Email verification required
- Secure password hashing
- Password reset flow
- Session management
- No data sharing with third parties
- User controls their own data
- Data deletion on account removal
- GDPR-compliant practices
The alternative credit score is calculated using a weighted average of 5 factors:
Credit Score = (
Bill Payment History ร 0.30 +
Income Consistency ร 0.25 +
Expense Management ร 0.20 +
Financial Growth ร 0.15 +
Transaction Diversity ร 0.10
) ร 10
1. Bill Payment History (0-100)
- Identifies regular payments (rent, utilities, mobile)
- Measures payment consistency month-over-month
- Rewards on-time payment patterns
2. Income Consistency (0-100)
- Calculates coefficient of variation in monthly income
- Lower variation = higher score
- Bonus for multiple months of income
3. Expense Management (0-100)
- Expense-to-income ratio
- Rewards saving behavior
- Penalizes overspending
4. Financial Growth (0-100)
- Compares first month vs last month income
- Positive growth = higher score
- Stable income = moderate score
5. Transaction Diversity (0-100)
- Counts unique income categories
- Counts unique merchants/clients
- Rewards diversified income sources
Gig Workers
- Uber/Lyft drivers
- Food delivery riders
- Freelance professionals
- Task-based workers
Small Business Owners
- Street vendors
- Market sellers
- Home-based businesses
- Mobile shop owners
Informal Workers
- Domestic workers
- Construction workers
- Agricultural workers
- Artisans and craftspeople
- Microloans from alternative lenders
- Mobile wallet credit limits
- Merchant financing programs
- Rent-to-own schemes
- P2P lending platforms
- Buy-now-pay-later services
- AI document processing
- Alternative credit scoring
- Transaction management
- Dashboard analytics
- Credit report generation
- AI chatbot advisor
- Camera-based document scanning
- Shareable credit report links
- Password-protected reports
- Access tracking for shared reports
- Multi-language support
- Dark mode
- Predictive income forecasting
- Spending pattern alerts
- Budget recommendations
- Goal tracking (savings, debt reduction)
- Financial health score
- Comparison with similar users
- Lender marketplace integration
- Mobile wallet API connections
- Bank statement import
- Credit bureau reporting
- Loan application tracking
- Financial product recommendations
- Batch upload: Upload multiple documents at once
- Document templates: Pre-configured templates for common document types
- Manual entry: Allow manual transaction entry for cash transactions
- Receipt scanning: Real-time camera scanning with instant feedback
- Document history: View original documents alongside extracted transactions
- Credit score simulator: "What-if" scenarios to see score impact
- Score history tracking: Graph showing score changes over time
- Factor breakdown: Detailed explanation of each factor's contribution
- Improvement roadmap: Step-by-step plan to improve score
- Peer comparison: Anonymous comparison with similar users
- Budget creation: Set monthly budgets by category
- Expense alerts: Notifications when approaching budget limits
- Savings goals: Track progress toward financial goals
- Bill reminders: Automated reminders for recurring payments
- Cash flow forecasting: Predict future income and expenses
- Shareable reports: Generate unique links for lenders
- Access control: Set expiration dates and view limits
- View analytics: See who viewed your report and when
- Lender directory: Browse and connect with alternative lenders
- Success stories: Share anonymized success stories
- Native iOS/Android apps: Better performance and offline support
- Push notifications: Real-time alerts for transactions and score changes
- Biometric authentication: Face ID / fingerprint login
- Offline mode: Queue uploads when offline
- Widget support: Quick view of credit score on home screen
- Smarter categorization: Learn from user corrections
- Fraud detection: Flag suspicious transactions
- Income prediction: Forecast next month's income
- Expense optimization: AI-powered spending recommendations
- Natural language queries: Ask complex questions about finances
- Mobile wallet sync: Auto-import from M-Pesa, PayTM, etc.
- Bank account linking: Connect bank accounts via Plaid/Yodlee
- Accounting software: Export to QuickBooks, Xero
- E-commerce platforms: Import sales from Shopify, WooCommerce
- Payment processors: Connect Stripe, PayPal, Square
- Achievement badges: Earn badges for financial milestones
- Streak tracking: Consecutive months of good behavior
- Leaderboards: Anonymous rankings (opt-in)
- Challenges: Weekly/monthly financial challenges
- Rewards program: Points for using the platform
- Financial literacy: In-app tutorials and guides
- Video tutorials: How to improve credit score
- Blog/articles: Financial tips for informal workers
- Webinars: Live sessions with financial experts
- Community forum: User discussions and support
- Lender dashboard: Tools for lenders to review applications
- API access: Allow lenders to integrate credit checks
- Bulk verification: Process multiple applications
- Risk analytics: Advanced risk assessment tools
- White-label solution: Branded version for partners
- Credit bureau reporting: Report to traditional bureaus
- Regulatory compliance: Meet local financial regulations
- Third-party audits: Independent verification of algorithm
- Transparency reports: Publish scoring methodology
- User data export: GDPR-compliant data portability
- Progressive Web App (PWA): Installable web app
- Image optimization: Compress uploaded documents
- Lazy loading: Load components on demand
- Caching strategy: Reduce API calls
- CDN integration: Faster global access
We welcome contributions! Here's how you can help:
- ๐ Report bugs and issues
- ๐ก Suggest new features
- ๐ Improve documentation
- ๐ง Submit pull requests
- ๐ Translate to new languages
- ๐จ Design improvements
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow TypeScript best practices
- Write meaningful commit messages
- Add tests for new features
- Update documentation
- Ensure build passes (
npm run build)
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Genkit - AI orchestration framework
- Firebase - Backend infrastructure
- Shadcn/ui - Beautiful component library
- Vercel - Deployment platform
- Open source community - For amazing tools and libraries
- Website: hisaabscore.com
- Email: support@hisaabscore.com
- GitHub: @yourusername
- Twitter: @hisaabscore
- ๐ Documentation
- ๐ฌ Community Forum
- ๐ Report Issues
If you find this project useful, please consider giving it a star! โญ
Built with โค๏ธ for financial inclusion
Empowering 2+ billion unbanked people worldwide