Fintra: a rules based personal finance tracker
My own product: a self-hosted personal finance tracker where bank transactions arrive on their own and a rules engine decides what they mean.
Context
Fintra is a self-hosted personal finance tracker. Transactions come in from the bank, rules decide what they mean, and a dashboard shows how the month is going.
I started it because I wasn’t happy with any of the finance trackers I tried, mostly because none of them could import automatically from the banks I use. Before that I kept everything in a Google spreadsheet, and that became too much. I was missing things, I forgot to enter things, and after a while I couldn’t trust the numbers.
What I noticed
Entering transactions by hand is mostly the same work over and over. The same shops, the same subscriptions, the same transfers between my own accounts. Then there are the one-off transactions here and there, and those still need to belong somewhere.
Most of that can be decided by a few rules. If a handful of rules can categorize and tag nearly everything, I can see where the money is and what it’s doing without filing anything myself.
What I built
The rules engine was the first idea, and that is where I started. Imports came next, and the dashboard after that.
A rules engine
Every transaction that comes in runs through the rules. They categorize it, tag it, and clean up the mess in bank titles so things look consistent.
A rule is a set of matchers that select transactions and a set of actions that change them. Conditions combine with AND inside a matcher and matchers combine with OR, so one rule can cover “the card ends in 4821 and it is over 50 EUR” next to an unrelated “or the title mentions ACME”. Conditions can match any column from the original bank statement, including ones Fintra has no field for.

A matched transaction can be rewritten, tagged, retyped, attached to a recurring series, moved to another account, or linked as a transfer. Transfer linking finds the other side of a movement between my own accounts, so the money is not counted as both income and spending.
Nothing applies blind. Before a rule is saved, a preview shows exactly which transactions it matches. Re-running a rule over history shows every field change, per transaction, before it is committed.

When something uncategorized shows up three or more times, Fintra proposes a finished rule for it, with a category inferred from how similar transactions were filed. Most rules get written that way.

Imports that run themselves
In the beginning I still exported statements from my bank and imported them into Fintra, where every transaction ran through the rules. That became the next pain point. My bank is quite old-fashioned, and getting an export means logging in on the web every time.
So I looked into Enable Banking, which supports all the banks I use. Fintra now pulls transactions straight from the bank. Linked accounts sync twice a day, balances are set to what the bank reports, and every new transaction runs through the rules as it arrives. An investment account can pull its trades from Interactive Brokers the same way.

File imports still work for banks without a connection: .xlsx, .xls and .csv, with columns detected automatically. Every row is fingerprinted, so importing a file that overlaps an earlier one adds only the new rows.
Both paths go through the same pipeline, so rules, deduplication, counterparties and recurring detection apply either way.
A dashboard for this month
The top of the dashboard answers one question: how am I doing this month. It shows what I have spent by today against what I usually have spent by this day, and projects where the month will land.
Below that: income, expenses, net change and savings rate for the month, compared against the previous one. Net worth and its history, and breakdowns by category and tag.

The Trends view puts the last twelve months side by side, stacked by category, so I can see which categories are growing and which month was the odd one out.

The screenshots show a demo instance with invented data.
Outcome
Fintra runs on my private homelab. My wife and I both use it, each with our own account.
The idea for the future is sharing between accounts, and possibly open-sourcing it and putting it out there.