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

@brinkninja/widgets

v0.4.2

Published

<!-- markdownlint-disable-next-line --> <p align="center"> <a href="https://www.brink.trade/" rel="noopener" target="_blank"><img width="150" height="133" src="https://assets-global.website-files.com/64c6ba8200072e09e3a06be3/64c6ba8200072e09e3a06d8c_bri

Downloads

24

Readme

Installing the widgets

Install the Brinkninja Widget npm package:

npm install @brinkninja/widgets

or

yarn install @brinkninja/widgets

or

pnpm add @brinkninja/widgets

Adding widget to React application

After installing the npm package as outlined in , add the widget into your React app:

import { RecurringSwapWidget } from '@brinkninja/widgets'
// ...

<RecurringSwapWidget
  apiKey="apiKey"
  apiKeyName="apiKeyName"
  appName="apiKeyName"
  // other config options
/>

Widget customization

To customize the widget's theme interactively, visit the Brink Widget Studio. Copy paste the config code snippet into your code via Copy React Snippet button

or

check our widgets docs @TODO.

Customization example

  import { RecurringSwapWidget } from '@brinkninja/widgets'

  <RecurringSwapWidget
    apiKey="apiKey"
    axiosBaseUrl="axiosBaseUrl"
    apiKeyName="apiKeyName"
    appName="appName"
    theme={{
      mode: 'light',
      shape: {
        roundedBtn: '100px',
        roundedBox: '0px',
        roundedFormField: '12px'
      },
      config: {
        syncFieldColorWithText: true
      },
      slot: {
        tabsInContainer: true
      },
      component: {
        message: {
          outline: '2px solid #000000',
          backgroundColor: 'white'
        }
      },
      colors: {
        primary: {
          '100': '#fff5fc',
          '200': '#e4b2d0',
          '300': '#d993bd',
          '400': '#c864a0',
          main: '#c864a0',
          '500': '#bd448d',
          '600': '#843063',
          '700': '#732956'
        },
        secondary: {
          '100': '#FAF0FF',
          '200': '#A251D7',
          '300': '#8C2CC6',
          '400': '#6A00A3',
          main: '#BE33FF',
          '500': '#590073',
          '600': '#3E0050',
          '700': '#360046'
        },
        neutral: {
          '100': '#ffffff',
          '200': '#f6f6f6',
          '300': '#ededed',
          '400': '#a5a5a5',
          main: '#a5a5a5',
          '500': '#7e7e7e',
          '600': '#535353',
          '700': '#222222'
        },
        informative: {
          '100': '#e6eff9',
          '200': '#96bfe5',
          '300': '#6ba4da',
          '400': '#2b7dca',
          main: '#2b7dca',
          '500': '#0062bf',
          '600': '#004586',
          '700': '#003c75'
        },
        error: {
          '100': '#f5d6d6',
          '200': '#ebbaba',
          '300': '#e29e9e',
          '400': '#d67474',
          main: '#d67474',
          '500': '#ce5757',
          '600': '#903d3d',
          '700': '#7d3535'
        },
        success: {
          '100': '#ecf9f2',
          '200': '#b2e4c9',
          '300': '#93d9b2',
          '400': '#64c991',
          main: '#64c991',
          '500': '#44bd7c',
          '600': '#308556',
          '700': '#29744b'
        },
        warning: {
          '100': '#fcf3e6',
          '200': '#f3cd96',
          '300': '#eeb96b',
          '400': '#e69b2b',
          main: '#e69b2b',
          '500': '#e08600',
          '600': '#9e5e00',
          '700': '#895200'
        },
        text: {
          primary: '#000000',
          secondary: '#7F7F7F',
          disabled: '#A5A5A5'
        }
      }
    }}
  />