Skip to content
ย 
ย 

Latest commit

ย 

History

72 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ธ Fintra-AI

๐Ÿš€ AI-Powered Personal Finance Management Platform

Track. Understand. Predict. Improve.

Fintra-AI is an intelligent personal finance management platform designed to help users track expenses, understand spending behavior, manage budgets, and make data-driven financial decisions.

By combining modern full-stack web technologies, Artificial Intelligence, Machine Learning, and secure cloud infrastructure, Fintra-AI transforms raw financial data into meaningful insights and actionable recommendations.


โœจ Technology Stack

Fintra-AI Next.js React Tailwind CSS Prisma PostgreSQL Google Gemini Vercel License


๐Ÿ“Œ Table of Contents


๐Ÿ“– Overview

Fintra-AI is an AI-powered personal finance management platform designed to transform raw financial data into actionable insights.

Instead of simply recording transactions, Fintra-AI aims to help users understand where their money goes, why they spend it, what may happen next, and how they can improve their financial health.

The platform combines:

  • ๐Ÿ’ฐ Personal finance management
  • ๐Ÿค– Generative AI
  • ๐Ÿง  Machine Learning
  • ๐Ÿ“Š Financial analytics
  • ๐Ÿ” Secure authentication
  • โ˜๏ธ Cloud-native infrastructure
  • ๐Ÿ“ˆ Predictive financial insights

๐Ÿ“ธ Screenshot Showcase

Explore the Fintra-AI platform and its core features through the following screenshots.

๐Ÿ  Platform Overview

Fintra-AI Dashboard Fintra-AI Platform

๐Ÿ“Š Financial Analytics

Fintra-AI Financial Analytics Fintra-AI Analytics Dashboard


๐Ÿš€ Fintra-AI in Action

From expense tracking and financial analytics to AI-powered insights, Fintra-AI provides an intelligent and modern approach to personal finance management.

๐ŸŽฏ Core Objective

Turn financial data into intelligent, personalized, and actionable financial decisions.


๐Ÿ’ก Why Fintra-AI?

Traditional expense trackers primarily answer:

"Where did my money go?"

Fintra-AI aims to answer much more:

  • Where am I spending the most?
  • What spending patterns are emerging?
  • Am I likely to exceed my budget?
  • How healthy is my financial behavior?
  • What can I do to improve my savings?
  • Which financial goals are achievable?
  • Can AI help me plan my next month?
  • Can machine learning identify unusual financial activity?

This creates a shift from:

Expense Tracking โ†’ Financial Intelligence


โœจ Key Features

๐Ÿ’ฐ Personal Finance Management

  • Expense Tracking
  • Income Tracking
  • Budget Management
  • Savings Goals
  • Financial Dashboard
  • Monthly Reports
  • Cash Flow Analysis
  • Category-Based Expenses
  • Transaction Management
  • Financial Summary

๐Ÿค– AI Financial Intelligence

Powered by Google Gemini AI, Fintra-AI can provide intelligent financial assistance such as:

  • AI Financial Advisor
  • AI Budget Suggestions
  • AI Expense Insights
  • AI Goal Planning
  • AI Spending Analysis
  • AI Financial Chat Assistant
  • Personalized Recommendations
  • Financial Data Summarization
  • Smart Budget Recommendations

๐Ÿง  Machine Learning

The planned ML engine focuses on transforming historical financial data into predictive insights.

ML Capabilities

Capability Purpose
๐Ÿ“‚ Expense Classification Predict appropriate expense categories
๐Ÿ“ˆ Spending Forecasting Estimate future spending
๐Ÿ’ฐ Budget Prediction Predict potential budget overruns
๐Ÿšจ Fraud Detection Identify suspicious financial patterns
โค๏ธ Financial Health Score Estimate overall financial behavior
๐ŸŽฏ Goal Prediction Estimate goal completion probability
๐Ÿ’ก Recommendation Engine Generate personalized financial suggestions
๐Ÿ“Š Trend Detection Identify changes in spending behavior

๐Ÿ“Š Analytics

Fintra-AI provides a data-driven view of personal finances.

Analytics Modules

  • Expense Analytics
  • Income Analytics
  • Category Distribution
  • Monthly Spending Trends
  • Cash Flow Analysis
  • Budget Utilization
  • Savings Analysis
  • Financial Reports
  • Interactive Charts
  • Historical Comparisons

Example Financial Intelligence Flow

Financial Transactions
        โ”‚
        โ–ผ
   Data Processing
        โ”‚
        โ–ผ
 โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
 โ”‚ Feature Extractionโ”‚
 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
           โ”‚
           โ–ผ
    ML / AI Engine
           โ”‚
     โ”Œโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”
     โ–ผ           โ–ผ
Prediction    Insights
     โ”‚           โ”‚
     โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜
           โ–ผ
 Personalized
 Recommendations

๐Ÿ” Security

Security is a core component of Fintra-AI because financial data is highly sensitive.

Security Stack

  • ๐Ÿ”‘ Clerk Authentication
  • ๐Ÿ›ก๏ธ Arcjet Security
  • ๐Ÿ”’ Protected APIs
  • ๐Ÿ‘ค Session Management
  • ๐Ÿ—„๏ธ Secure Database Access
  • ๐ŸŽญ Role-Based Access Control
  • ๐Ÿ” Environment-Based Secrets
  • ๐Ÿšซ No sensitive credentials committed to source control

Never commit .env, API keys, database credentials, or authentication secrets to Git.


๐Ÿ“ง Notifications

Fintra-AI can provide timely financial notifications including:

  • ๐Ÿ“ฉ Email Notifications
  • โš ๏ธ Budget Alerts
  • ๐ŸŽฏ Savings Goal Reminders
  • ๐Ÿ“Š Monthly Financial Reports
  • ๐Ÿ”” Financial Activity Notifications

Email infrastructure is powered by Resend.


๐Ÿ—๏ธ Technology Stack

Frontend

  • Next.js
  • React
  • Tailwind CSS
  • Shadcn UI

Backend

  • Next.js Server Actions
  • Prisma ORM
  • PostgreSQL

Artificial Intelligence

  • Google Gemini API

Machine Learning

  • Scikit-Learn
  • TensorFlow
  • PyTorch
  • XGBoost
  • Prophet

Authentication

  • Clerk

Email

  • Resend

Application Security

  • Arcjet

Deployment

  • Vercel

๐Ÿงฉ System Architecture

                        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                        โ”‚      User / Client   โ”‚
                        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                   โ”‚
                                   โ–ผ
                        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                        โ”‚      Next.js App     โ”‚
                        โ”‚   UI + Server Logic  โ”‚
                        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                   โ”‚
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚              โ”‚              โ”‚
                    โ–ผ              โ–ผ              โ–ผ
             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
             โ”‚   Clerk   โ”‚  โ”‚  Arcjet   โ”‚  โ”‚  Resend    โ”‚
             โ”‚   Auth    โ”‚  โ”‚ Security  โ”‚  โ”‚   Email    โ”‚
             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                   โ”‚
                                   โ–ผ
                         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                         โ”‚      Prisma      โ”‚
                         โ”‚       ORM        โ”‚
                         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                                  โ–ผ
                         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                         โ”‚   PostgreSQL     โ”‚
                         โ”‚    Database      โ”‚
                         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                                  โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚       AI / ML Layer     โ”‚
                    โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
                    โ”‚ Google Gemini           โ”‚
                    โ”‚ ML Prediction Models    โ”‚
                    โ”‚ Recommendation Engine   โ”‚
                    โ”‚ Financial Analytics     โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“‚ Project Structure

๐Ÿ“ Fintra-AI โ€” Project Structure

Fintra-AI/
โ”‚
โ”œโ”€โ”€ ai-finance-platform/                    # Next.js Frontend Application
โ”‚   โ”œโ”€โ”€ app/                                # App Router & Pages
โ”‚   โ”œโ”€โ”€ actions/                            # Server Actions
โ”‚   โ”œโ”€โ”€ components/                         # Reusable UI Components
โ”‚   โ”œโ”€โ”€ hooks/                              # Custom React Hooks
โ”‚   โ”œโ”€โ”€ lib/                                # Utilities & Configurations
โ”‚   โ”œโ”€โ”€ public/                             # Static Assets
โ”‚   โ”œโ”€โ”€ emails/                             # Email Templates
โ”‚   โ”œโ”€โ”€ middleware.js                       # Authentication & Middleware
โ”‚   โ”œโ”€โ”€ next.config.mjs                     # Next.js Configuration
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ””โ”€โ”€ ...
โ”‚
โ”œโ”€โ”€ backend/                                # FastAPI Backend
โ”‚   โ”œโ”€โ”€ app/
โ”‚   โ”‚   โ”œโ”€โ”€ api/
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ v1/                         # Versioned REST API
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ transactions.py        # Transaction Management
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ budgets.py              # Budget Management
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ analytics.py            # Financial Analytics
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ predictions.py          # ML Predictions
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ ai.py                   # AI-powered Features
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ reports.py              # Financial Reports
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”œโ”€โ”€ core/                            # Core Backend Configuration
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ config.py                   # Application Configuration
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ database.py                 # Database Configuration
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ security.py                 # Authentication & Security
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”œโ”€โ”€ models/                          # Database Models
โ”‚   โ”‚   โ”œโ”€โ”€ schemas/                         # Pydantic Schemas
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”œโ”€โ”€ services/                        # Business Logic Layer
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ transaction_service.py
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ analytics_service.py
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ prediction_service.py
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ai_service.py
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ””โ”€โ”€ main.py                          # FastAPI Application Entry Point
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ tests/                               # Backend Tests
โ”‚   โ”œโ”€โ”€ requirements.txt                     # Python Dependencies
โ”‚   โ””โ”€โ”€ Dockerfile                           # Backend Container
โ”‚
โ”œโ”€โ”€ ml/                                      # Machine Learning Pipeline
โ”‚   โ”œโ”€โ”€ datasets/                            # ML Datasets
โ”‚   โ”œโ”€โ”€ preprocessing/                       # Data Preprocessing
โ”‚   โ”œโ”€โ”€ features/                            # Feature Engineering
โ”‚   โ”œโ”€โ”€ training/                            # Model Training
โ”‚   โ”‚   โ”œโ”€โ”€ train_categorization.py         # Expense Categorization
โ”‚   โ”‚   โ”œโ”€โ”€ train_forecasting.py            # Financial Forecasting
โ”‚   โ”‚   โ””โ”€โ”€ train_anomaly.py                # Anomaly Detection
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ inference/                           # Model Inference
โ”‚   โ”œโ”€โ”€ evaluation/                          # Model Evaluation
โ”‚   โ””โ”€โ”€ models/                              # Trained ML Models
โ”‚
โ”œโ”€โ”€ data_pipeline/                           # Data Engineering Pipeline
โ”‚   โ”œโ”€โ”€ ingestion/                           # Data Ingestion
โ”‚   โ”œโ”€โ”€ preprocessing/                       # Data Cleaning & Processing
โ”‚   โ””โ”€โ”€ jobs/                                # Automated Data Jobs
โ”‚
โ”œโ”€โ”€ notebooks/                               # Jupyter Notebooks
โ”‚   โ”œโ”€โ”€ 01_eda.ipynb                         # Exploratory Data Analysis
โ”‚   โ”œโ”€โ”€ 02_categorization.ipynb              # Expense Categorization
โ”‚   โ””โ”€โ”€ 03_forecasting.ipynb                 # Financial Forecasting
โ”‚
โ”œโ”€โ”€ infrastructure/                         # DevOps & Cloud Infrastructure
โ”‚   โ”œโ”€โ”€ docker/                              # Docker Configuration
โ”‚   โ”œโ”€โ”€ monitoring/                          # Monitoring & Observability
โ”‚   โ””โ”€โ”€ terraform/                           # Infrastructure as Code
โ”‚
โ”œโ”€โ”€ .github/
โ”‚   โ””โ”€โ”€ workflows/                           # CI/CD Pipelines
โ”‚       โ”œโ”€โ”€ frontend-ci.yml                  # Frontend CI
โ”‚       โ”œโ”€โ”€ backend-ci.yml                   # Backend CI
โ”‚       โ””โ”€โ”€ ml-ci.yml                        # ML CI
โ”‚
โ”œโ”€โ”€ docs/                                    # Project Documentation
โ”œโ”€โ”€ Screenshots/                             # Application Screenshots
โ”‚
โ”œโ”€โ”€ docker-compose.yml                       # Multi-Service Docker Setup
โ”œโ”€โ”€ .gitignore                               # Git Ignore Rules
โ””โ”€โ”€ README.md                                # Project Documentation

๐Ÿ—๏ธ Architecture Overview

Current implementation note: The runnable product is the Next.js/Prisma application in ai-finance-platform/. The ml/ directory contains separate Python research and inference pipelines. The FastAPI backend, data-pipeline jobs, Terraform/monitoring infrastructure, and CI services shown in the roadmap are planned surfaces and are not currently implemented as production services.

Fintra-AI currently uses a Next.js application with server actions and a separate ML research layer. The application integrates Clerk, Prisma/PostgreSQL, Gemini-assisted receipt/report features, Resend email, and Inngest jobs. Future backend, data-engineering, and MLOps layers should be added only when their source code and deployment instructions are committed.

                         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                         โ”‚       User / Client     โ”‚
                         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                      โ”‚
                                      โ–ผ
                         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                         โ”‚   Next.js Frontend      โ”‚
                         โ”‚  ai-finance-platform/   โ”‚
                         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                      โ”‚ REST API
                                      โ–ผ
                         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                         โ”‚     FastAPI Backend     โ”‚
                         โ”‚       backend/          โ”‚
                         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚         โ”‚
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ–ผ                                    โ–ผ
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                 โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚   ML Services    โ”‚                 โ”‚  Data Pipeline   โ”‚
          โ”‚       ml/        โ”‚                 โ”‚ data_pipeline/   โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚                                    โ”‚
                   โ–ผ                                    โ–ผ
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                 โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚ Trained Models   โ”‚                 โ”‚ Data Processing  โ”‚
          โ”‚ Forecasting      โ”‚                 โ”‚ Ingestion        โ”‚
          โ”‚ Categorization   โ”‚                 โ”‚ ETL Jobs         โ”‚
          โ”‚ Anomaly Detectionโ”‚                 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚
                   โ–ผ
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚ Database / Data  โ”‚
          โ”‚      Layer       โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ”‘ Core Layers

Layer Directory Responsibility
Frontend ai-finance-platform/ User interface, dashboards and client interactions
Backend backend/ REST APIs, authentication and business logic
AI/ML ml/ Training, inference and financial intelligence
Data Engineering data_pipeline/ Data ingestion, preprocessing and automation
Research notebooks/ EDA, experimentation and model research
Infrastructure infrastructure/ Docker, monitoring and cloud deployment
CI/CD .github/workflows/ Automated testing and deployment
Documentation docs/ Technical and project documentation

๐Ÿค– AI/ML Capabilities

Fintra-AI's ML layer is designed around three primary intelligence modules:

  • Expense Categorization โ€” Automatically classifies financial transactions.
  • Financial Forecasting โ€” Predicts future spending and financial trends.
  • Anomaly Detection โ€” Identifies unusual or potentially suspicious transactions.

This separation keeps model development and experimentation independent from the production FastAPI services, making the platform easier to scale, test, deploy, and maintain.




---

# ๐Ÿš€ Getting Started

Follow these steps to run Fintra-AI locally.

## 1๏ธโƒฃ Clone the Repository

```bash
git clone https://github.com/Ashwinchauhan89/Fintra-AI.git

cd Fintra-AI

2๏ธโƒฃ Install Dependencies

The runnable application is located in ai-finance-platform/. Install its dependencies from that directory:

cd ai-finance-platform
npm ci

3๏ธโƒฃ Configure Environment Variables

Create ai-finance-platform/.env.local from the committed ai-finance-platform/.env.example template.

DATABASE_URL=
DIRECT_URL=

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=

NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/onboarding
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/onboarding

GEMINI_API_KEY=

RESEND_API_KEY=

ARCJET_KEY=

โš ๏ธ Keep all secrets private and never commit .env to Git.

4๏ธโƒฃ Generate Prisma Client

npx prisma generate

5๏ธโƒฃ Initialize Database

npx prisma db push

6๏ธโƒฃ Start Development Server

npm run dev

The application will be available at:

http://localhost:3000

๐Ÿ—„๏ธ Database Workflow

Fintra-AI uses Prisma ORM with PostgreSQL.

Generate Prisma Client

npx prisma generate

Push Schema Changes

npx prisma db push

Open Prisma Studio

npx prisma studio

Prisma Studio can be used to inspect and manage development database records.


๐Ÿงช Development Workflow

Recommended development flow:

Create Issue
     โ”‚
     โ–ผ
Create Feature Branch
     โ”‚
     โ–ผ
Implement Feature
     โ”‚
     โ–ผ
Run Tests / Checks
     โ”‚
     โ–ผ
Review Changes
     โ”‚
     โ–ผ
Commit
     โ”‚
     โ–ผ
Push Branch
     โ”‚
     โ–ผ
Open Pull Request
     โ”‚
     โ–ผ
Code Review
     โ”‚
     โ–ผ
Merge

Branch Naming

Recommended naming convention:

feature/expense-analytics
feature/ai-budget-advisor
feature/ml-spending-prediction

fix/authentication-error
fix/dashboard-loading

docs/update-readme
docs/ml-documentation

๐Ÿ“š Documentation

Document Description
README.MD Project overview and setup
CONTRIBUTION.MD Contribution guidelines
PLANNING.MD Development roadmap and milestones
MACHINELearning.md ML architecture and pipeline
ai-finance-platform/README.md Frontend environment variables
ml/README.md ML pipeline setup and usage

๐Ÿ›ฃ๏ธ Roadmap

๐ŸŸข Phase 1 โ€” Core Finance

  • Authentication
  • Dashboard
  • Expense Management
  • Income Management
  • Advanced Transaction Management

๐ŸŸก Phase 2 โ€” Financial Analytics

  • Budget Planning
  • Reports
  • Analytics
  • Advanced Cash Flow Analytics
  • Financial Trend Detection

๐Ÿ”ต Phase 3 โ€” AI Financial Assistant

  • AI Financial Advisor
  • Gemini Integration (receipt scanning and monthly reports)
  • AI Budget Recommendations
  • Personalized Financial Insights
  • AI Financial Copilot

๐ŸŸฃ Phase 4 โ€” Machine Learning

  • Expense Classification
  • Spending Prediction
  • Budget Forecasting
  • Fraud Detection
  • Financial Health Score
  • Goal Completion Prediction
  • Recommendation Engine

๐Ÿ”ด Phase 5 โ€” Advanced Platform

  • OCR Receipt Scanner (Gemini-assisted)
  • Investment Tracker
  • Family Wallet
  • Voice Finance Assistant
  • PWA Support
  • Multi-Currency Support
  • Open Banking Integration
  • Explainable AI
  • MLOps Pipeline

๐Ÿ“„ See PLANNING.MD for the detailed roadmap.


๐ŸŽ“ IEEE Summer of Code 2026

Fintra-AI is designed as an open-source collaboration project and welcomes contributors interested in software engineering, Artificial Intelligence, Machine Learning, cybersecurity, data analytics, and product development.

Contribution Levels

Level Suitable Contributions
๐ŸŸข Beginner Documentation, UI improvements, testing, bug fixes
๐ŸŸก Intermediate APIs, database features, analytics, backend modules
๐Ÿ”ด Advanced AI, ML, fraud detection, predictive analytics, OCR

Potential Contribution Areas

Frontend
   โ”œโ”€โ”€ Dashboard
   โ”œโ”€โ”€ Charts
   โ””โ”€โ”€ UI/UX

Backend
   โ”œโ”€โ”€ APIs
   โ”œโ”€โ”€ Database
   โ””โ”€โ”€ Server Actions

AI
   โ”œโ”€โ”€ Gemini Integration
   โ”œโ”€โ”€ Financial Advisor
   โ””โ”€โ”€ Recommendations

ML
   โ”œโ”€โ”€ Classification
   โ”œโ”€โ”€ Forecasting
   โ”œโ”€โ”€ Fraud Detection
   โ””โ”€โ”€ Financial Health

DevOps
   โ”œโ”€โ”€ CI/CD
   โ”œโ”€โ”€ Testing
   โ””โ”€โ”€ Deployment

๐Ÿค Contributing

Contributions are welcome from:

  • ๐Ÿ‘จโ€๐Ÿ’ป Software Developers
  • ๐ŸŽจ UI/UX Designers
  • ๐Ÿค– AI Engineers
  • ๐Ÿง  Machine Learning Engineers
  • ๐Ÿ“Š Data Scientists
  • ๐Ÿ” Cybersecurity Developers
  • ๐Ÿงช QA/Test Engineers
  • ๐Ÿ“ Technical Writers

Contribution Steps

  1. Fork the repository.
  2. Create a feature branch.
  3. Implement your changes.
  4. Test your changes locally.
  5. Commit your changes.
  6. Push your branch.
  7. Open a Pull Request.
  8. Participate in code review.

Before contributing, please read:

CONTRIBUTION.MD

๐ŸŒŸ Future Vision

Fintra-AI aims to evolve from a traditional finance tracker into a complete AI Financial Intelligence Platform.

Long-Term Vision

                 โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                 โ”‚      FINTRA-AI       โ”‚
                 โ”‚ Financial Intelligenceโ”‚
                 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                            โ”‚
       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
       โ”‚                    โ”‚                    โ”‚
       โ–ผ                    โ–ผ                    โ–ผ
   AI Advisor          ML Prediction        Analytics
       โ”‚                    โ”‚                    โ”‚
       โ–ผ                    โ–ผ                    โ–ผ
  Personalized       Future Spending      Financial
  Recommendations      Forecasting         Insights
       โ”‚                    โ”‚                    โ”‚
       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                            โ–ผ
                  Smarter Financial Decisions

๐Ÿ”ฎ Future Capabilities

  • ๐Ÿค– AI Financial Copilot
  • ๐Ÿง  Advanced ML Prediction Engine
  • ๐Ÿšจ Real-Time Fraud Detection
  • ๐Ÿฆ Open Banking Integration
  • ๐ŸŽ™๏ธ Voice Finance Assistant
  • ๐Ÿ“ท Smart Receipt OCR
  • ๐Ÿ“ˆ Investment Portfolio Management
  • ๐ŸŒ Multi-Currency Support
  • ๐Ÿ” Explainable AI
  • โš™๏ธ Production MLOps Pipeline
  • ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง Family Finance Management
  • ๐Ÿ“ฑ Progressive Web Application

๐Ÿ“„ License

This project is licensed under the MIT License.

See the LICENSE file for complete license information.


๐Ÿ‘จโ€๐Ÿ’ป Maintainer

Ashwin Chauhan

Project Lead โ€” Fintra-AI

GitHub: @Ashwinchauhan89


โญ Support the Project

If you find Fintra-AI useful, interesting, or valuable for learning:

โญ Star the repository

๐Ÿด Fork the project

๐Ÿ› Report bugs

๐Ÿ’ก Suggest features

๐Ÿค Contribute

Every contribution helps improve the project and grow the open-source community around Fintra-AI.


๐Ÿ’ธ Fintra-AI

From Financial Data โ†’ Financial Intelligence

Built with โค๏ธ using Next.js ยท Prisma ยท PostgreSQL ยท Gemini AI ยท Machine Learning

Happy Coding! ๐Ÿš€

About

Fintra AI is an AI-powered personal finance platform that helps users track expenses, manage budgets, generate financial insights, and make smarter financial decisions through intelligent automation.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages