Skip to content
sp.@sujalpatelcoder
All notes
Build notes

Your money shouldn’t need a connection.

A look at KharchaBaki: tracking everyday expenses, budgets, and borrowed money, starting right on your phone.

sp.Sujal Patel··2 min read

Some of the most useful software handles very ordinary things. An expense after lunch. Money lent to a friend. A monthly budget that needs a little attention.

KharchaBaki brings those things into one place: income, expenses, budgets, and money lent or borrowed. It has a React Native mobile app and a web presence built with Next.js.

Start where the expense happens

The mobile app saves data offline. Cloud saving is part of the premium offering, so recording an expense doesn’t have to depend on having a connection.

That distinction matters: saving something on a device and saving it to a remote account are different operations. A useful interface makes it clear which one has happened.

More than a list of transactions

The project also covers the money you lend and borrow, recurring payments, and budgeting. Those features sit alongside the core income and expense tracking.

The stack brings together React Native, TypeScript, Express, Drizzle, and PostgreSQL, with Better Auth for authentication and Razorpay for payments.

Here’s a simplified TypeScript model for keeping the direction of a loan explicit. This is an illustrative example, rather than an extract from the application:

typescript
type Loan = {  person: string;  amountInPaise: number;  direction: "lent" | "borrowed";  status: "open" | "settled";};
const isOutstanding = (loan: Loan) =>  loan.status === "open";

Naming the direction explicitly makes the distinction easier to carry through an API, a database schema, and a screen. The same care applies to the difference between an expense, income, and a transfer.

A small product with real moving parts

A finance app brings together the visible interface and the less visible work: validation, authentication, storage, and subscriptions. KharchaBaki is one of the projects where those parts meet.

You can find the rest of my projects back on the home page, or get in touch to talk about building something together.

ANOTHER NOTE

A file upload is only the beginning.