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).
- 📊 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
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
User Query ➝ Embed ➝ Semantic Search ➝ Context + Query ➝ GPT ➝ Smart Suggestion
📊 Visual Architectures:
- Client (Borrower) – Adds loan, views repayments, receives suggestions
- Sender (Lender) – Reviews loan status, receives payments
- Admin – (optional) Platform monitoring and control
| 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) |
/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)
- 🔐 Login / Register
- 📊 Dashboards (Sender/Client)
- ➕ Add Loan / Track Installments
- 💬 AI Chat Assistant
- 🔔 Notification Center
React Native + ExpoTailwind CSS (NativeWind)Axiosfor API integrationFile-based Routingviaexpo-routerChartsvia Victory/Recharts
cd frontend
npm install
npx expo start- Run on Android/iOS simulator or Expo Go
- Uses
.envfor base API URL and keys
User: Auth, rolesLoan: Principal, interest, sender, clientInstallment: Amount, due date, paid statusReminder: Notification logs and flags
| Method | Endpoint | Description |
|---|
cd backend
npm install
npm run dev✅ Add environment variables in .env
✅ Set up MongoDB & Redis (Docker or local)
- 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
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
docker-compose up --build- Services:
web,db,redis,frontend - Configure using
.envand Docker volumes
- 📥 Login/Register
- 📋 Add Loan / Installments
- 📈 Repayment Timeline (chart)
- 🤖 AI Chat Assistant
- 🔔 Notification Center
- All auth via JWT
- Sensitive data managed using
.env+ Docker Secrets - CORS policies enabled
- Admin Panel
- Offline Mode / Caching
- PDF Upload with Summarized Insights
- Multi-language Support (i18n)