All work

TalknTrack · voice expense tracker · Next.js · Groq

TalknTrack, a voice expense tracker where you just say what you spent

TalknTrack is a personal finance app you talk to. Say "chai 200 kal" or "gave Rahul 500 and spent 200 on food" in English, Hindi or a mix of both, and it turns that into proper entries with an amount, a category and a date. It also handles budgets, money friends owe you, shared trip expenses and a monthly report. I built it alone.

Role

Built it alone, 30 commits

Stack

Next.js, MongoDB, NextAuth

AI

Whisper and Llama 3.3 on Groq

Install

On the web, or as an app (PWA)

What's in TalknTrack

Speak or type

English, Hindi and Hinglish all work, and so does shorthand like "2k" for 2,000.

Several entries in one sentence

"Gave Rahul 500, spent 200 on food and got salary 50k" becomes three separate entries.

Money between friends

Lending and borrowing are filed under the person's name with a date and a reason, and one tap sends them a polite WhatsApp reminder.

Budgets and a monthly view

A budget for each category each month, charts for any month, and a button that copies last month's budgets forward.

Shared groups

Add trip or flatmate expenses by voice, invite people with a link, and settle up in as few payments as possible.

Monthly insight cards

Warnings, tips and wins about your month, each with a button that does something, like setting a budget.

The rest

Receipt photos, investments, CSV export of everything, light and dark themes, and install to your home screen.

Why most expense trackers get abandoned, and why voice

Most people who start an expense tracker stop within a week. Every entry means opening a form, picking a category and typing an amount, and nobody does that for a ₹20 chai. The entries that get skipped are exactly the small ones that add up.

But people already say their spending out loud, to friends or to themselves: "Zomato 450", "kal Rahul ko 500 diye". So I made the app accept exactly that. If saying it takes two seconds, people keep doing it, and the data stays complete.

Two more decisions came from the same idea. A single sentence can hold several entries, because that's how people talk about their day. And the AI is never allowed to do the maths: it reads what you said, but every total, budget and suggestion is calculated in plain code, so a number on screen is always right.

How I got there

Explore

First idea: a faster form, plus an AI that gives advice

A form per entry
One at a time
Let the AI advise

Realise

But a form is still a chore, and the AI's advice made numbers up

A form per entry
One at a time
Let the AI advise

Insight

So speak in, get entries out, and keep the maths in code

Just say it
Many in one line
Code does the maths

Let the model read what you said, and let code do every calculation.

How a spoken sentence becomes saved entries

  1. Record, or type

    The browser records your voice and sends the audio to the server. A typed sentence skips straight to step three.

    src/components/AddTransaction.tsx

  2. Speech to text with Whisper

    Whisper, a speech-to-text model, runs on Groq, which is fast enough that the words come back almost instantly.

    src/services/aiService.ts

  3. Text to entries with Llama 3.3

    Llama 3.3 reads the sentence and returns a list of entries as JSON, each with a type, category, amount, person and date. Its instructions include real examples like "chai pe 200 kharch", explain that "2k" means 2,000, and turn words like "kal" or "2 days ago" into actual dates.

    src/services/aiService.ts

  4. Saved where each one belongs

    Spending and income go into your ledger in MongoDB, and lending or borrowing goes onto that person's page, ready to settle later.

You bring your own AI key

To keep the app free to run, each person adds their own free Groq API key once, on the first screen. The key stays in their browser and is sent along with each request, so it's never stored in my database. Signing in is with Google, through NextAuth.

Monthly insights the AI can't get wrong

My first version handed the month's data to the model and asked for three insights. They read well, but nothing checked the numbers, and sometimes they were simply made up. For a finance app that's the worst possible bug.

So I split the job in two. Plain code scans your month and finds the facts: a category that jumped at least 40% and ₹500 over last month, a budget you've passed or nearly passed, a big category with no budget, a debt that's overdue, money a group owes you, and spending that came in under last month. Each fact carries its own number and its own action.

Only then does the model see them, and its job is just to put them in order and word them nicely. The numbers and buttons are attached back by id afterwards, so nothing it writes can change a figure. If there's no AI key at all, each card still shows up with default wording.

A big category with no budget

"Set ₹X budget", suggested as last month's spend plus 10%, rounded up.

A debt that's past due

"Send reminder", which opens WhatsApp with a polite message ready to go.

A budget passed or nearly passed

"Review budgets", straight to that page.

Someone in a group owes you

"Open group", to settle up.

Splitting trip expenses: from 18 payments to 3

After a trip with four friends, everyone owes everyone a little, and paying each debt back one by one means a long list of payments. TalknTrack works out each person's overall balance, then matches whoever owes the most with whoever is owed the most, again and again, until everyone is even. In the example from my reel, 18 payments between four friends become 3.

Adding an expense works by voice too: "Amit ne 900 diye hotel ke, sabne share kiya" becomes a ₹900 hotel expense paid by Amit and split between everyone. The model is only allowed to use names that are actually in the group, so it can't invent a member.

Making groups work for real people

Groups started as a list of names on my own account. Making them shared meant a few careful changes.

Members became records, not just names

Each member has a stable id, so someone can be renamed or linked to a real account later without breaking past expenses.

Old groups convert themselves

Groups saved in the old format are upgraded the first time they're opened, with every balance kept intact.

Invite by email or with a link

A friend with an account joins at once; one without is invited and joins on their next visit. A join link works even when they're signed out.

Two people editing at once

Changes are written as single atomic database updates, so one person's edit can't wipe out another's.

The small details

"Kal" means yesterday

Relative dates in Hindi or English, like "kal" or "last Monday", are turned into real dates, so an entry lands on the right day.

It never asks you to clarify

If a sentence is unclear, the model makes its best guess, because a quick edit afterwards is faster than a back-and-forth.

Copy last month's budgets

Most budgets don't change month to month, so one button carries them forward.

Export everything

Transactions, debts and investments download as CSV files, because it's your data.

Screenshots

Everything past this first screen needs a Google sign-in, so only the first screen is shown here.

TalknTrack's first screen on a phone, asking for a free Groq API key to turn on voice and text input
The first screen: add a free Groq key once, and voice input is on.