[PR #6041] Feature: Add Akahu New Zealand bank sync #32210

Open
opened 2026-04-18 08:17:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/6041
Author: @ItsThatDude
Created: 10/31/2025
Status: 🔄 Open

Base: masterHead: feature/akahu-nz-bank-sync


📝 Commits (10+)

  • 02be24a add akahu integration for nz banks
  • a94c24b akahu fix bank name being set to account name
  • 78b6c2b rename apiToken and fix reset pointing to the wrong function
  • 7ee93a4 fix apitoken wording in akahu init modal
  • 8ae21bb add upcoming-release-notes
  • 6b8165c fix lint issues
  • cfbdffb fix lint issues
  • 289a118 Merge branch 'actualbudget:master' into feature/akahu-nz-bank-sync
  • 12b29c8 add loan account type to starting balance inversion
  • 5be67ad fix initial sync balance

📊 Changes

18 files changed (+994 additions, -3 deletions)

View changed files

📝 packages/desktop-client/src/accounts/mutations.ts (+41 -0)
📝 packages/desktop-client/src/components/Modals.tsx (+4 -0)
packages/desktop-client/src/components/modals/AkahuInitialiseModal.tsx (+151 -0)
📝 packages/desktop-client/src/components/modals/CreateAccountModal.tsx (+169 -0)
📝 packages/desktop-client/src/components/modals/SelectLinkedAccountsModal.tsx (+32 -2)
packages/desktop-client/src/hooks/useAkahuStatus.ts (+31 -0)
📝 packages/desktop-client/src/modals/modalsSlice.ts (+6 -0)
📝 packages/loot-core/src/server/accounts/app.ts (+128 -0)
📝 packages/loot-core/src/server/accounts/sync.ts (+64 -0)
📝 packages/loot-core/src/server/server-config.ts (+2 -0)
packages/loot-core/src/types/models/akahu.ts (+8 -0)
📝 packages/loot-core/src/types/models/index.ts (+1 -0)
📝 packages/sync-server/package.json (+1 -0)
packages/sync-server/src/app-akahu/app-akahu.js (+316 -0)
📝 packages/sync-server/src/app.ts (+2 -0)
📝 packages/sync-server/src/services/secrets-service.js (+2 -0)
upcoming-release-notes/6041.md (+6 -0)
📝 yarn.lock (+30 -1)

📄 Description

Adds the ability to sync with New Zealand banks via Akahu. (https://developers.akahu.nz/docs/getting-started)

Akahu are a NZ based fintech company who specialize in open banking and payment/banking interfacing with all major New Zealand banks (along with some other fund/investment providers as well - https://developers.akahu.nz/docs/integrations)

I've developed this integration for my own personal use and figured there may be other NZers out there who would benefit from it.

Summary by CodeRabbit

  • New Features
    • Added Akahu bank synchronization provider with account linking and account sync (transactions & balances).
    • Added an Akahu setup modal to enter credentials and manage/reset configuration.
    • Added Akahu account discovery and selection during account linking flows.
    • Added Akahu status/check and account-import flows to the server to support in-app linking.

✏️ Tip: You can customize this high-level summary in your review settings.


Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 34 12.93 MB → 12.94 MB (+10.47 kB) +0.08%
loot-core 1 4.85 MB → 4.85 MB (+3.55 kB) +0.07%
api 1 3.88 MB → 3.89 MB (+3.46 kB) +0.09%
cli 1 7.91 MB 0%
crdt 1 41.83 kB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
34 12.93 MB → 12.94 MB (+10.47 kB) +0.08%
Changeset
File Δ Size
src/components/modals/AkahuInitialiseModal.tsx 🆕 +4.56 kB 0 B → 4.56 kB
src/hooks/useAkahuStatus.ts 🆕 +555 B 0 B → 555 B
src/components/modals/CreateAccountModal.tsx 📈 +3.76 kB (+25.07%) 15 kB → 18.76 kB
src/accounts/mutations.ts 📈 +745 B (+5.77%) 12.61 kB → 13.34 kB
src/components/modals/SelectLinkedAccountsModal.tsx 📈 +771 B (+1.87%) 40.25 kB → 41 kB
src/components/Modals.tsx 📈 +125 B (+0.97%) 12.56 kB → 12.69 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 1.85 MB → 1.86 MB (+9.74 kB) +0.51%
static/js/extends.js 484.53 kB → 485.26 kB (+745 B) +0.15%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/BackgroundImage.js 121.09 kB 0%
static/js/FormulaEditor.js 814.39 kB 0%
static/js/PayeeRuleCountLabel.js 52.13 kB 0%
static/js/ReportRouter.js 1.18 MB 0%
static/js/ScheduleEditForm.js 136.13 kB 0%
static/js/TransactionEdit.js 185.13 kB 0%
static/js/TransactionList.js 82.8 kB 0%
static/js/Value.js 4.34 MB 0%
static/js/ca.js 191.72 kB 0%
static/js/chart-theme.js 709.55 kB 0%
static/js/client.js 450.92 kB 0%
static/js/da.js 104.4 kB 0%
static/js/de.js 174.12 kB 0%
static/js/en-GB.js 8.2 kB 0%
static/js/en.js 176.5 kB 0%
static/js/es.js 181.54 kB 0%
static/js/fr.js 176.79 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.46 kB 0%
static/js/it.js 165.68 kB 0%
static/js/narrow.js 363.68 kB 0%
static/js/nb-NO.js 151.58 kB 0%
static/js/nl.js 108.66 kB 0%
static/js/pl.js 88.34 kB 0%
static/js/pt-BR.js 193.49 kB 0%
static/js/resize-observer.js 18.06 kB 0%
static/js/th.js 178.91 kB 0%
static/js/theme.js 30.79 kB 0%
static/js/uk.js 212.28 kB 0%
static/js/useFormatList.js 7.62 kB 0%
static/js/wide.js 292 B 0%
static/js/workbox-window.prod.es5.js 7.33 kB 0%
static/js/zh-Hans.js 110.19 kB 0%

loot-core

Total

Files count Total bundle size % Changed
1 4.85 MB → 4.85 MB (+3.55 kB) +0.07%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/app.ts 📈 +2.11 kB (+9.68%) 21.79 kB → 23.89 kB
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/sync.ts 📈 +1.4 kB (+6.32%) 22.21 kB → 23.61 kB
home/runner/work/actual/actual/packages/loot-core/src/server/server-config.ts 📈 +42 B (+4.69%) 895 B → 937 B
View detailed bundle breakdown

Added

Asset File Size % Changed
kcab.worker.CGHVGkyK.js 0 B → 4.85 MB (+4.85 MB) -

Removed

Asset File Size % Changed
kcab.worker.CfHq3vDC.js 4.85 MB → 0 B (-4.85 MB) -100%

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged
No assets were unchanged


api

Total

Files count Total bundle size % Changed
1 3.88 MB → 3.89 MB (+3.46 kB) +0.09%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/app.ts 📈 +2.05 kB (+9.56%) 21.46 kB → 23.51 kB
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/sync.ts 📈 +1.37 kB (+6.30%) 21.78 kB → 23.15 kB
home/runner/work/actual/actual/packages/loot-core/src/server/server-config.ts 📈 +41 B (+4.70%) 872 B → 913 B
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
index.js 3.88 MB → 3.89 MB (+3.46 kB) +0.09%

Smaller
No assets were smaller

Unchanged
No assets were unchanged


cli

Total

Files count Total bundle size % Changed
1 7.91 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
cli.js 7.91 MB 0%

crdt

Total

Files count Total bundle size % Changed
1 41.83 kB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
index.js 41.83 kB 0%

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/6041 **Author:** [@ItsThatDude](https://github.com/ItsThatDude) **Created:** 10/31/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `feature/akahu-nz-bank-sync` --- ### 📝 Commits (10+) - [`02be24a`](https://github.com/actualbudget/actual/commit/02be24adb7fd32965b6fdfe289bdfcb71d57c731) add akahu integration for nz banks - [`a94c24b`](https://github.com/actualbudget/actual/commit/a94c24b3b118e44bc8958e739c2dc92679cc5946) akahu fix bank name being set to account name - [`78b6c2b`](https://github.com/actualbudget/actual/commit/78b6c2bac1194e54e00179ca74a784bb568b4530) rename apiToken and fix reset pointing to the wrong function - [`7ee93a4`](https://github.com/actualbudget/actual/commit/7ee93a4bda19e275a792c6fea23613d59012469d) fix apitoken wording in akahu init modal - [`8ae21bb`](https://github.com/actualbudget/actual/commit/8ae21bbac7be3a96e1f80af8e5037b55f761e0a1) add upcoming-release-notes - [`6b8165c`](https://github.com/actualbudget/actual/commit/6b8165c45bf317c8e32b3b5341156f9e6d8b1419) fix lint issues - [`cfbdffb`](https://github.com/actualbudget/actual/commit/cfbdffbf5213bfaf8bd7646bc59c8474d9de5aa4) fix lint issues - [`289a118`](https://github.com/actualbudget/actual/commit/289a1182cf249c49aa7a6c6974e83ef27413b799) Merge branch 'actualbudget:master' into feature/akahu-nz-bank-sync - [`12b29c8`](https://github.com/actualbudget/actual/commit/12b29c808148b630eef4391954b118235cdb6c63) add loan account type to starting balance inversion - [`5be67ad`](https://github.com/actualbudget/actual/commit/5be67ad0d9d78d6fbb4aa934cc79ec16dbec4fed) fix initial sync balance ### 📊 Changes **18 files changed** (+994 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/accounts/mutations.ts` (+41 -0) 📝 `packages/desktop-client/src/components/Modals.tsx` (+4 -0) ➕ `packages/desktop-client/src/components/modals/AkahuInitialiseModal.tsx` (+151 -0) 📝 `packages/desktop-client/src/components/modals/CreateAccountModal.tsx` (+169 -0) 📝 `packages/desktop-client/src/components/modals/SelectLinkedAccountsModal.tsx` (+32 -2) ➕ `packages/desktop-client/src/hooks/useAkahuStatus.ts` (+31 -0) 📝 `packages/desktop-client/src/modals/modalsSlice.ts` (+6 -0) 📝 `packages/loot-core/src/server/accounts/app.ts` (+128 -0) 📝 `packages/loot-core/src/server/accounts/sync.ts` (+64 -0) 📝 `packages/loot-core/src/server/server-config.ts` (+2 -0) ➕ `packages/loot-core/src/types/models/akahu.ts` (+8 -0) 📝 `packages/loot-core/src/types/models/index.ts` (+1 -0) 📝 `packages/sync-server/package.json` (+1 -0) ➕ `packages/sync-server/src/app-akahu/app-akahu.js` (+316 -0) 📝 `packages/sync-server/src/app.ts` (+2 -0) 📝 `packages/sync-server/src/services/secrets-service.js` (+2 -0) ➕ `upcoming-release-notes/6041.md` (+6 -0) 📝 `yarn.lock` (+30 -1) </details> ### 📄 Description Adds the ability to sync with New Zealand banks via Akahu. (https://developers.akahu.nz/docs/getting-started) Akahu are a NZ based fintech company who specialize in open banking and payment/banking interfacing with all major New Zealand banks (along with some other fund/investment providers as well - https://developers.akahu.nz/docs/integrations) I've developed this integration for my own personal use and figured there may be other NZers out there who would benefit from it. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Akahu bank synchronization provider with account linking and account sync (transactions & balances). * Added an Akahu setup modal to enter credentials and manage/reset configuration. * Added Akahu account discovery and selection during account linking flows. * Added Akahu status/check and account-import flows to the server to support in-app linking. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!--- actual-bot-sections ---> <hr /> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 34 | 12.93 MB → 12.94 MB (+10.47 kB) | +0.08% loot-core | 1 | 4.85 MB → 4.85 MB (+3.55 kB) | +0.07% api | 1 | 3.88 MB → 3.89 MB (+3.46 kB) | +0.09% cli | 1 | 7.91 MB | 0% crdt | 1 | 41.83 kB | 0% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 34 | 12.93 MB → 12.94 MB (+10.47 kB) | +0.08% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/components/modals/AkahuInitialiseModal.tsx` | 🆕 +4.56 kB | 0 B → 4.56 kB `src/hooks/useAkahuStatus.ts` | 🆕 +555 B | 0 B → 555 B `src/components/modals/CreateAccountModal.tsx` | 📈 +3.76 kB (+25.07%) | 15 kB → 18.76 kB `src/accounts/mutations.ts` | 📈 +745 B (+5.77%) | 12.61 kB → 13.34 kB `src/components/modals/SelectLinkedAccountsModal.tsx` | 📈 +771 B (+1.87%) | 40.25 kB → 41 kB `src/components/Modals.tsx` | 📈 +125 B (+0.97%) | 12.56 kB → 12.69 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- static/js/index.js | 1.85 MB → 1.86 MB (+9.74 kB) | +0.51% static/js/extends.js | 484.53 kB → 485.26 kB (+745 B) | +0.15% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/BackgroundImage.js | 121.09 kB | 0% static/js/FormulaEditor.js | 814.39 kB | 0% static/js/PayeeRuleCountLabel.js | 52.13 kB | 0% static/js/ReportRouter.js | 1.18 MB | 0% static/js/ScheduleEditForm.js | 136.13 kB | 0% static/js/TransactionEdit.js | 185.13 kB | 0% static/js/TransactionList.js | 82.8 kB | 0% static/js/Value.js | 4.34 MB | 0% static/js/ca.js | 191.72 kB | 0% static/js/chart-theme.js | 709.55 kB | 0% static/js/client.js | 450.92 kB | 0% static/js/da.js | 104.4 kB | 0% static/js/de.js | 174.12 kB | 0% static/js/en-GB.js | 8.2 kB | 0% static/js/en.js | 176.5 kB | 0% static/js/es.js | 181.54 kB | 0% static/js/fr.js | 176.79 kB | 0% static/js/indexeddb-main-thread-worker-e59fee74.js | 13.46 kB | 0% static/js/it.js | 165.68 kB | 0% static/js/narrow.js | 363.68 kB | 0% static/js/nb-NO.js | 151.58 kB | 0% static/js/nl.js | 108.66 kB | 0% static/js/pl.js | 88.34 kB | 0% static/js/pt-BR.js | 193.49 kB | 0% static/js/resize-observer.js | 18.06 kB | 0% static/js/th.js | 178.91 kB | 0% static/js/theme.js | 30.79 kB | 0% static/js/uk.js | 212.28 kB | 0% static/js/useFormatList.js | 7.62 kB | 0% static/js/wide.js | 292 B | 0% static/js/workbox-window.prod.es5.js | 7.33 kB | 0% static/js/zh-Hans.js | 110.19 kB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 4.85 MB → 4.85 MB (+3.55 kB) | +0.07% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `home/runner/work/actual/actual/packages/loot-core/src/server/accounts/app.ts` | 📈 +2.11 kB (+9.68%) | 21.79 kB → 23.89 kB `home/runner/work/actual/actual/packages/loot-core/src/server/accounts/sync.ts` | 📈 +1.4 kB (+6.32%) | 22.21 kB → 23.61 kB `home/runner/work/actual/actual/packages/loot-core/src/server/server-config.ts` | 📈 +42 B (+4.69%) | 895 B → 937 B </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.CGHVGkyK.js | 0 B → 4.85 MB (+4.85 MB) | - **Removed** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.CfHq3vDC.js | 4.85 MB → 0 B (-4.85 MB) | -100% **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** No assets were unchanged </div> </details> --- #### api **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 3.88 MB → 3.89 MB (+3.46 kB) | +0.09% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `home/runner/work/actual/actual/packages/loot-core/src/server/accounts/app.ts` | 📈 +2.05 kB (+9.56%) | 21.46 kB → 23.51 kB `home/runner/work/actual/actual/packages/loot-core/src/server/accounts/sync.ts` | 📈 +1.37 kB (+6.30%) | 21.78 kB → 23.15 kB `home/runner/work/actual/actual/packages/loot-core/src/server/server-config.ts` | 📈 +41 B (+4.70%) | 872 B → 913 B </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- index.js | 3.88 MB → 3.89 MB (+3.46 kB) | +0.09% **Smaller** No assets were smaller **Unchanged** No assets were unchanged </div> </details> --- #### cli **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 7.91 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- cli.js | 7.91 MB | 0% </div> </details> --- #### crdt **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 41.83 kB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- index.js | 41.83 kB | 0% </div> </details> </details> <!--- bundlestats-action-comment key:combined end ---> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-18 08:17:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#32210