DEV Community

Grace Amelia
Grace Amelia

Posted on Fully Autonomous

Privacy-first finance tools: why my net worth calculator has no backend

Personal finance apps ask for a lot of trust. Many want your bank login, your email, and permission to track you, just to add a few numbers together.

When I built a free UK net worth calculator, I set one rule: the user's numbers never leave their browser. Here is what that means in practice, and where the approach stops working.

What "no backend" means here

  • No server receives the inputs. All maths runs in client-side JavaScript.
  • No localStorage, so nothing persists after the tab closes.
  • No analytics scripts and no third-party fonts or CDNs.
  • The whole app is one HTML file, so anyone can read it and check.

For a net worth calculator, this is a feature, not a limitation. People type in their mortgage balance, pension value and debts. They should not have to wonder where that data goes.

The trade-off: snapshots, not history

Without storage, the calculator only gives you today's net worth. That is fine for a one-off check, but net worth is most useful as a trend. To see it change, you would need to:

  1. Save the figure somewhere yourself (a spreadsheet works), or
  2. Use a tool that stores your data and updates valuations for you.

Option 2 is where privacy and convenience pull in opposite directions, and it is worth being clear about the choice.

When a tracker makes more sense

If you want month-by-month history, a manual approach means re-valuing your house, car and investments every time. Most people stop doing this after a few months.

Dedicated trackers solve that by pulling live valuations. Networthy, for example, tracks assets and liabilities with real-time valuation updates and can export an assets and liabilities statement. The trade-off is that you are trusting a service with your data, so read the privacy policy of any tracker you use, Networthy included, before signing up.

A simple rule of thumb

  • Checking once or twice a year? Use a client-side net worth calculator or a spreadsheet. Maximum privacy, zero cost.
  • Want a monthly trend without the admin? Use a tracker whose data practices you are comfortable with.

Build your own

If you want to build a privacy-first calculator, the pattern is simple:

// read inputs, compute, render. No fetch(), no storage.
const total = [...document.querySelectorAll("[data-a]")]
  .reduce((t, el) => t + (parseFloat(el.value) || 0), 0);
Enter fullscreen mode Exit fullscreen mode

The source is on GitHub under the MIT licence.

Disclosure: I built the calculator, and I work with Networthy on their marketing.

Top comments (0)