How nxmya-aa/splitsmart works
Purpose and runtime
SplitSmart is a client-side expense-splitting application for creating groups, recording shared expenses, calculating balances, and marking settlements. It is a React/TypeScript single-page application built and served by Vite, persisted in browser Local Storage, and deployed as static hosting on Vercel.
Primary browser entry points:
• index.html
• src/main.tsx
• src/App.tsx
Application composition
src/main.tsx mounts the React application. src/App.tsx is the top-level composition and likely owns screen selection, shared application state, and navigation between the product’s workflow stages. Global and application styling are separated into:
• src/index.css
• src/App.css
There is no backend, authentication provider, or server API in this repository; browser persistence is the main data boundary.
Onboarding and home flow
The app begins with an introductory/onboarding surface, then transitions into the main group-centric experience:
• src/screens/IntroScreen.tsx
• src/screens/HomeScreen.tsx
• src/App.tsx
Home is the likely launch point for viewing existing groups and initiating group creation or selection. Control then moves into group and transaction screens rather than through URL-routed backend endpoints.
Group lifecycle and balance domain
Groups, members, expenses, and derived balances form the core domain. The group list/creation stage is represented by:
• src/screens/GroupScreen.tsx
• src/screens/HomeScreen.tsx
A selected group is handled in:
• src/screens/GroupDetailScreen.tsx
• src/components/TransactionList.tsx
This boundary is where stored group records are interpreted into member-level obligations, transaction history, and settlement actions. Balance calculation and settlement are client-side behaviors backed by Local Storage rather than a remote ledger.
Expense and settlement workflow
Expense entry and transaction review are separate product stages:
• src/screens/TransactionScreen.tsx
• src/components/TransactionList.tsx
• src/components/FilterTabs.tsx
Users add or inspect shared expenses through the transaction screen; the transaction list presents recorded activity, while filter tabs constrain the visible transaction subset. Settlement actions update the same local client-side state/persistence model, with no payment processor or external financial service indicated.
Profile and settings boundaries
User-oriented preferences and account-like UI are isolated from group accounting:
• src/screens/ProfileScreen.tsx
• src/screens/SettingsScreen.tsx
These screens are presentation and local-preference boundaries. The README explicitly identifies authentication and a cloud database as future work, so profile behavior should not be treated as a real authenticated identity system.
Infrastructure and delivery
The frontend is packaged through Vite:
• vite.config.ts
• package.json
• index.html
Styling uses CSS plus Tailwind/PostCSS configuration:
• tailwind.config.js
• postcss.config.js
• src/index.css
The deployable artifact is a static browser application suitable for Vercel. Its operational dependency is the user’s browser storage: data is local to a browser/device and is not synchronized across users or installations.
Main entry points: App.tsx App composition · GroupDetailScreen.tsx Group detail · TransactionScreen.tsx Expense entry · vite.config.ts Vite build
Components 17
Browser SPA
- React mount
src/main.tsx - App composition · Owns shared state, navigation, and screen selection.
src/App.tsx - Browser Local Storage · Data remains local to one browser or device.
- Global styles
src/index.css
Product Workflow
Group Accounting
- Groups
src/screens/GroupScreen.tsx - Group detail · Interprets group records into obligations and settlement actions.
src/screens/GroupDetailScreen.tsx - Expense entry
src/screens/TransactionScreen.tsx - Transaction list
src/components/TransactionList.tsx - Filter tabs
src/components/FilterTabs.tsx
Build & Delivery
- HTML entry
index.html - Package scripts
package.json - Vite build
vite.config.ts - Vercel static hosting · Serves the built client application.
Connections 20
- Package scripts → Vite build: runs
- Vite build → HTML entry: builds
- HTML entry → React mount: loads
- React mount → App composition: mounts
- App composition → Intro: shows onboarding
- Intro → Home: continues to
- App composition → Home: selects screen
- Home → Groups: creates or selects groups
- Groups → Group detail: opens selected group
- Group detail → Expense entry: adds expense
- Group detail → Transaction list: shows activity
- Expense entry → Transaction list: records expense
- Filter tabs → Transaction list: filters
- App composition → Profile: navigates
- App composition → Settings: navigates
- App composition → Browser Local Storage: reads and writes
- Group detail → Browser Local Storage: persists balances and settlements
- Expense entry → Browser Local Storage: persists expenses
- Global styles → App composition: styles
- Vite build → Vercel static hosting: publishes static build