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

@getivy/react-sdk

v0.0.5

Published

Ivy checkout react library

Readme

Ivy checkout react SDK

Installation

npm install @getivy/react-sdk

Usage

  1. Import IvyCheckout component and css styles:
import { IvyCheckout } from "@getivy/react-sdk";
import "@getivy/react-sdk/dist/index.css";
  1. Render IvyCheckout component and pass required props:
<IvyCheckout
    checkoutUrl={checkoutUrl}
    displayOptions={{
        type: "embedded",
    }}
    onSuccess={({ redirectUrl, referenceId }) => {
        handleSuccess({ redirectUrl, referenceId });
    }}
    onCancel={({ redirectUrl, referenceId }) => {
        handleCancel({ redirectUrl, referenceId });
    }}
/>

Props

checkoutUrl

checkoutUrl: string Ivy checkout url returned from POST https://api.getivy.de/api/service/checkout/session/create request

displayOptions

displayOptions: {
	type: "embedded" | "modal"
	maxHeight?: number
	maxWidth?: number
}

Configures how the checkout will be rendered:

  • embedded type renders checkout inside a wrapping JSX element inheriting it's height and width.
  • modal type renders checkout as modal covering the current page content independent of the parent element styles
  • maxWidth and maxHeight limits the size of rendered iframe / modal div element. embedded type by default takes 100% height and witdh of parent component. modal default max height is 700px and max width is 520px

onSuccess

onSuccess: (data: { redirectUrl: string, referenceId: string}) => void Callback fired after a successful payment. It provides the success redirectUrl configured in merchant dashboard and referenceId of the successful order.

onCancel

onCancel: (data: { redirectUrl: string, referenceId: string}) => void Callback fired after cancelling payment. It provides the error redirectUrl configured in merchant dashboard and referenceId of the canceled order.

CSS Styles

@getivy/react-sdk/dist/index.css returns some basic styles for rendering embedded and modal IvyCheckout component:

.ivy-embedded-checkout-screen {
  border: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.ivy-modal-content {
  position: fixed;
  z-index: 999999;
  inset: 0;
  color: #000;
  background-color: rgba(10, 10, 10, 0.25);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.ivy-modal-content .ivy-modal-iframe-container {
  border: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  transform: translateZ(0);
  width: 100%;
  height: 100%;
  background-color: transparent;
}
.ivy-modal-content .ivy-modal-checkout-screen {
  border: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100% !important;
  height: 100% !important;
}
@media (min-width: 450px) {
  .ivy-modal-content {
    padding: 16px 32px 32px;
  }
}

@media (max-width: 450px) {
  .ivy-modal-content .ivy-modal-iframe-container {
    border-radius: 0px;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
  }
}