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.
- SAVVY's front door is a Telegram chat, which collapses expense logging from a six-tap ritual into a single line of text.
- The categorizer is a human-editable keyword list rather than a model, which is why the whole project fits in a few hundred lines of JavaScript and runs on a cheap VPS.
- The 50/30/20 letter grade is deterministic arithmetic, so the same month always produces the same result.
- The repo's seams (a schema that disagrees with the code, a phantom dependency, an undocumented migration) are as instructive as its design decisions.
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.
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.
- The bot launches as a side effect of
require('./bot')inserver.js. HTTP and chat ingestion share one process, which makes horizontal scaling impossible: Telegram allows only one activegetUpdatesconsumer per bot token. - The
categorycolumn ininit.sqlis an ENUM ofNeeds,Wants, andSavings, but the application writesFood & Diningand its siblings. Under MySQL strict mode those inserts fail. Under non-strict mode they silently store an empty string. migration.sqlis required for the dashboard to run, because the soft-delete filter onGET /depends on a column it adds. The README only tells you to runinit.sql.puppeteeris a declared dependency that nothing in the visible source references. It pulls a headless Chromium download for no reason.- The README says Node v14+ and documents an
npm startcommand, butexpress@5andbcrypt@6require a considerably newer Node, andpackage.jsondefines no start script at all.
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.
| Axis | SAVVY | App-store trackers | Spreadsheet | Notes app |
|---|---|---|---|---|
| Input method | Text a chat message | Open app, tap, pick a category | Open file, type a row | Type a note, categorize later |
| Categorization | Keyword list, editable | Dropdown, sometimes auto | Manual, your own formulas | Manual |
| Where data lives | Your MySQL, your server | Their cloud | Your device or theirs | Their cloud |
| Cost | Hosting only | Subscription or ads | Free | Free |
| Setup effort | Run a Node server, configure a bot | Install an app | Start a file | Install an app |
| Analysis | 50/30/20 grade, three charts | Varies, often locked behind tiers | Whatever you build | None |
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.





