Savvy-Finance: SAVVY Turns "50 chai" Into a Budget Line

A self-hosted finance dashboard where the input device is a Telegram chat and the categorizer is a keyword list. No ML, no app store, no account with a company you don't control.

7 min read • View on GitHub • More from aditya-66

An overhead editorial illustration of a small kitchen table. A phone lies flat with a single chat bubble reading 50 chai. Beside it, a hand-ruled ledger column already contains one written entry, a pen rests diagonally across the page, and a chipped teacup anchors the corner. The scene shows that the chat message and the ledger entry are the same act.
The whole thesis in one frame: the message you send and the row you record are the same gesture.
Key Takeaways

The Fastest Way to Log an Expense Is Two Words

The moment of use is unremarkable, which is the point. You are standing outside a dhaba with a chipped cup of chai in one hand. You open Telegram, type 50 chai, and put the phone away. The transaction is logged.

Compare that to the ritual every mainstream tracker demands: unlock the phone, find the app, tap the plus button, wait for a form to load, pick a category from a dropdown, type the amount, save. Six taps for a fifty-rupee cup of tea. That friction is the reason most budgeting apps get abandoned in the first month, and it is the friction SAVVY was built to delete.

SAVVY (aditya-66/Savvy-Finance) is a self-hosted personal finance dashboard. It runs as a single Node.js process: Express serves both the API and a vanilla JavaScript frontend, backed by MySQL through the mysql2 driver. There is no build step, no framework, and no container. The dashboard is the analysis surface. The Telegram bot is the front door.

Three rate-limit tiers guard the API: twenty requests per fifteen minutes on auth, five on the OTP endpoints, and five hundred across everything else. The categorizer is a single keyword list you can open in a text editor. That is the entire system.

How "50 chai" Becomes a Category

Here is the whole trick. The bot receives the message, splits it on whitespace, and looks for a number. That number becomes the amount. The remaining word is matched against an array of keywords, and whatever category that keyword maps to gets written to the transaction row.

No model. No embeddings. No training data. A lookup table.

The vocabulary gives away the audience. The categories are Food & Dining, Transportation, Housing, Bills & Utilities, Entertainment, and Shopping. The keywords include India-specific terms: bijli for the electricity bill, kirana for the neighborhood grocery, dhaba for roadside food, and fastag for the highway toll transponder. The bot knows your life because someone typed your life into an array.

Step through the whole pipeline: one chat message, split into a number and a word, sorted by a lookup, and rolled into a monthly grade.

A close-up editorial illustration of a single chat bubble in which the words 50 and chai have become two physical tokens lifting out. A hinged metal sorting gate sits to the right, with the 50 token dropping into a slot marked with a number symbol and the chai token being guided into one of several labeled pigeonholes. Only the food pigeonhole is in focus; the others are cropped and crosshatched into shadow. It shows that a message is split into a number and a word, and the word is sorted by lookup rather than understanding.
The classifier made tangible: the number goes one way, the word goes into a pigeonhole chosen by a list.

A model would be worse here. It would need training data, a hosting budget, and a way to explain why it filed chai under Shopping. A keyword list is inspectable, editable, and free. When it gets a word wrong, you open bot.js and add the word. That is the whole maintenance story.

The Dashboard Grades Your Month

Now that the data is flowing in, the dashboard has something to grade. The 50/30/20 rule is a simple budgeting heuristic: fifty percent of income to needs, thirty to wants, twenty to savings. SAVVY rolls each transaction's category into one of those three buckets and compares the month's actual split against the target.

The output is a letter grade from A to D. The grading is arithmetic. The same transactions always produce the same grade. There is no model that might feel differently about your month on a Tuesday.

Chart.js renders the split as a doughnut chart, alongside a bar chart and a line chart over time. The charts are the reward for the two-word input. You texted 50 chai twelve times this month, and here is what those twelve messages did to your grade.

Where the Seams Are

Read a portfolio project closely and you learn as much from the gaps as the design. SAVVY's gaps are specific and worth naming.

None of this is a takedown. It is what a personal project looks like when you read the schema against the code instead of trusting the README. The interesting question is what the seams reveal: the ENUM mismatch suggests the live database was altered by hand and the committed schema was never brought back in line. That is exactly how a tool that only ever has one user evolves.

SAVVY vs. the App-Store Trackers

The real decision is a trade between convenience, control, and effort. Here is how SAVVY sits against the alternatives.

AxisSAVVYApp-store trackersSpreadsheetNotes app
Input methodText a chat messageOpen app, tap, pick a categoryOpen file, type a rowType a note, categorize later
CategorizationKeyword list, editableDropdown, sometimes autoManual, your own formulasManual
Where data livesYour MySQL, your serverTheir cloudYour device or theirsTheir cloud
CostHosting onlySubscription or adsFreeFree
Setup effortRun a Node server, configure a botInstall an appStart a fileInstall an app
Analysis50/30/20 grade, three chartsVaries, often locked behind tiersWhatever you buildNone

The trade is clear. You get the lowest-friction input of any option and full ownership of your data, and you pay for it with setup effort that no app-store product would ever ask of a user.

Who Should Actually Build This

SAVVY is for one person who wants to own their financial data and is willing to run a Node server and register a Telegram bot. It is not competing with Mint. It is competing with the spreadsheet you keep meaning to update and never do.

Read as a template, the interesting part is not the finance logic. It is the pattern: put the input where the user already types, keep the categorizer simple enough to edit by hand, and let the analysis happen somewhere else. That pattern generalizes to habit tracking, calorie logging, and anything else where the logging friction is the reason people quit.

The seams are the honest part. A project that documents its own schema mismatch and phantom dependency is more useful to a reader than one that pretends to be production software. If you fork it, start by fixing the ENUM and documenting the migration. Then add your own chai to the list.