Frontend · 2026
Finansal Pusula
A web app for tracking payments, instalments and income that encrypts every record on the user's device.

The project
Finansal Pusula (Financial Compass) is a web app I built to track the instalments I owe and am owed, my regular income and upcoming payments in one place. Records are encrypted on the user's device before they are sent to the server, so the server only ever holds unreadable data. The app also includes an end-to-end encrypted messaging section between the admin and users.
Process
- After finishing the first version, I compared the app against Cloudflare's website security checklist to find the gaps.
- I added the measures that could be applied for free: bot protection, per-user limits on records and messages, and a stricter content security policy that only allows my own Supabase project.
- I added the ability for users to delete their own account and for the admin to delete users. I moved the delete option to the bottom of the "Account settings" window so it is not tapped by accident.
- I first set up Google sign-in with a Supabase redirect, then switched to Google's own button. Along the way I also fixed user-experience issues such as email verification notices after sign-up and the monthly summary.
Highlights
- On-device encryption: Records are encrypted with AES-256-GCM using a key derived from the password with PBKDF2 (600,000 rounds); creditor names, amounts, dates and notes reach the server unreadable. If the password is forgotten, records can be unlocked with a recovery key.
- Extra security layers: Row-level security (RLS) in the database means everyone can only access their own records; the content security policy only lets the page connect to its own Supabase address; if "Remember me" is not ticked, the session locks after 15 minutes of inactivity.
- Payment and income tracking: Instalments to pay and to receive, regular income and the month's incoming, outgoing and net totals are shown with their paid and remaining parts.
- Upcoming payments: Payments due in the coming days are listed and can be added to a calendar. The home-screen icon shows the number of overdue payments.
- Encrypted messaging: Users can write to the admin in topic-based, end-to-end encrypted threads. The admin can send announcements to everyone.
- Google sign-in: Google's official button is used and sign-in completes inside the site.
- Account deletion: Users can permanently delete their own account by confirming with their password, and the admin can delete a user together with all of their data.
Technical challenges and solutions
- Combining Google sign-in with on-device encryption: Google confirms who the user is, but it does not provide the key that unlocks their records. I added a separate password screen after Google sign-in: the password is set on first sign-in and unlocks the records on later ones. Users who had already registered with the same email can keep using their existing password.
- A Supabase address instead of the app name on Google's screen: With redirect sign-in, Google said "continue to ...supabase.co". I switched to the Google Identity Services button and passed the ID token from Google straight to Supabase, verified with a nonce. I also updated the content security policy and referrer settings to meet Google's requirements.
- The Google button loading late: While the button loaded, a huge logo appeared first, then an empty space. When I tried to hide this with an opacity effect, the button stopped receiving clicks. I restored the button's working layout and placed a look-alike placeholder behind it.
Outcome
The app is live at pusula.eoksuz.dev and can be used for payment tracking, encrypted record keeping and messaging. It can be installed on a phone like an app (PWA).