Ynab
01README
YNAB API (/v1) read-only source model: discover budgets and accounts, snapshot transactions as canonical BankTxn[] (design §6). YNAB amount in milliunits → decimal (abs), sign → direction (negative == debit). Delta sync via server_knowledge; deleted transactions flagged isDeleted=true.
02Behaviors
@shrug/ynabv2026.07.22.1ynab.ts
fn listBudgets()
Discover YNAB budgets (`GET /budgets`) — the source of budgetIds for
fn listAccounts()
Discover YNAB accounts (`GET /budgets/{budgetId}/accounts`) — the source
fn listTransactions(sinceDate?: string)
Snapshot a budget's transactions as canonical BankTxn[] (§6).
| Argument | Type | Description |
|---|---|---|
| sinceDate? | string | Filter: transactions since date (YYYY-MM-DD) |
fn listTransactionsDelta()
Delta-sync a budget's transactions using YNAB's `last_knowledge_of_server`.
Resources
budgets(infinite)— A snapshot of YNAB budgets (`/budgets`) for budgetId discovery
accounts(infinite)— A snapshot of YNAB accounts (`/budgets/{budgetId}/accounts`) for id discovery
transactions(infinite)— A snapshot of canonical BankTxn[] (§6) for one budget (`/budgets/{budgetId}/transactions`)
serverKnowledge(infinite)— The last known server_knowledge for delta sync (persists across workflow runs)
03Previous Versions
2026.07.21.1
04Stats
A
93 / 100
Downloads
15
Archive size
17.1 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License1/2partial
no SPDX license declared
- Verified public repository2/2earned
Repository
https://github.com/shrugpw/swamp-ynab05Platforms
06Labels