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 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-aave

v0.1.0

Published

n8n community node for Aave v4 Protocol - supply, borrow, and manage DeFi positions

Readme

n8n-nodes-aave

This is an n8n community node that integrates with the Aave V4 Protocol, enabling you to query DeFi lending data and execute operations directly from your n8n workflows.

Aave is a decentralized non-custodial liquidity protocol where users can supply assets to earn interest or borrow against collateral.

Features

Protocol & Chains

  • Check API health status
  • List supported chains (with testnet/mainnet filter)
  • Get chain details
  • Get protocol history (deposits, borrows, earnings over time)

Hubs & Spokes

  • List/get hubs with summary data
  • Get hub assets and summary history
  • List/get spokes
  • List position managers

Reserves

  • List reserves with filters (supply, borrow, collateral)
  • Get reserve details including APY and settings

Assets

  • Get asset details by ID or token address
  • Get supply/borrow/price history
  • Get category trends (stablecoin, ETH-correlated)

User Positions

  • List all positions for a user
  • Get position details, summary, and summary history
  • Get wallet balances, supplies, borrows
  • Get risk premium breakdown

Activity

  • List transaction history (supply, borrow, repay, withdraw, liquidated)
  • Check if a transaction has been processed

Market Data

  • Get exchange rates (fiat, native, ERC20)
  • Get supply/borrow APY history for reserves

Swaps

  • Get swap quotes
  • Check swap status
  • List user swaps
  • List swappable tokens

Custom Queries

  • Get Schema: Retrieve full GraphQL schema (perfect for AI agents)
  • Execute Query: Run any GraphQL query directly

Installation

n8n Cloud / Hosted

  1. Go to SettingsCommunity Nodes
  2. Click Install a community node
  3. Enter: n8n-nodes-aave
  4. Click Install

Self-hosted n8n

npm install n8n-nodes-aave

For Development

# Clone the repository
git clone https://github.com/bartomolina/n8n-nodes-aave.git
cd n8n-nodes-aave

# Install dependencies
npm install

# Build
npm run build

# Link to n8n for local development
npm link
cd ~/.n8n/custom
npm link n8n-nodes-aave

Credentials

Aave V4 API (Required)

  • API Endpoint: The GraphQL API endpoint

Aave V4 Wallet (Optional - for write operations)

  • Private Key: Your wallet's private key for signing transactions
  • RPC URL: Optional custom RPC URL

Usage Examples

List Supported Chains

  1. Add Aave V4 node → Resource: Protocol → Operation: List Chains
  2. Optionally filter by testnet/mainnet

Get User Positions

  1. Resource: User Position → Operation: List Positions
  2. Enter Chain ID (e.g., 1 for Ethereum)
  3. Enter User Address (e.g., 0x...)

Get Supply APY History

  1. Resource: Market Data → Operation: Get Supply APY History
  2. Enter Reserve ID
  3. Select Time Window (Last Day, Week, Month, etc.)

Execute Custom GraphQL Query

  1. Resource: Custom Query → Operation: Execute Query
  2. Enter your GraphQL query:
query {
  chains(request: { query: { filter: ALL } }) {
    name
    chainId
    isTestnet
  }
}

AI Agent Integration

This node is designed to work as a tool for AI agents via usableAsTool: true. The Custom Query resource with Get Schema and Execute Query operations allows AI agents to:

  1. Discover available queries by fetching the schema
  2. Dynamically construct and execute queries based on user questions

Perfect for building conversational interfaces that can answer questions like:

  • "What's the current supply APY for USDC?"
  • "Show me protocol deposits over the last month"
  • "Which chain has the most liquidity?"

Development

# Watch mode
npm run dev

# Build
npm run build

# Format code
npm run format

# Lint
npm run lint

License

MIT

Links