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

Open
opened 2026-04-16 18:17:29 -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, -11 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 (+152 -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 (+135 -9)
📝 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 (+22 -0)

📄 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 27 14.85 MB → 14.86 MB (+12.14 kB) +0.08%
loot-core 1 5.82 MB → 5.82 MB (+4.49 kB) +0.08%
api 1 4.43 MB → 4.44 MB (+3.81 kB) +0.08%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
27 14.85 MB → 14.86 MB (+12.14 kB) +0.08%
Changeset
File Δ Size
src/components/modals/AkahuInitialiseModal.tsx 🆕 +4.66 kB 0 B → 4.66 kB
src/hooks/useAkahuStatus.ts 🆕 +979 B 0 B → 979 B
src/components/modals/CreateAccountModal.tsx 📈 +4.14 kB (+25.90%) 15.98 kB → 20.12 kB
src/accounts/mutations.ts 📈 +1.26 kB (+5.74%) 21.94 kB → 23.2 kB
src/components/modals/SelectLinkedAccountsModal.tsx 📈 +1002 B (+2.26%) 43.25 kB → 44.23 kB
src/components/Modals.tsx 📈 +150 B (+1.04%) 14.13 kB → 14.28 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 9.54 MB → 9.55 MB (+12.14 kB) +0.12%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/indexeddb-main-thread-worker-e59fee74.js 12.94 kB 0%
static/js/workbox-window.prod.es5.js 5.64 kB 0%
static/js/ca.js 188.11 kB 0%
static/js/da.js 106.35 kB 0%
static/js/de.js 180.07 kB 0%
static/js/en-GB.js 7.18 kB 0%
static/js/en.js 170.33 kB 0%
static/js/es.js 174.55 kB 0%
static/js/fr.js 179.6 kB 0%
static/js/it.js 171.16 kB 0%
static/js/nb-NO.js 156.96 kB 0%
static/js/nl.js 106.37 kB 0%
static/js/pl.js 88.37 kB 0%
static/js/pt-BR.js 154.22 kB 0%
static/js/th.js 181.87 kB 0%
static/js/uk.js 214.74 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 120.54 kB 0%
static/js/ReportRouter.js 1.16 MB 0%
static/js/narrow.js 637.77 kB 0%
static/js/TransactionList.js 106.22 kB 0%
static/js/wide.js 164.15 kB 0%
static/js/AppliedFilters.js 9.71 kB 0%
static/js/usePayeeRuleCounts.js 10.04 kB 0%
static/js/useTransactionBatchActions.js 13.23 kB 0%
static/js/FormulaEditor.js 1.04 MB 0%

loot-core

Total

Files count Total bundle size % Changed
1 5.82 MB → 5.82 MB (+4.49 kB) +0.08%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/app.ts 📈 +2.69 kB (+9.87%) 27.28 kB → 29.97 kB
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/sync.ts 📈 +1.75 kB (+6.75%) 25.88 kB → 27.63 kB
home/runner/work/actual/actual/packages/loot-core/src/server/server-config.ts 📈 +50 B (+4.53%) 1.08 kB → 1.13 kB
View detailed bundle breakdown

Added

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

Removed

Asset File Size % Changed
kcab.worker.C2vnwNMt.js 5.82 MB → 0 B (-5.82 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 4.43 MB → 4.44 MB (+3.81 kB) +0.08%
Changeset
File Δ Size
src/server/accounts/app.ts 📈 +2.21 kB (+9.48%) 23.3 kB → 25.51 kB
src/server/accounts/sync.ts 📈 +1.55 kB (+6.72%) 23.1 kB → 24.65 kB
src/server/server-config.ts 📈 +46 B (+4.93%) 933 B → 979 B
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
bundle.api.js 4.43 MB → 4.44 MB (+3.81 kB) +0.08%

Smaller
No assets were smaller

Unchanged
No assets were unchanged


🔄 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, -11 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` (+152 -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` (+135 -9) 📝 `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` (+22 -0) </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 | 27 | 14.85 MB → 14.86 MB (+12.14 kB) | +0.08% loot-core | 1 | 5.82 MB → 5.82 MB (+4.49 kB) | +0.08% api | 1 | 4.43 MB → 4.44 MB (+3.81 kB) | +0.08% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 27 | 14.85 MB → 14.86 MB (+12.14 kB) | +0.08% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/components/modals/AkahuInitialiseModal.tsx` | 🆕 +4.66 kB | 0 B → 4.66 kB `src/hooks/useAkahuStatus.ts` | 🆕 +979 B | 0 B → 979 B `src/components/modals/CreateAccountModal.tsx` | 📈 +4.14 kB (+25.90%) | 15.98 kB → 20.12 kB `src/accounts/mutations.ts` | 📈 +1.26 kB (+5.74%) | 21.94 kB → 23.2 kB `src/components/modals/SelectLinkedAccountsModal.tsx` | 📈 +1002 B (+2.26%) | 43.25 kB → 44.23 kB `src/components/Modals.tsx` | 📈 +150 B (+1.04%) | 14.13 kB → 14.28 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 | 9.54 MB → 9.55 MB (+12.14 kB) | +0.12% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/indexeddb-main-thread-worker-e59fee74.js | 12.94 kB | 0% static/js/workbox-window.prod.es5.js | 5.64 kB | 0% static/js/ca.js | 188.11 kB | 0% static/js/da.js | 106.35 kB | 0% static/js/de.js | 180.07 kB | 0% static/js/en-GB.js | 7.18 kB | 0% static/js/en.js | 170.33 kB | 0% static/js/es.js | 174.55 kB | 0% static/js/fr.js | 179.6 kB | 0% static/js/it.js | 171.16 kB | 0% static/js/nb-NO.js | 156.96 kB | 0% static/js/nl.js | 106.37 kB | 0% static/js/pl.js | 88.37 kB | 0% static/js/pt-BR.js | 154.22 kB | 0% static/js/th.js | 181.87 kB | 0% static/js/uk.js | 214.74 kB | 0% static/js/resize-observer.js | 18.37 kB | 0% static/js/BackgroundImage.js | 120.54 kB | 0% static/js/ReportRouter.js | 1.16 MB | 0% static/js/narrow.js | 637.77 kB | 0% static/js/TransactionList.js | 106.22 kB | 0% static/js/wide.js | 164.15 kB | 0% static/js/AppliedFilters.js | 9.71 kB | 0% static/js/usePayeeRuleCounts.js | 10.04 kB | 0% static/js/useTransactionBatchActions.js | 13.23 kB | 0% static/js/FormulaEditor.js | 1.04 MB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 5.82 MB → 5.82 MB (+4.49 kB) | +0.08% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `home/runner/work/actual/actual/packages/loot-core/src/server/accounts/app.ts` | 📈 +2.69 kB (+9.87%) | 27.28 kB → 29.97 kB `home/runner/work/actual/actual/packages/loot-core/src/server/accounts/sync.ts` | 📈 +1.75 kB (+6.75%) | 25.88 kB → 27.63 kB `home/runner/work/actual/actual/packages/loot-core/src/server/server-config.ts` | 📈 +50 B (+4.53%) | 1.08 kB → 1.13 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.D9S3Qz6_.js | 0 B → 5.82 MB (+5.82 MB) | - **Removed** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.C2vnwNMt.js | 5.82 MB → 0 B (-5.82 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 | 4.43 MB → 4.44 MB (+3.81 kB) | +0.08% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/server/accounts/app.ts` | 📈 +2.21 kB (+9.48%) | 23.3 kB → 25.51 kB `src/server/accounts/sync.ts` | 📈 +1.55 kB (+6.72%) | 23.1 kB → 24.65 kB `src/server/server-config.ts` | 📈 +46 B (+4.93%) | 933 B → 979 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 ----- | --------- | --------- bundle.api.js | 4.43 MB → 4.44 MB (+3.81 kB) | +0.08% **Smaller** No assets were smaller **Unchanged** No assets were unchanged </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-16 18:17:29 -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#24895