POST /api/accounts/merge {from, into, preview}. Older imported rows move over; from
the day the bank's history starts the bank's rows win, and edits on matching rows
carry over. Safe to run again after stopping halfway.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- save when the permission ends (consent_until, migration 0032)
- Accounts warns two weeks ahead, says Needs attention once it ran out, and offers
Link again; an expired or revoked session no longer shows a raw API error
- accounts and rows are keyed on identification_hash, which stays the same across
links (the uid doesn't), so linking again adds no copies and keeps edits
- links made with the per-link uid move to the stable key on their next sync
- linking the same bank again replaces the old connection
Tested against the stand-in: first link, moving old IDs, linking again,
the warning and an expired permission.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In the Netherlands with Enable Banking keys, "Link a bank or card" sent people to
the setup page instead of the working Link your bank.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It has no header row, so nothing came in. Recognize its eight columns, and take
the other party's name out of ABN's coded text (/NAME/, card payments, Naam:).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Docker passes BROKE_HOSTED through (setting it in .env did nothing before)
- the helper finds claude.exe / claude.cmd on Windows (PATH uses ';' there),
runs a .cmd through cmd.exe with the question on stdin only, and keeps the
Windows variables Claude needs to find its login; opencode on Windows only as .exe
- the page gives Windows a PowerShell command (curl.exe, file then node)
- Copy works on a plain http LAN address
Tested on Windows end to end with a stand-in claude.cmd: pairing, a question with
quotes, & and %, and every lockdown flag arriving intact.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Docker passes ENABLE_BANKING_APP_ID and ENABLE_BANKING_PRIVATE_KEY through
- transactions are keyed on entry_reference: Enable Banking says transaction_id
may change between fetches, which imported rows twice
- a key pasted on one line keeps its own PEM label (PKCS#1 keys broke before)
- nginx keeps X-Forwarded-Proto/Host from a reverse proxy, so return links are https
- README: how to set up the app, the keys, and https if Enable Banking needs it
Checked against Enable Banking's API docs and tested end to end against a stand-in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- BROKE_OFFLINE=1 (on in Docker) turns off the GitHub update check and the
exchange-rate fetch, so the server makes no calls out
- auto-update in scripts/start.mjs pulls from your own repo (origin), never upstream
- install.sh points at brokeless; drop the workflow that merged upstream by itself
- compose project and image are named brokeless
- README: what changed from broke, how to run it, how to review upstream
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- roles.sql only touches roles this stack has (the init stopped early before)
- internal database link without SSL
- Mailpit without an SMTP login (GoTrue refuses one over plain SMTP)
- setup.mjs refuses localhost, which the containers can't reach
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Behind Docker or a proxy, request.url says http://0.0.0.0:3000, so the sign-in
link sent people there. originOf() reads the Host or X-Forwarded-Host header.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dockerfile builds this checkout. docker/docker-compose.yml adds Supabase's
Postgres, Auth and PostgREST behind one nginx address, Mailpit for sign-in
links, and Ollama under the ai profile. docker/setup.mjs writes fresh secrets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ING Netherlands exports every amount as positive and says Af (out) or Bij (in)
in its own column. Without this, spending and income all came in as income.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Saved as BROKE_COUNTRY. US and Canada get Plaid, NZ Akahu, UK and Europe
Enable Banking, Australia Basiq, Brazil Belvo. Countries with no feed are
told to import a statement after sign-in. Onboarding uses the saved
country instead of asking again.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Answers lead with one sentence and the key number. A split of money is a
breakdown block drawn as rows with the category icons, things to do are
actions that open the broke page that does them, and follow-up questions
are buttons under the answer. Output only: nothing new goes to the model.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- An Edit button on every account: name, and what kind it is (bank account,
credit card, loan, investment, something else). The kind decides where it
counts: a credit card's balance is money you owe.
- The kind you pick sticks: migration 0031 adds accounts.type_override, and a
trigger puts it back whenever a sync writes the bank's type, so every page
keeps reading accounts.type.
- An imported or hand-added credit card or loan now adds its purchases to what
you owe (it subtracted them, as for a bank account).
- Delete for accounts you added or imported, with their transactions. A linked
account says to hide it or remove the bank, since sync would bring it back.
Tested on a local Supabase: rename + Credit card moved the imported account
under Credit cards; a sync-style write of type depository kept it credit;
deleting removed it and its 358 transactions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Recurring charges only came from Plaid's detection, so imported statements,
bank feeds and hand-added accounts had none (Coming up stayed empty), and a
Plaid bill dropped off Coming up once its predicted date passed.
- findRecurring (pure, tested): groups by cleaned merchant name and direction,
finds a weekly, 2-weekly, monthly, quarterly or yearly rhythm (3 hits, 2 for
yearly, most gaps on the rhythm). Bills may vary 40% (electricity); everyday
spending (groceries, dining, gas) counts only at the same amount. Transfers
skipped. Next date keeps the day of the month. Stopped ones are ended.
- saveFoundRecurring runs after every sync and after a statement import. Plaid's
own stream wins for the same merchant. Updates keep the category you picked
and anything you hid. Plaid streams with a past next date roll forward.
Tested: the sample CSV alone finds Geico, Planet Fitness, Spotify, Netflix,
Verizon, rent, PG&E and Comcast, and Home's Coming up fills in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On start, broke fetches main and fast-forwards when this copy has no changes of
its own, then reinstalls only if package-lock.json changed. With your own changes
it says to run npm run update; offline, no git or BROKE_NO_AUTO_UPDATE=1, it
starts the copy you have.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brand marks from Simple Icons (ChatGPT from LobeHub icons), on a white tile so
the dark ones show in dark mode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It only showed categories you spend $10+ a month on. Now every spending
category is listed, biggest first, so nothing is hidden.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- With no Plaid keys, the page said bank linking "isn't available in United
States yet". It is: the keys are missing. It now shows Link a bank or card,
which opens Setup to add the free Plaid keys.
- Test banks: the Delete test data link went to Settings. It's now a button on
this page, with a confirm, that removes the test bank and its transactions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Supabase's default sign-in email has only a link; the code appears only after
the email template is changed. The page said "Sign in with a code" and
"Send code" either way. It now says Send sign-in email, then: open the link
in this browser, or type the code if the email has one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Suggest sheet said "Nothing to suggest right now." once every main category had a budget.
It now lists budgets $25 and a fifth or more away from the suggested amount as current -> suggested,
then main categories with no budget. Apply all saves them, each row can be edited or removed first,
and the sheet carries the page's Ask AI to tune my budget button.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The first-time "Set a budget from how you really spend" list was read-only
until you pressed Use these. Each suggested amount is now an input, each row
has a remove button, and a category picker adds any other category with an
amount. The Use these total and the "This leaves $X to save" line follow the
edits as you type. Use these saves exactly the rows shown.
Reuses AmountCell and the table's add form (now AddBudget, shared by both).
The Suggest sheet on the after-budget view gets the same editing.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- A CSV with a Category column (Chase, Amex, Monzo style) now files each row
under the matching broke category instead of Other, so budgets suggest
per category straight after an import.
- Onboarding's bank step counted only linked banks, so after importing a
statement it kept sending you back to Link your bank. It now counts
imported (manual checking/savings) accounts too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A stopped first install left a half-full node_modules, so the next
start skipped npm ci and failed with spawn node_modules/.bin/next ENOENT.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The account-wide sign-in, project picker and project creation are gone. Signing in to Supabase stays as an option on step 2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- list_organizations and list_projects reply {organizations: [...]} and {projects: [...]}: read both
- A $0 project is created without a cost confirmation, as Supabase's tool asks
- Connect Supabase opens Supabase in its own tab; broke's tab updates when the sign-in finishes
- Installs use npm ci, and npm run update puts back an npm-rewritten package-lock.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signs in to the whole Supabase account, lists its projects (one is used straight away), or makes a free one called broke,
then fills in the address and public key and creates the tables. The paste-all-three route stays as the fallback.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Sign in with a code from your email (the link still works); setup item for the code email
- Use made-up data: a pretend bank with three months of spending, no Plaid account needed
- Is this your pay? when regular money in is filed as something else, with a one-press fix
- They look right: keep every bank-given category in one press
- Your week on Home, Plan in the main menu, history start per bank on Accounts
- A new version of broke is ready, in the sidebar and Settings
- Start skips the rebuild when nothing changed; country screen says it was guessed
- Fix: skipping banks no longer sends you back to setup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Money plan is one card: your AI's two-sentence summary, then numbered next steps, then context and chat
- Removed the next-move card, plan summary, payoff chart, timeline and bills list from the page
- Setup accepts the dashboard address or project ref and works out the Project URL
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Disconnects every bank at Plaid and deletes the signed-in user's money data. Sign-in, profile and AI connection stay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>