Skip to content

bhavik8025/dabba

Repository files navigation

🍱 Dabba: The Tiffin Tracker

Live: https://getdabba.vercel.app

Architecture Β· Deploy guide Β· Contributing Β· MIT licensed Β· β‚Ή0/month infra

A minimal Splitwise-style app, built only for tracking shared tiffin (food) expenses. Mobile-first PWA β€” everyone in the group installs it from a link, logs in with phone number + 6-digit PIN (no SMS, no cost), and shares one live ledger.

What it does

  • Add entry β€” date, who paid the vendor, then two sections: Individual (pick people from a dropdown, set their own tiffin/roti counts, Β½ steps allowed) and Shared (e.g. 2 tiffins shared by 3 people β€” cost splits equally among whoever you tick, exact to the paisa). A live amount preview shows each person's payable before you save. "Same as last time" for one-tap repeat days. Multiple entries per day allowed (lunch + dinner).
  • Prices set once β€” tiffin & roti rates live in Settings. Each entry snapshots the rate at save time, so editing prices later never rewrites old records.
  • Balances β€” net per-person balance (paid βˆ’ ate Β± settlements), plus "who pays whom" simplification like Splitwise.
  • Record payments β€” when someone pays you back (partial is fine), log it and balances update.
  • Audit report β€” quick ranges (last 7 days / this month / last month / all time) or a custom date range; per-person breakdown (days, tiffins, rotis, ate/paid/net), copy as text for WhatsApp.
  • History β€” grouped by month with monthly totals, per-person amount chips on every entry, tap to edit. Deleting never erases: the entry stays as a visible "deleted by X" tombstone (restorable), excluded from all totals.
  • Full audit trail β€” every entry shows who paid, who added it, and who last edited it; every payment shows who recorded it. The server enforces these stamps, so they can't be faked even by calling the API directly.
  • Per-person ledger β€” tap any name on the Balances tab to see line by line how their balance adds up (ate / paid vendor / paid back / received).
  • Extras β€” one-off β‚Ή amounts per person (sweet, papad, cold drink) on top of tiffin/roti counts.
  • Members β€” anyone can leave a group or remove someone who left the mess; their old records keep their name. Invite codes can be regenerated if leaked.
  • Live sync β€” phones with the app open see each other's changes instantly (Supabase Realtime).
  • Demo mode β€” "Try demo" on the first screen runs the entire app on sample data in the browser, no account or backend needed.

Use the app

No install, no setup. Just open the link on your phone:

πŸ‘‰ getdabba.vercel.app

  1. Sign up with your phone number + a 6-digit PIN.
  2. Create a group β†’ set tiffin & roti prices β†’ share the invite code with your flatmates.
  3. Browser menu β†’ Add to Home Screen β€” installs like a native app, no Play Store needed.

Try it first without signing up: tap "Try the demo" on the welcome screen.


For developers β€” run your own copy

Only needed if you want to host a completely separate instance with your own database. Regular users just open the link above β€” no setup required.

  1. Create a free Supabase project β†’ SQL Editor β†’ run supabase/schema.sql. Under Auth β†’ Email, disable Confirm email.
  2. Copy .env.example β†’ .env and paste the Supabase Project URL + anon public key.
  3. npm install && npm run dev for local dev. Deploy free: push to GitHub β†’ Vercel β†’ add the two VITE_… env vars β†’ done.

Forgot PIN? Supabase Dashboard β†’ Auth β†’ Users β†’ find p<phone>@tiffin-tracker.app β†’ Update user β†’ set new 6-digit password.

Notes

  • npm test β€” money-math unit tests; run after any calculation changes.
  • Trusted-group model: any member can add/edit entries (like Splitwise), but every action is server-stamped with the doer's name and can't be faked.

About

🍱 Dabba: The Tiffin Tracker β€” split daily tiffin costs with your PG/flat group. React + Supabase PWA, β‚Ή0 infra, server-enforced audit trail.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors