Skip to content

narendrakumar9867/finace-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Finance Guide – Smart Loan & Repayment Assistant

Finance Guide is an AI-powered mobile-first finance tracker that helps Clients (Borrowers) and Senders (Lenders) manage loans, track installments and get smart, personalized repayment suggestions using LangChain RAG + LLMs (GPT/Gemini).


πŸ“Έ Overview

  • πŸ“Š Track loan balance, dues, interest
  • πŸ’¬ AI Chat Assistant for smart finance help
  • πŸ”” Installment reminders & penalty alerts
  • πŸ“± Mobile-first with Expo + React Native
  • πŸ”™ Scalable backend with Node & Express, MongoDB, Redis

🧠 System Architecture

➀ High-Level Flow

flowchart TD
  User[User] -->|Mobile UI| Frontend[Frontend]
  Frontend -->|API| Backend[Backend]
  Backend -->|DB Access| DB[(MongoDB & Redis)]
  Backend -->|Query| LangChain[LangChain Engine]
  LangChain -->|Prompt| LLM["LLM (GPT/Gemini)"]
  LLM -->|Response| Backend --> Frontend
Loading

➀ LangChain RAG Flow

User Query ➝ Embed ➝ Semantic Search ➝ Context + Query ➝ GPT ➝ Smart Suggestion

πŸ“Š Visual Architectures:


πŸ§‘β€πŸ’Ό User Roles

  • Client (Borrower) – Adds loan, views repayments, receives suggestions
  • Sender (Lender) – Reviews loan status, receives payments
  • Admin – (optional) Platform monitoring and control

πŸ”§ Tech Stack

Layer Stack
Mobile Frontend Expo + React Native, Tailwind (NativeWind), Axios, Recharts
Backend Node.js + Express.js
Database MongoDB (relational), Redis (jobs/cache)
AI Layer LangChain + GPT
Vector Store ChromaDB / Pinecone
Notifications node-cron + Twilio/SendGrid
DevOps Docker, Vercel (frontend), Railway / Render (backend)

πŸ“¦ Folder Structure

/finace-guide
β”œβ”€β”€ frontend        # Expo mobile app
β”œβ”€β”€ backend         # Node API + AI engine
β”œβ”€β”€ .env.example    # Secret Keys of project
β”œβ”€β”€ .gitignore
└── CODE_OF_CONDUCT.md
β”œβ”€β”€ CONTRIBUTING.md
└── README.md
β”œβ”€β”€ SUPPORT.md
β”œβ”€β”€ docker-compose.yml  # (Optional)

πŸ“± Frontend (Expo + React Native)

Features

  • πŸ” Login / Register
  • πŸ“Š Dashboards (Sender/Client)
  • βž• Add Loan / Track Installments
  • πŸ’¬ AI Chat Assistant
  • πŸ”” Notification Center

Tech Stack

  • React Native + Expo
  • Tailwind CSS (NativeWind)
  • Axios for API integration
  • File-based Routing via expo-router
  • Charts via Victory/Recharts

Run Locally

cd frontend
npm install
npx expo start
  • Run on Android/iOS simulator or Expo Go
  • Uses .env for base API URL and keys

🧠 Backend (API + AI + DB)

Core Models

  • User: Auth, roles
  • Loan: Principal, interest, sender, client
  • Installment: Amount, due date, paid status
  • Reminder: Notification logs and flags

Key APIs

Method Endpoint Description

Backend Setup

cd backend

npm install
npm run dev

βœ… Add environment variables in .env βœ… Set up MongoDB & Redis (Docker or local)


πŸ€– AI + LangChain Integration

  • User uploads PDF or provides context
  • LangChain splits, embeds, and stores docs
  • Queries are embedded and searched via ChromaDB or Pinecone
  • Contextual prompts sent to GPT
  • Result returned to frontend via /suggestions/ endpoint

πŸ”” Notifications & Reminders

Engine powered by:

  • Node + node-cron
  • Redis for job queueing
  • SendGrid (Email) or Twilio (SMS)

Triggers:

  • Due date approaching
  • Missed/partial payments
  • Full repayment alerts

🐳 Dockerized Setup (Optional)

docker-compose up --build
  • Services: web, db, redis, frontend
  • Configure using .env and Docker volumes

πŸ“Š UI/UX Screens (Planned in Figma)

  • πŸ“₯ Login/Register
  • πŸ“‹ Add Loan / Installments
  • πŸ“ˆ Repayment Timeline (chart)
  • πŸ€– AI Chat Assistant
  • πŸ”” Notification Center

πŸ›‘οΈ Security

  • All auth via JWT
  • Sensitive data managed using .env + Docker Secrets
  • CORS policies enabled

πŸ“ˆ Future Enhancements

  • Admin Panel
  • Offline Mode / Caching
  • PDF Upload with Summarized Insights
  • Multi-language Support (i18n)

Thank You!!

About

Finance Guide is an AI-powered mobile-first finance tracker that helps Borrowers and Lenders manage loans, track installments and get smart, personalized repayment suggestions AI

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors