TrackaExpense tracks expenses and income, splits bills with friends and groups, and helps you stay on budget and save towards goals. It is a live Android app with real users. iOS is configured but has not been built or tested yet.
- Transactions: add, edit and delete expenses and income, with categories, notes, tags and receipt photos; search and filter by period, text, tag and payment method; CSV export.
- Statistics: spending by category, trends over time, merchants, a heatmap and a breakdown by payment method, drawn with Victory Native on Skia.
- Group splits: groups, equal or percentage splits, settle-up, IOUs, friends and balances, split history, invitations by email and by invite link.
- Savings goals: multiple goals with deposits, withdrawals, history and a "goal reached" notification.
- Budgets: monthly or custom-period budgets per category, with alerts at 50, 80, 100 and 120 percent.
- Recurring transactions: weekly, monthly and yearly rules created by a scheduled Cloud Function.
- Credit cards: pay with a card, track what each card owes, pay a bill, due-date reminders, and a "Fix my balance" adjustment.
- Receipt scanner: reads the total, date and merchant from a receipt photo with Google Cloud Vision.
- Bank message import: paste a bank SMS and the app fills in the transaction (HDFC, ICICI, SBI, Axis, Kotak and a generic parser).
- Notifications: weekly and monthly summaries, settle-up reminders, card bill reminders and an optional evening nudge, sent through OneSignal from Cloud Functions.
- Accounts and settings: email, Google and Apple sign-in; light, dark and system themes; multi-currency display; over-the-air updates.
| Area | Choice |
|---|---|
| App | Expo SDK 58, React Native 0.88, React 19, TypeScript (strict), Hermes, New Architecture |
| Routing | Expo Router |
| Styling | NativeWind v4 with semantic theme tokens |
| State and data | TanStack Query v5 persisted to MMKV, Zustand, live Firestore listeners |
| Backend | Firebase: Auth, Firestore, Storage, Cloud Functions (asia-south1), Remote Config, Messaging, Performance |
| Cloud Functions | TypeScript, firebase-functions 7, firebase-admin 14 |
| Push | OneSignal, sent from Cloud Functions only |
| Errors and analytics | Sentry, Mixpanel |
| Charts | Victory Native XL, @shopify/react-native-skia |
| Releases | Local Android release builds, EAS Update for over-the-air JavaScript updates |
| Quality | ESLint, Prettier, tsc, Jest, Firebase rules tests in the emulator, Maestro, Husky, commitlint |
- Money is stored in integer minor units (
amountMinor,balanceMinor) next to the legacyamountandbalance. Cloud Function triggers derive the new fields, so old app versions keep working. Splits divide in integer minor units so shares always add up to the total. - One query cache:
DataSynckeeps live Firestore listeners that write into a TanStack Query cache, which is saved to MMKV so a cold start shows the last data, also offline. Screens only read the cache. - Offline: adding, editing and deleting a transaction are saved on the phone while offline and sync when the connection is back; a banner shows when the phone is offline.
- Server-side rules: settlements, invitations, invite links, push, receipt scanning and user lookup go through callable functions. Budget alerts, recurring transactions, goal alerts and reminders run as triggers or scheduled functions.
- Security rules for Firestore and Storage live in
firebase/with emulator tests. - Project conventions are in CLAUDE.md, the quality gates in docs/quality-baseline.md and open work in docs/roadmap.md.
app/ Expo Router routes (route files wrap screens)
screens/ Screens, including SplitScreens/
src/ Shared code: components, data layer, hooks, services, theme, utils, types
components/ Older shared components
functions/ Cloud Functions (TypeScript) and their tests
firebase/ Firestore and Storage rules, indexes and rules tests
plugins/ Local Expo config plugins
scripts/ Release helpers
.maestro/ End-to-end flows
You need your own Firebase project and Google sign-in configuration. The app will not run against the original project.
Prerequisites: Node 24 (see .nvmrc), Yarn, Android Studio with JDK 17 or newer, and Xcode for iOS.
git clone https://github.com/chhedadhruv/TrackaExpense.git
cd TrackaExpense
yarn install
cp env.example .env # fill in your own valuesPut your Firebase config files in the repository root (they are gitignored and copied into the native projects on prebuild):
google-services.json(Android)GoogleService-Info.plist(iOS)
Then run:
yarn android # generates android/ with expo prebuild if needed
yarn iosandroid/ and ios/ are generated by yarn expo prebuild --clean and are not committed. Release signing needs your own keystore in credentials/android/; see plugins/with-release-signing.js.
| Command | Description |
|---|---|
yarn start |
Start Metro (yarn start:reset clears the cache) |
yarn android, yarn ios |
Run debug builds |
yarn android:release, yarn ios:release |
Run release builds |
yarn lint |
ESLint |
yarn type-check |
TypeScript, must stay at 0 errors |
yarn test |
Jest unit tests |
yarn test:rules |
Firestore and Storage rules tests (emulator, JDK 21 or newer) |
yarn test:functions |
Cloud Functions unit tests |
yarn test:triggers |
Function trigger tests in the emulator |
yarn check:ratchet |
Compare lint, type and format counts with the baseline |
yarn build:android, yarn build:android:bundle |
Release APK or AAB |
yarn release:android:local |
Local production Android build with checks |
- iOS has not been built or tested yet.
- Apple Sign-In is available on iOS only.
- Jest covers pure utilities; there are no component tests yet.
- Reading the SMS inbox is not built; bank messages are pasted in.
See docs/roadmap.md for the full list.
User data is stored in Firebase and protected by security rules. Receipt scanning sends the chosen photo to Google Cloud Vision, and notifications are sent through OneSignal. Nothing is sold. The in-app policy is in screens/PrivacyPolicyScreen.tsx.
MIT. See LICENSE.
Dhruv Chheda - dhruvchheda.com - me@dhruvchheda.com - GitHub - LinkedIn