Skip to content
SpendBoat

SpendBoat

AI-powered expense tracking made effortless.

Created on 13th May 2026

•

SpendBoat

SpendBoat

AI-powered expense tracking made effortless.

The problem SpendBoat solves

The Problem It Solves

Managing daily expenses manually is often time-consuming and inconvenient. Most expense tracking applications require users to fill multiple fields such as amount, category, note, and date every time they spend money. Because of this friction, many people stop tracking their expenses consistently.

This project simplifies expense management by allowing users to add expenses using natural language input, similar to chatting with a bot. Users can write messages like:

"Spent ₹200 on dinner yesterday"
"Netflix subscription ₹499"
"Groceries 1200 today"

The system automatically:

  • Detects the expense category using a Machine Learning model
  • Extracts amount and date from the message
  • Stores the expense in a structured format

This makes expense tracking:

  • ⚡ Faster
  • 🧠 More intuitive
  • 📱 Easier for non-technical users
  • 📊 More consistent over time

The application also provides:

  • Monthly spending analytics
  • Category-wise insights
  • Daily average spending
  • Visual charts and reports

Users can better understand their spending habits, control unnecessary expenses, and manage budgets more effectively without manually organizing data.

In future versions, the project can also support:

  • WhatsApp-based expense logging
  • Budget alerts
  • AI-generated financial insights
  • Voice-based expense entry

This makes the solution useful for:

  • Students managing monthly budgets
  • Working professionals tracking daily expenses
  • Anyone looking for a simple and intelligent finance tracking system

Challenges I ran into

Challenges I Ran Into

1. Parsing Natural Language Expenses

One of the biggest challenges was converting unstructured text like:

"Spent ₹250 on pizza yesterday"

into structured expense data.

Initially, simple keyword matching produced inaccurate categories and failed for different sentence formats. To solve this, I integrated a Machine Learning model that predicts categories from user messages. I also used the chrono-node library to extract human-readable dates like “yesterday” or “last Monday”.

This significantly improved flexibility and user experience.


2. Handling Monthly Analytics Efficiently

The dashboard included:

  • monthly spending
  • top category
  • daily average
  • pie charts
  • bar graphs

At first, I was fetching all expenses from the database and calculating everything on the frontend. As the dataset grew, this became inefficient.

To fix this:

  • I filtered expenses by month and year directly from the backend
  • Added indexed date queries in MongoDB
  • Created monthly summary logic to reduce unnecessary calculations

This also allowed charts and analytics to automatically “reset” for each new month without deleting previous data.


3. Authentication & Auto Logout Issue

During development, users were getting logged out immediately after login whenever navigation happened programmatically using React Router’s navigate().

The issue was caused by:

  • authentication state updating asynchronously
  • protected routes rendering before user data finished loading

I solved it by:

  • introducing a proper isLoading state
  • delaying protected route rendering until authentication finished
  • restructuring the auth flow inside AuthContext

This made login and protected routing stable.


4. Deploying the ML API on Vercel

While integrating the ML model API, requests from the backend kept failing with:

401 Unauthorized

even though the API worked correctly in Hoppscotch.

After debugging request logs, I discovered that Vercel Deployment Protection was enabled, meaning external server requests were blocked unless authenticated through Vercel.

I fixed this by:

  • disabling deployment protection for the API deployment
  • redeploying the service publicly

After that, backend-to-ML communication worked correctly.


5. Keeping the Project Fully Deployable

The project contains:

  • frontend
  • backend
  • ML model service

Managing environment variables, deployment URLs, authentication headers, and API communication across multiple services was challenging.

I solved this by:

  • separating internal and external API calls
  • properly managing .env variables
  • using modular backend architecture
  • deploying services independently while maintaining communication between them

This improved maintainability and scalability of the project.

Discussion

Builders also viewed

See more projects on Devfolio