npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-ynab-npab19

v1.1.0

Published

n8n node for YNAB (You Need A Budget) API integration with AI Agent support for budgets, accounts, transactions, categories, and payees

Readme

n8n-nodes-ynab

YNAB Logo

Custom n8n node for YNAB (You Need A Budget) API integration. This node allows you to interact with your YNAB budgets, accounts, transactions, categories, and payees directly from n8n workflows.

Features

Supported Resources

  • Budgets: Get all budgets, get single budget, get budget settings
  • Accounts: Get all accounts, get single account, create account
  • Transactions: Get all, get single, create, update, delete transactions
  • Categories: Get all categories, get single category
  • Payees: Get all payees, get single payee
  • User: Get authenticated user information

Authentication

Uses YNAB Personal Access Token for authentication.

Installation

For n8n Cloud or Self-Hosted

Option 1: Install via npm (Recommended)

Once published to npm, you can install this node directly in n8n:

  1. Go to Settings > Community Nodes
  2. Click Install
  3. Enter n8n-nodes-ynab-npab19
  4. Click Install

Option 2: Manual Installation

For self-hosted n8n instances:

# Navigate to your n8n custom nodes directory
cd ~/.n8n/custom

# Clone this repository
git clone https://github.com/YOUR_USERNAME/n8n-nodes-ynab.git

# Install dependencies and build
cd n8n-nodes-ynab
npm install
npm run build

# Restart n8n

For Development

  1. Clone this repository:

    git clone https://github.com/YOUR_USERNAME/n8n-nodes-ynab.git
    cd n8n-nodes-ynab
  2. Install dependencies:

    npm install
  3. Build the node:

    npm run build
  4. Link for local n8n development:

    npm link
    cd ~/.n8n/custom
    npm link n8n-nodes-ynab
  5. Start your local n8n instance and test the node

Usage

Setting up Credentials

Getting Your YNAB API Token

  1. Go to YNAB Account Settings
  2. Click on New Token
  3. Give it a name (e.g., "n8n Integration")
  4. Copy the generated token (you won't be able to see it again!)

Configuring in n8n

  1. In n8n, create new credentials of type "YNAB API"
  2. Paste your YNAB Personal Access Token
  3. Click Test to verify the connection
  4. Click Save

Example Workflow: Get All Budgets

  1. Add a "Manual Trigger" node
  2. Add a "YNAB" node
  3. Configure the YNAB node:
    • Resource: Budget
    • Operation: Get All
    • Include Accounts: true (optional)
  4. Connect the credentials
  5. Execute the workflow

Example Workflow: Create Transaction

  1. Add a trigger node
  2. Add a "YNAB" node
  3. Configure the YNAB node:
    • Resource: Transaction
    • Operation: Create
    • Budget ID: Your budget ID
    • Account ID: Your account ID
    • Date: Transaction date (YYYY-MM-DD)
    • Amount: Amount in milliunits (e.g., 10000 = $10.00)
    • Payee Name: Payee name
    • Memo: Optional memo
    • Cleared: uncleared/cleared/reconciled

Common Use Cases

Budget Monitoring

  • Get all budgets and their balances
  • Monitor spending across categories
  • Track account balances
  • Generate budget reports

Transaction Management

  • Create transactions automatically from external sources
  • Update transaction categories and memos
  • Reconcile transactions programmatically
  • Import transactions from other services

AI-Powered Budgeting

  • Use with n8n's AI Agent for intelligent budget analysis
  • Get spending recommendations based on patterns
  • Automate categorization with AI
  • Generate natural language budget summaries

Automation Examples

  • Auto-categorize recurring transactions
  • Send notifications when budgets are exceeded
  • Sync transactions between multiple budgets
  • Generate monthly spending reports

API Reference

This node implements the YNAB API v1. For more information about YNAB API:

Development

File Structure

.
├── credentials/
│   └── YnabApi.credentials.ts      # YNAB API credentials definition
├── nodes/
│   └── Ynab/
│       ├── Ynab.node.ts            # Main node implementation
│       ├── Ynab.node.json          # Node codex metadata
│       └── ynab.svg                # Node icon
├── dist/                           # Compiled JavaScript (generated)
├── .development/                   # Development test files
├── package.json                    # Node package configuration
└── tsconfig.json                   # TypeScript configuration

Building

npm run build

Linting

npm run lint
npm run lintfix  # Auto-fix issues

Compatibility

  • n8n version: 1.110.1+
  • Node.js: 18.17.0+
  • YNAB API: v1

License

MIT

Support

For issues and questions:

  • YNAB API: https://api.ynab.com
  • n8n Documentation: https://docs.n8n.io

AI Agent Compatibility

This node is fully compatible with n8n's AI Agent (LangChain) and can be used as a tool by AI agents.

Using with AI Agents

  1. Enable Community Package Tool Usage (required for self-hosted n8n):

    export N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true

    Or add to your n8n environment configuration.

  2. Add as a Tool to AI Agent:

    • Add an AI Agent node (Tools Agent type)
    • Connect the YNAB node to the AI Agent's tools input
    • The AI will automatically use YNAB operations when needed
  3. Example AI Agent Use Cases:

    • "What's my total budget balance across all accounts?"
    • "Create a transaction for $50 at Starbucks in my coffee category"
    • "Show me all transactions from last week"
    • "What categories am I overspending in?"
    • "Add a $100 payment to my credit card account"

The AI agent can intelligently select the appropriate YNAB operations (get budgets, create transactions, etc.) based on natural language requests.

AI Agent Workflow Example

Manual Trigger → AI Agent (Tools Agent) → [Connected Tools]
                                            ├─ YNAB Node
                                            └─ Other Tools

The node uses usableAsTool: true to enable AI agent integration, allowing the AI to understand and utilize all available YNAB operations dynamically.