Weeksafe is a budgeting app for freelancers with irregular income. The promise is simple: one number for the week, after a tax reserve and the bills that are due soon. And we never ask for a bank login.
That last part is a product rule, not a slogan. It shaped how we take in transactions, how the homepage picks a currency, and how the free tax tools work. This post is about those three pieces.
Why the file never leaves the browser
A lot of finance apps start with "connect your bank." We did not want that as the way in. Open banking is a product of its own, and we would rather ship something honest that works in the UK, the US and elsewhere on day one.
So the main path is a bank-statement CSV. You download it from your bank's app or website, choose the file in Weeksafe, and we parse it on your device with PapaParse. The file is not uploaded. Only the rows you confirm are saved to your account.
Practical limits, because this runs in a tab: CSV only, up to 5 MB and 5,000 rows. We do not import PDF or Excel statements yet. That is a real gap, and we would rather say so than pretend a CSV picker is a universal importer.
Recognise the common banks, then fall back to columns
Bank exports do not share a schema. Monzo's file is not Starling's, and Chase is not Bank of America. Some files even start with a page of account information before the real header row (Bank of America does this; so do some Indian banks we already handled).
The importer first looks for a known header signature and, if it finds one, applies a fixed column map and the date order that bank actually uses: day-first for the UK banks, month-first for the US ones. That mapping is used even if the Weeksafe account is set to a different country, so a UK file still reads correctly in a US account.
The banks we recognise by name today are:
- UK: Monzo, Starling, Barclays, HSBC UK, Lloyds, NatWest, Revolut
- US: Chase, Bank of America, Wells Fargo, Capital One
We also recognise exports from YNAB, Monarch and Walnut (axio), which helps people moving from another budgeting app.
If the file is from any other bank, we do not give up. A guesser looks at header names — date, description, a single signed amount, or separate debit and credit columns — and we infer the date order from the values when we can. If the guess is unclear, we stop and ask you to match the columns.
Either way, you see a preview. You can untick rows, fix a flipped sign, and only then import. Recognised transfers between your own accounts, pending payments, and rows in another currency than the account can be left out, with a note explaining why. Duplicates are matched on date, amount and description against what is already in the account. When the columns are clear and the dates are unambiguous, we skip the questions and go straight to that preview.
£, $ or ₹ before the first paint
The homepage is prerendered, and we show real product shots from a sample account (made-up figures) in three currencies: pounds for UK visitors, dollars for the US, rupees for India and everyone else. The hook line above the headline changes too: UK visitors see "Your invoices are late. Know what's still safe to spend." US visitors see "Made for irregular income. No bank login."
If that choice ran after React hydrated, the first paint would flash the wrong currency. That is especially easy to get wrong for us, because many browsers in India report en-US as the language. A locale-only guess would show a US page in Mumbai.
So a tiny inline script in index.html runs before the first paint, using the same rules as the app:
- Any India signal wins: a Kolkata time zone, or a locale whose region is
IN. - Otherwise, the first supported region in
navigator.languages(withGBmapped to UK). - If that is still empty and the time zone is
Europe/London, we treat the visitor as UK. - We write
data-ws-market="UK","US"or"OTHER"on<html>.
CSS keyed on that attribute shows one hook line and one set of product shots. During prerender, when there is no document yet, the shots are CSS backgrounds. The browser can therefore download only the visitor's set — £, $ or ₹ — and the first paint already matches. The app then renders the same image over the background, usually from cache. A unit test keeps the inline script and the TypeScript guessCountry() helper in sync, because two copies of the same rule will drift.
Tax tools that also stay in the browser
The same idea applies to the free calculators. Each one is a static page: no login, and nothing you type is sent to us or stored. They are labelled as estimates, not tax advice, and each one ends with a link to get your weekly safe-to-spend number inside the app.
The ones we lean on for the UK and the US are:
- Do I need Making Tax Digital? — qualifying income against the published GOV.UK thresholds (£50,000 / £30,000 / £20,000), with a start date if it applies. Weeksafe is not MTD software and does not send updates to HMRC.
- US quarterly estimated tax — federal 1040-ES due dates and the IRS safe-harbor amount, with an optional self-employment tax helper. It does not calculate income tax, and it does not include state tax.
- UK payments on account — the 31 January and 31 July instalments, plus the January balancing payment.
There is also a simple weekly safe-to-spend calculator that averages the months you type in. That planning estimate is not the same as the number inside the app, which starts from the money you actually have now.
The stack, briefly
The app is React 18, Vite and TypeScript, with Tailwind CSS, on Vercel. Accounts and entries sit in Supabase (Postgres with row-level security, so each user can only reach their own rows). Invoice PDFs are built with jsPDF and can be downloaded or shared on WhatsApp.
If you want to try the importer, the calculators, or the sample numbers, they are live at https://weeksafe.com. And if you have wrestled with bank CSVs or pre-paint localisation, we would like to hear how you handled it.