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 🙏

© 2024 – Pkg Stats / Ryan Hefner

n8n-nodes-swan-io

v0.1.0

Published

N8n node for Swan API

Downloads

30

Readme

Banner image

n8n-nodes-swan-io

mit licence npm version

This is an n8n community node. It lets you use Swan.io API in your n8n workflows.

Use Swan's APIs to embed white-labeled banking features like accounts, cards, and payments into your workflows and UX.

n8n is a fair-code licensed workflow automation platform.

Installation

Follow the installation guide in the n8n community nodes documentation.

You can also test and/or run it locally by using

$ yarn start
# --- or ---
$ npm start

Credentials

  • Swan User Access Token (OAuth2 - Authorization code)
  • Swan Project Access Token (OAuth2 - Client Credentials)

More information on the related section of the Swan.io documentation

How to

  1. First, from the Swan's dashboard, Tab Developers, get your client ID and your client Secret (section OAuth 2.0 Credentials)

Step 1

  1. Then, in n8n, add new credentials and select one of the Swan's credentials

Step 2

  1. Then fill the form with the Swan's credentials saved in the 1.

  2. Get back in the Swan's dashboard and add the n8n redirect URI in the Redirect URIs section

Step 3

  1. It's done, you can try to connect your n8n instance to Swan

Operations

Swan node

You will be able to request the Swan's GraphQL API

For convenience, some basic operation are available directly

  • Query - Account : Get an account by ID
  • Query - Transaction : Get a transaction by ID
  • Mutation - Update Account : Update account name by ID
  • Mutation - InitiateCreditTransfers : Initiate one (or several) Credit Transfer(s)
  • Mutation - GrantConsentWithServerSignature : Consent a sensitive operation, like InitiateCreditTransfers, through the server-to-server consent feature

But you should also be able to request anything via the Custom operation, by writing your own query/mutation

How to

  1. First, add a Swan node in your workflow

Step 1

  1. Now, you can choose the relevant operation in your context (already no-code ready, or by specifying your GraphQL query)

Step 2

  1. It's done, you can now using this node to interact with the Swan's API

SwanTrigger node

You will be able to receive all event dispatched by the Swan's webhook

How to

  1. First, add a SwanTrigger node in your workflow and copy the webhook generated URL

Step 1

  1. Then, go the the Swan's dashboard and add a new webhook with the n8n webhook url as target, and expected events.

Step 2

You can test the flow by sending test event from the dashboard

  1. Your webhook is now listed and enabled in the Dashboard

Step 3

  1. It's done, you can now receiving events from Swan in your n8n workflows

Resources