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

js-nextgen-psd2

v1.0.0

Published

Library to communicate with European Banks using NextGenPSD2 standard and PSD2 XS2A

Readme

JS-NextGen-PSD2 - XS2A

What is PSD2?

According to Wikipedia, the Revised Payment Services Directive is an EU Directive, administered by the European Commission to regulate payment services and payment service providers throughout the European Union (EU) and European Economic Area (EEA).

What is JS-NextGen-PSD2?

JS-NextGen-PSD2 is a NodeJS library to communicate with European Banks using NextGenPSD2 standard and PSD2 XS2A.

What is NextGenPSD2?

NextGenPSD2 is a european standard for PSD2 XS2A described by The Berlin Group. You can access to all technical documents on The Berlin Group's download page.

How can I use JS-NextGen-PSD2?

Before using the module, you must request a valid eIDAS QWAC certificate from a distinguish certificate authority.

Simple Example

const PSD2Client = require('js-nextgen-psd2')

let client = new PSD2Client(
    // Certificate and private key used for
    // signing requests.
    fs.readFileSync('SigningCertificate.cer'), 
    fs.readFileSync('SigningKey.pem'),
    {
        // Certificate and private key used 
        // for SSL client authentication.
        sslCertificate: fs.readFileSync('SSLCertificate.cer'),
        sslKey: fs.readFileSync('SSLPrivKey.pem'), 
        // HTTP request timeout
        timeout: 16000
    }
)

let response = await client.send(
    'post',
    'https://api.testbank.com/v1/consents',
    {
        'PSU-IP-Address': '192.168.8.78',
        'PSU-User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0'
    }, 
    {
        access: {
            balances: [
                { iban: "DE40100100103307118608" },
                { iban: "DE02100100109307118603", currency: "USD" },
                { iban: "DE67100100101306118605" }
            ],
            transactions: [
                { iban: "DE40100100103307118608" },
                { maskedPan: "123456xxxxxx1234" }
            ]
        },
        recurringIndicator: true,
        validUntil: "2017-11-01",
        frequencyPerDay: "4"
    }
)