r/IndianDevelopers • • 1d ago

I built an SMS-based expense tracker for Mac + iPhone because I wanted something like Axio on Android

TL;DR: I built a personal expense tracker that reads bank, credit card and UPI transaction SMS forwarded from my iPhone to my Mac, automatically converts them into transactions, categorizes them and displays everything in a local dashboard.

The problem I wanted to solve

I've always liked how Android apps like Axio can automatically track expenses by reading transaction SMS messages.

On iOS, third-party apps cannot directly access SMS messages. This makes building the same kind of automatic expense tracker considerably harder.

I wanted:

  • Automatic tracking of bank, credit card and UPI transactions.
  • No manual entry of every transaction.
  • Proper categorization of expenses.
  • Recognition of transfers between my own accounts so they aren't counted as income or expenses.
  • A way to review, correct and exclude transactions.
  • A dashboard where I can understand exactly where my money goes.

So I built my own.

How it works

The architecture is fairly simple:

  1. My iPhone forwards bank and transaction SMS messages to my Mac through Apple's Text Message Forwarding.
  2. A Python script reads the Messages database on macOS.
  3. It parses the messages and converts them into transactions.
  4. Transactions are stored in a local SQLite database (expenses.db).
  5. A dashboard built with Python displays the financial data.

It uses Python 3.11+ and the standard library, with Chart.js for visualizations.

What the dashboard offers

Here's what it currently looks like:

  • Monthly spending and income overview.
  • Category-wise breakdown using pie charts or bar charts.
  • Monthly spending trends.
  • Income source breakdown.
  • Top merchants and transaction summaries.
  • Search, sorting and filtering by merchant, category, bank and transaction type.

Transaction-level controls:

  • Change a transaction's category.
  • Apply a category change to all transactions from a merchant.
  • Reverse money in/out classification.
  • Exclude individual transactions or all transactions from a merchant.
  • Adjust the amount counted towards expenses (useful for split bills or shared expenses), without modifying the original SMS amount.

Some things I specifically wanted to get right

1. Self transfers

Moving money between my own bank accounts shouldn't count as either income or spending. I maintain my own account identifiers and UPI IDs to identify these transfers.

2. Editable transactions

Automatic categorization isn't always perfect. Instead of pretending it is, I wanted to make corrections easy and persistent.

3. Idempotent syncing

I can run the SMS ingestion script repeatedly. It only adds messages it hasn't processed before and preserves my previous edits.

4. Automated daily syncing

There's an installer that schedules the sync daily at 9 AM and whenever I log in. If my Mac is asleep at the scheduled time, it runs when the Mac wakes up.

5. Optional homelab integration

I've also built an optional setup where my Mac exports the database, and a dashboard container syncs it to a private S3 bucket.

What I'm planning next

There are still things I'd like to improve:

  • Better transaction categorization.
  • More robust merchant identification.
  • Recurring payment detection.
  • Budgets and spending alerts.
  • Better handling of refunds, reversals and split transactions.

I'd love to hear what features people would find useful.

Tech stack: Python, SQLite, macOS Messages, JavaScript, Chart.js, Docker, AWS S3.

This is currently a personal project, not a commercial product. I built it primarily because I wanted complete control over my expense tracking without manually entering transactions.

Curious to hear what other Mac + iPhone users think!

1 Upvotes

0 comments sorted by