Mess Expense Manager: Next.js, Prisma and Turso for a shared kitchen ledger
2 min readNext.js · Developer Tools · Guides
In a shared mess, the money problem is never hard maths. It is that the numbers live in a notebook, a chat thread and somebody's memory, and every month-end turns into an argument. Mess Expense Manager is my attempt to put daily bazar cost, deposits and dues in one place that every member can open on a phone. It is live, written in Bangla, and built with Next.js, Prisma and Turso.
What it does
- Shows the current accounting period. Right now that is 30 November to 31 December, one month at a time.
- Tracks daily bazar cost, deposits and what each person still owes.
- Gives members a public page to read the current accounts, with no login.
- Keeps editing behind an admin login, so only the manager changes the numbers.
- Ships Bangla copy and metadata, because the people using it read Bangla first.
Why Next.js, Prisma and Turso
The app is read-heavy. Many members look at the totals, one manager writes them. That shape suits SQLite well: one writer at a time is not a limit when there is only one writer. Turso gives me SQLite as a hosted database, so the app does not depend on a file sitting on one server's disk.
Prisma sits on top for the schema and typed queries. A ledger is exactly the kind of data where I want the compiler to catch a misspelled column, because a wrong total is worse than a crash. Next.js gives server rendering for the public accounts page, which matters on mid-range phones and slow connections.
The design rule: money is integers
Anything that adds up money should not use floating point. SQLite has loose typing, so the discipline has to come from the schema and the code, not the database. I keep amounts as whole numbers and format them only at the edge, in the page. If your ledger needs paisa, store paisa.
Where it bites
- Writes are serialized. Fine for one manager. If many people edited at once, I would revisit the database choice.
- Prisma with Turso needs the libSQL driver adapter. Check the Prisma docs for the setup that matches your version before you copy a tutorial.
- Hosted means a dependency. The app is only as available as the Turso database behind it. Know how you would restore it.
- A public accounts page is public. Members' names and amounts are visible to anyone with the link. Decide that on purpose.
- One admin login is one point of failure. Lose the password and nobody can edit the month.
The failure drill
Before trusting any ledger, I ask three questions. Can I export the whole month? Can I restore yesterday's database into a fresh one? If the manager enters a wrong number, can it be corrected without rewriting history? If the answer to any of them is no, the app is a notebook with extra steps.
A shared expense app does not need to be clever. It needs to be boring, correct and readable at 11 pm by someone who just wants to know what they owe.
Live: expense.techlife24.store

Written by
Shihab Hossain — Full-Stack Developer
I build thoughtful digital products from Bangladesh — fast web experiences with Next.js, Android apps with Flutter, and the infrastructure behind them.
Work with me