Skip to content

ArfanCodes/Peso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ฐ Peso - AI-Powered Financial Intelligence Platform

Your personal finance companion powered by AI, helping you achieve financial stability through intelligent insights and gamification.

React Native Expo TypeScript Node.js


๐ŸŒŸ Features

๐Ÿ“Š Financial Intelligence

  • AI Risk Engine - Real-time financial risk assessment using ML models
  • Stability Scoring - Dynamic calculation of your financial health (0-100)
  • Smart Leak Detection - Automatically identifies spending patterns and money leaks
  • Predictive Analytics - Forecast your financial runway and stability trends

๐Ÿค– AI Coach (BJร–RK)

  • Interactive Mascot - Emotional AI companion that responds to your financial state
  • RAG-Powered Insights - Context-aware financial advice using advanced AI
  • Personalized Guidance - Tailored recommendations based on your spending habits
  • Mood States - Visual feedback through mascot emotions (normal, sad, happy)

๐ŸŽฎ Gamification System

  • Streak Tracking - Build consistency with daily financial check-ins
  • Achievement Badges - Unlock rewards for good financial behavior
    • First Win ๐Ÿ†
    • Stability Starter ๐Ÿ’ฐ
    • Leak Hunter ๐Ÿ”
    • Consistency Hero ๐Ÿ”ฅ
    • Saver Spark โšก
  • Micro-Savings - Automated round-up savings with instant gratification
  • Rewards Store - Unlock premium features through engagement

๐Ÿšจ Emergency Management

  • Unexpected Events Tracker - Log and manage financial shocks
    • Salary delays, medical emergencies, unexpected expenses
  • Recovery Plans - AI-generated step-by-step recovery strategies
  • 30-Day Survival Mode - Actionable daily and weekly tasks
  • Impact Prediction - Estimate when stability will return

๐Ÿ“ˆ Expense Management

  • Smart Categorization - Automatic expense classification
  • Circular Progress Tracking - Visual spending vs. budget indicators
  • Fixed vs. Variable Expenses - Separate tracking for better insights
  • EMI & Subscription Monitoring - Track recurring payments and debt

๐Ÿ‘ค User Experience

  • Seamless Onboarding - Quick profile setup with financial goal selection
  • Dark Mode Ready - Modern, clean UI with pastel aesthetics
  • Real-time Sync - Backend integration with Supabase PostgreSQL
  • Offline Support - Local data persistence with AsyncStorage

๐Ÿ› ๏ธ Tech Stack

Frontend

  • Framework: React Native (Expo)
  • Language: TypeScript
  • State Management: Zustand
  • Navigation: React Navigation (Stack + Bottom Tabs)
  • Data Fetching: TanStack Query (React Query)
  • HTTP Client: Axios
  • Icons: Lucide React Native
  • Storage: AsyncStorage

Backend

  • Runtime: Node.js with Express.js
  • Language: TypeScript
  • Database: PostgreSQL (Supabase)
  • ORM: Prisma
  • Authentication: JWT with bcrypt
  • Validation: Zod

AI/ML Services

  • Risk Prediction API: Custom ML model for financial risk assessment
  • RAG Coach API: Context-aware AI chatbot for financial guidance

๐Ÿ“ฑ App Structure

Datanyx/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/          # Reusable UI components
โ”‚   โ”‚   โ”œโ”€โ”€ BjorkMascot.tsx  # AI mascot component
โ”‚   โ”‚   โ”œโ”€โ”€ CircularProgress.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ StreakBadge.tsx
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ screens/             # App screens
โ”‚   โ”‚   โ”œโ”€โ”€ Auth/            # Login & Registration
โ”‚   โ”‚   โ”œโ”€โ”€ Home/            # Dashboard
โ”‚   โ”‚   โ”œโ”€โ”€ Coach/           # AI Coach chat
โ”‚   โ”‚   โ”œโ”€โ”€ Leaks/           # Spending leaks
โ”‚   โ”‚   โ”œโ”€โ”€ Emergency/       # Emergency mode
โ”‚   โ”‚   โ”œโ”€โ”€ Achievements/    # Gamification
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ contexts/            # React contexts
โ”‚   โ”‚   โ”œโ”€โ”€ BjorkContext.tsx # Mascot state management
โ”‚   โ”‚   โ””โ”€โ”€ GamificationContext.tsx
โ”‚   โ”œโ”€โ”€ store/               # Zustand stores
โ”‚   โ”œโ”€โ”€ services/            # API services
โ”‚   โ”œโ”€โ”€ hooks/               # Custom React hooks
โ”‚   โ”œโ”€โ”€ utils/               # Utility functions
โ”‚   โ””โ”€โ”€ types/               # TypeScript types
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ controllers/     # Request handlers
โ”‚   โ”‚   โ”œโ”€โ”€ services/        # Business logic
โ”‚   โ”‚   โ”œโ”€โ”€ routes/          # API routes
โ”‚   โ”‚   โ”œโ”€โ”€ middleware/      # Auth & validation
โ”‚   โ”‚   โ””โ”€โ”€ config/          # Configuration
โ”‚   โ””โ”€โ”€ prisma/
โ”‚       โ””โ”€โ”€ schema.prisma    # Database schema
โ””โ”€โ”€ assets/                  # Images, fonts, icons

๐Ÿ” Security

  • โœ… Environment variables for sensitive data
  • โœ… JWT-based authentication
  • โœ… Password hashing with bcrypt
  • โœ… CORS protection
  • โœ… Input validation with Zod
  • โœ… SQL injection prevention (Prisma ORM)

๐Ÿ“Š Database Schema

Key models:

  • User - Authentication and profile
  • Profile - Onboarding data, gamification stats
  • Transaction - Income, expenses, EMI, subscriptions
  • Leak - Detected spending leaks
  • StabilityLog - Financial health tracking
  • Budget - Category-wise budgets
  • SavingsGoal - Financial goals

๐ŸŽฏ Key Features in Detail

AI Risk Engine

The app uses a custom ML model to predict financial risk based on:

  • Monthly salary and expenses
  • EMI count and debt stress
  • Savings ratio and financial runway
  • Employment type and credit score

BJร–RK Mascot

An emotional AI companion that:

  • Changes mood based on your financial state
  • Provides contextual encouragement
  • Celebrates achievements
  • Warns about overspending

Gamification

Engagement system featuring:

  • Daily streak tracking
  • 5 achievement badges
  • Micro-savings with round-up
  • Rewards store (coming soon)

๐Ÿค Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๏ฟฝ No Contributions Accepted

This is a closed-source project. We do NOT accept:

  • Pull requests
  • Feature suggestions
  • Bug reports from external parties
  • Code contributions of any kind

Any unsolicited contributions will be rejected and may be considered an attempt to claim ownership of intellectual property.


๐Ÿ‘ฅ Team

Built with โค๏ธ by the KisanX team


๐Ÿ™ Acknowledgments

  • Supabase for database infrastructure
  • Expo for React Native tooling
  • OpenAI for AI capabilities
  • The open-source community

โญ Star this repo if you find it helpful!

About

๐Ÿ’ฐ AI-powered personal finance app featuring real-time risk scoring, smart spending insights, gamified money habits, and an interactive AI mascot coach to help you stay financially stable.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors