Software · Susu savings
Total Rest Susu
A susu savings collection system for Ghana: a mobile app for field agents and a web dashboard for administrators and branch managers, both working from one database.

- Client
- Total Rest Susu
- Role
- Design and development
- Status
- In development
- Year
- 2026
The brief
Total Rest Susu is a system for collecting and managing susu savings in Ghana, in Ghanaian cedis. It needed an app for the agents who collect deposits in the field and a dashboard for the administrators and branch managers who oversee them, both reading the same figures. It is in development and runs against a development database.
Built with
- TypeScript
- React Native
- Expo
- React
- Vite
- Tailwind CSS
- TanStack Query
- Supabase
- PostgreSQL
What we built
The system is a TypeScript monorepo with two apps on one Supabase database. The agent app is built with Expo and React Native: sign-in, a PIN and biometric lock, the agent's customers and deposit posting. The dashboard is a React application built with Vite and Tailwind CSS, with screens for transactions, customers with their KYC documents and a deposit-consistency calendar, accounts, agents, branches, commission rates and payouts, a month-end console, reports with Excel export, staff and roles, and an audit trail.
The rules live in the database, not in the apps. Every balance change goes through a Postgres function: posting a deposit, posting a batch, making a withdrawal, closing or reopening a month, reversing a transaction, opening an account. Row-level security decides what each role can see: administrators see everything, managers see their branch, and agents see only their assigned customers. Nothing is ever deleted. A reversal writes an opposing entry and claws back the commission.
Each posting function takes an idempotency key, so a deposit retried after a dropped connection is not credited twice. Commission is charged once per savings cycle on the first deposit, with rules that can vary by branch, account type, agent tier and customer segment. The TypeScript preview of that calculation mirrors the SQL and is unit-tested. Flexi and Fixed accounts accrue interest at month close, with an early-withdrawal penalty and manager approval above a set amount. Type checks and tests run in GitHub Actions.
Highlights
- Agent app in Expo and React Native, dashboard in React and Vite
- One Supabase Postgres database behind both
- Every balance change goes through a database function
- Row-level security by role: administrator, branch manager, agent
- Idempotency keys, so a retried deposit is not credited twice
- Reversals write an opposing entry and nothing is deleted
- Month-end close with interest accrual, and reports with Excel export


Next project
Roomwright
Get in touch
Got an idea, or something that needs fixing?
Tell us about the website, app or software you have in mind, or the equipment that's stopped working. We'll get back to you, usually with a few questions of our own.