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

yodlee-react-hook

v0.2.0

Published

Yodlee FastLink integration with React hooks

Readme

yodlee-react-hook

Yodlee FastLink 3.0 React hook.

This tiny library helps you to use Yodlee FastLink v3.0 in your React projects.

Installation

# with npm
npm install yodlee-react-hook
# with yarn
yarn add yodlee-react-hook

Usage

Generate accessToken or jwtToken with your clientId, secret and userName on your backend and pass it down to your client below to open iframe.

import { useYodlee } from 'yodlee-react-hook';

const MyComponent = () => {
  const { ready, init } = useYodlee({
    containerId: 'container-fastlink',
    fastLinkOptions: {
      fastLinkURL: 'https://node.sandbox.yodlee.com/authenticate/restserver',
      token: {
        tokenType: 'AccessToken',
        tokenValue: 'foo'
      }
    }
  });

  return (
    <div className="container">
      <div id="container-fastlink"></div>
      { ready ? <button onClick={() => init()}>Open Yodlee</button> : 'Loading...' }
    </div>
  );
}

Test

# with npm
npm run test
# with yarn
yarn test

Details

useYodlee hook arguments:

  • containerId (string): Id for DOM Element to load iframe into.
  • createScriptTag (boolean, default = true): If you set this to false then hook will not add script element to component. It's suitable for react apps having script element already added to the page e.g. <script defer async src="https://cdn.yodlee.com/fastlink/v3/initialize.js"></script>. If you receive cross-origin error from React then this would be the preferred solution for you.
  • fastLinkOptions (FastLinkOptionsType)
    • fastLinkURL (string): FastLink URL to be used. Please see URLs below from Yodlee codepen solution.
      • USA: https://node.sandbox.yodlee.com/authenticate/restserver
      • UK: https://node.sandbox.yodlee.uk/authenticate/uksandbox
      • ANZ: https://sandbox-node.yodlee.com.au/authenticate/anzdevexsandbox
    • token: (TokenType):
      • tokenType: ('AccessToken' | 'JwtToken'): Your token type
      • tokenValue: (string): Your token value
    • userExperienceFlow (UserExperienceFlowType, default = Verification):
      • Verification: Aggregate account profile information required to perform user profile verification.
      • Aggregation: Aggregate account summary-level information and transactions.
      • Aggregation plus Verification: Aggregate account summary-level information and transactions, along with account profile information.
  • onSuccess, onError, onExit, onEvent: Additional callback functions if you would like to add customer implementation.

Please consult to Yodlee fastlink.open() instructions for details.

useYodlee hook return values:

  • init (method): Method to initiate FastLink which creates an iframe
  • ready (boolean): Yodlee FastLink library is loaded or not
  • active (boolean): Init method called or not
  • data (any): Customer data received from onSuccess event
  • error (any): This is the error if Yodlee FastLink intercepts with any error

You can find typescript definitions in index.d.ts file.