Skip to content

MoneyFyi is an AI-driven financial intelligence dashboard that analyzes uploaded bank statements, invoices, and UPI data to detect fraud, identify compliance risks, and predict cashflow issues for Indian SMEs.

License

Notifications You must be signed in to change notification settings

Aspect022/MoneyFyi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MoneyFyi - Your AI CFO for Small Businesses

MoneyFyi Logo

"Detect Problems Before They Hurt You"

Next.js TypeScript Supabase Tailwind CSS License


๐Ÿ“‹ Overview

MoneyFyi is an AI-driven financial intelligence dashboard that analyzes uploaded bank statements, invoices, and UPI data to detect fraud, identify compliance risks, and predict cashflow issues for Indian SMEs.

The Problem

Small businesses in India lack financial awareness, leading to:

  • ๐Ÿ’ธ Fraud losses from unauthorized transactions
  • ๐Ÿ“ GST/TDS errors resulting in penalties
  • โฐ Late payments and cashflow shortages
  • โœ‹ Manual transaction checks that miss critical issues

The Solution

An AI-powered multi-agent system that autonomously:

  • โœ… Analyzes financial documents (OCR + NLP)
  • โœ… Detects anomalies and fraud patterns
  • โœ… Validates GST/TDS compliance
  • โœ… Forecasts cashflow shortages
  • โœ… Sends WhatsApp alerts in real-time

๐ŸŽฏ Target Users

  1. Small & Medium Enterprises (SMEs)
  2. Retail shops, traders, and distributors
  3. Freelancers and service providers
  4. Small company finance teams
  5. Chartered Accountants (CA firms managing multiple clients)

โœจ Key Features

๐Ÿ›ก๏ธ Fraud Detection

  • Suspicious transaction identification
  • Duplicate payment detection
  • Round-number transaction flagging
  • Weekend/holiday large withdrawal alerts
  • Invoice-payment mismatch detection

๐Ÿ“Š Compliance Tracking

  • GST invoice validation
  • TDS deduction verification (10% for services)
  • Quarterly GST filing deadline tracking
  • GSTIN format validation
  • HSN/SAC code verification

๐Ÿ’ฐ Cashflow Forecasting

  • 30-90 day cashflow predictions
  • Seasonal pattern analysis
  • Pending invoice tracking
  • Recurring expense monitoring

๐Ÿ“ฑ Smart Alerts

  • ๐Ÿ”ด Critical: Suspected fraud (immediate)
  • ๐ŸŸ  High: Compliance deadline <3 days
  • ๐ŸŸก Medium: Cashflow shortage forecast
  • ๐ŸŸข Low: Weekly summary

๐Ÿ“ˆ Vendor Risk Analysis

  • Risk scoring (0-100)
  • Payment pattern analysis
  • Transaction history tracking
  • Red flag identification

๐Ÿ—๏ธ System Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ 1. Upload Documents (Web/Mobile)        โ”‚
โ”‚ PDF, CSV, Images (Bank statements,      โ”‚
โ”‚ Invoices, UPI logs)                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ 2. OCR & Data Extraction                โ”‚
โ”‚ PaddleOCR / OpenAI Vision               โ”‚
โ”‚ โ†’ Structured JSON                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ 3. Multi-Agent Analysis                 โ”‚
โ”‚ โ€ข Doc Scan Agent                        โ”‚
โ”‚ โ€ข Anomaly Detection Agent               โ”‚
โ”‚ โ€ข Compliance Agent                      โ”‚
โ”‚ โ€ข Cashflow Forecasting Agent            โ”‚
โ”‚ โ€ข Insight Generation Agent              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ 4. Output & Alerts                      โ”‚
โ”‚ Dashboard + WhatsApp Notifications      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ’ป Tech Stack

Frontend

  • Framework: Next.js 16 (App Router)
  • Language: TypeScript 5.0
  • Styling: Tailwind CSS v4 + shadcn/ui
  • Charts: Recharts
  • State Management: React Hooks
  • Icons: Lucide React
  • PWA: Service Worker + Manifest
  • Analytics: Vercel Analytics

Backend (Planned)

  • Framework: FastAPI (Python 3.11)
  • Task Queue: Redis + Celery
  • OCR: PaddleOCR / OpenAI Vision
  • AI/ML: scikit-learn, Prophet, LangChain
  • LLM: OpenAI GPT-4 / Claude

Database & Storage

  • Primary DB: Supabase (PostgreSQL)
  • File Storage: Supabase Storage (AES-256 encrypted)
  • Cache: Redis (Upstash)
  • Auth: Supabase Auth

Integrations

  • WhatsApp: Twilio API (planned)
  • Analytics: PostHog (planned)
  • Monitoring: Sentry (planned)

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 18+ installed
  • A Supabase account and project
  • npm, pnpm, or yarn

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/moneyfyi.git
    cd moneyfyi/Frontend
  2. Install dependencies

    npm install
    # or
    pnpm install
    # or
    yarn install
  3. Set up environment variables

    Create a .env.local file in the Frontend directory:

    NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url
    NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
    SUPABASE_SERVICE_ROLE_KEY=your_service_role_key

    Get Supabase Credentials:

    • Go to your Supabase Dashboard
    • Select your project
    • Go to Settings โ†’ API
    • Copy the Project URL and anon/public key
  4. Set up database schema

    In Supabase Dashboard, go to SQL Editor and run the scripts in order:

    Frontend/scripts/001_create_profiles.sql
    Frontend/scripts/002_create_transactions.sql
    Frontend/scripts/003_create_vendors.sql
    Frontend/scripts/004_create_alerts.sql
    Frontend/scripts/005_create_cashflow_forecasts.sql
    Frontend/scripts/006_create_documents.sql
    
  5. Run the development server

    npm run dev
    # or
    pnpm dev
    # or
    yarn dev
  6. Open your browser

    Navigate to http://localhost:3000


๐Ÿ“ฑ Demo & Screenshots

Landing Page

Landing Page

Dashboard with Alerts

Dashboard


๐Ÿ“‚ Project Structure

MoneyFyi/
โ”œโ”€โ”€ Frontend/
โ”‚   โ”œโ”€โ”€ app/                    # Next.js App Router
โ”‚   โ”‚   โ”œโ”€โ”€ auth/              # Authentication pages
โ”‚   โ”‚   โ”œโ”€โ”€ dashboard/         # Main dashboard
โ”‚   โ”‚   โ”œโ”€โ”€ transactions/      # Transaction management
โ”‚   โ”‚   โ”œโ”€โ”€ reports/           # Reports generation
โ”‚   โ”‚   โ”œโ”€โ”€ upload/            # File upload interface
โ”‚   โ”‚   โ”œโ”€โ”€ settings/          # User settings
โ”‚   โ”‚   โ””โ”€โ”€ page.tsx           # Landing page
โ”‚   โ”œโ”€โ”€ components/            # Reusable components
โ”‚   โ”‚   โ”œโ”€โ”€ ui/               # shadcn/ui components
โ”‚   โ”‚   โ””โ”€โ”€ [feature-components]
โ”‚   โ”œโ”€โ”€ lib/                   # Utilities & helpers
โ”‚   โ”‚   โ”œโ”€โ”€ api/              # API client & mock data
โ”‚   โ”‚   โ”œโ”€โ”€ supabase/         # Supabase client
โ”‚   โ”‚   โ””โ”€โ”€ utils/            # Helper functions
โ”‚   โ”œโ”€โ”€ public/                # Static assets
โ”‚   โ”œโ”€โ”€ scripts/               # Database migration scripts
โ”‚   โ””โ”€โ”€ package.json
โ”œโ”€โ”€ Docs/                      # Project documentation
โ”‚   โ””โ”€โ”€ MoneyFyi - Complete Project Blueprint.pdf
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ LICENSE

๐ŸŽจ UI Design System

Color Palette

  • Primary Green: #0F8F6E (Trust, growth)
  • Accent Red: #FF4C4C (Alerts, critical)
  • Warning Orange: #FFA500 (Medium priority)
  • Success Green: #00C853 (Positive indicators)
  • Background: #FFFFFF (Clean, minimal)

Typography

  • Headings: Inter Bold, 24-32px
  • Body: Inter Regular, 14-16px
  • Numbers: SF Mono (monospaced)

๐Ÿ“Š AI Agents (Implementation Roadmap)

1. Doc Scan Agent

  • Role: Extract structured data from unstructured documents
  • Technology: PaddleOCR, GPT-4/Claude, LangChain
  • Output: Structured JSON with transactions

2. Anomaly Detection Agent

  • Role: Identify suspicious patterns and fraud indicators
  • Models: Isolation Forest, DBSCAN clustering, Z-score analysis
  • Target: >85% Precision, >75% Recall, <10% False Positive Rate

3. Compliance Agent

  • Role: GST/TDS validation and compliance tracking
  • Checks: GST invoice validation, TDS verification, filing deadlines

4. Cashflow Forecasting Agent

  • Role: Predict future cash positions
  • Technology: Meta Prophet, Linear Regression
  • Forecast: 30-90 day projections

5. Insight Generation Agent

  • Role: Natural language summaries and recommendations
  • Technology: GPT-4/Claude with structured prompts

6. Alert & Notification Agent

  • Role: Real-time WhatsApp notifications
  • Integration: Twilio API

๐Ÿ”’ Security & Compliance

Data Privacy (DPDP Act 2023)

  • โœ… Explicit user consent for data processing
  • โœ… AES-256 encryption for sensitive data
  • โœ… Right to erasure (data deletion API)
  • โœ… Breach notification within 72 hours

RBI Guidelines

  • โœ… TLS 1.2+ encrypted transmission
  • โœ… Multi-factor authentication
  • โœ… Audit logs for all data access
  • โœ… No storage of bank credentials
  • โœ… 15-minute session timeout

๐Ÿ“ˆ Roadmap

Phase 1: MVP (Completed โœ…)

  • Frontend UI with Next.js
  • Authentication system
  • File upload interface
  • Dashboard with mock data
  • Database schema
  • Mobile responsive design
  • PWA support

Phase 2: AI Integration (In Progress ๐Ÿšง)

  • OCR pipeline implementation
  • Anomaly detection agent
  • Compliance validation agent
  • Cashflow forecasting agent
  • Insight generation

Phase 3: Notifications & Alerts

  • WhatsApp integration via Twilio
  • Email notifications
  • Real-time alert system
  • Alert customization

Phase 4: Advanced Features

  • Multi-user/team support
  • API for third-party integrations
  • Advanced analytics
  • Custom report builder
  • Mobile apps (iOS/Android)

๐Ÿ’ฐ Pricing (Post-Beta)

Tier Price Features
Free โ‚น0 10 docs/month, basic alerts
Starter โ‚น499/month 100 docs/month, WhatsApp alerts
Pro โ‚น1,499/month Unlimited docs, API access, multi-user
Enterprise Custom White-label, on-premise, dedicated support

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

  1. Fork the repository
  2. Create your 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

๐Ÿ“ License

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


๐Ÿ‘ฅ Team

Built with โค๏ธ for Indian SMEs

Team Carinae | MoneyFyi


๐Ÿ“ž Contact & Support


๐Ÿ† Competitive Advantages

  1. India-Specific: Built for GST/TDS compliance
  2. WhatsApp-First: 500M+ WhatsApp users in India
  3. No Bank Integration: Works with uploaded documents
  4. Multi-Agent AI: More accurate than single-model systems
  5. Privacy-Focused: AES-256 encryption, DPDP compliant
  6. Affordable: Starting at โ‚น499/month vs enterprise solutions

๐Ÿ“š Documentation


๐Ÿ™ Acknowledgments


MoneyFyi - Detect Problems Before They Hurt You

Made with โค๏ธ in India ๐Ÿ‡ฎ๐Ÿ‡ณ

About

MoneyFyi is an AI-driven financial intelligence dashboard that analyzes uploaded bank statements, invoices, and UPI data to detect fraud, identify compliance risks, and predict cashflow issues for Indian SMEs.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •