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

@latiscript/yuno-react

v1.0.5

Published

> ⚠️ **DISCLAIMER**: This is NOT the official Yuno SDK. This is an unofficial React wrapper for the Yuno payment platform. For the official SDK and support, please visit [Yuno's official documentation](https://docs.yuno.com).

Downloads

56

Readme

@latiscript/yuno-react

⚠️ DISCLAIMER: This is NOT the official Yuno SDK. This is an unofficial React wrapper for the Yuno payment platform. For the official SDK and support, please visit Yuno's official documentation.

A React SDK for integrating Yuno payment solutions into your React applications. This package provides a simple and efficient way to implement Yuno's payment processing capabilities in your React projects.

Features

  • Easy integration with React applications
  • TypeScript support
  • Context-based state management
  • Customizable checkout experience
  • Multiple payment method support
  • Full and Lite checkout modes

Requirements

  • React 16.8.0 or higher
  • A valid Yuno API key

Installation

Choose your preferred package manager:

# Using npm
npm install @latiscript/yuno-react

# Using Yarn
yarn add @latiscript/yuno-react

# Using pnpm
pnpm add @latiscript/yuno-react

Note: For backend integration, you can use our unofficial Node.js SDK (@latiscript/yuno-node).

Configuration

1. Add your Yuno Public API Key

Create or modify your .env file:

VITE_PUBLIC_API_KEY=your_yuno_public_api_key_here

Usage

1. Initialize Yuno Provider

Wrap your application with the YunoProvider at the root level:

import { YunoProvider } from "@latiscript/yuno-react";

function App() {
  return (
    <YunoProvider
      countryCode="CO"
      language="es"
      publicApiKey={import.meta.env.VITE_PUBLIC_API_KEY}
    >
      <YourApp />
    </YunoProvider>
  );
}

export default App;

2. Using the Full Checkout Component

The Full component provides a complete checkout experience:

import { Full, useYuno } from "@latiscript/yuno-react";

export default function CheckoutComponent() {
  const { yuno, isLoading } = useYuno();

  const handlePayment = () => {
    if (!isLoading && yuno?.startPayment) {
      yuno.startPayment();
    }
  };

  return (
    <div className="checkout-container">
      <Full
        className="w-1/2"
        config={{
          checkoutSession: "your_checkout_session_id",
          yunoCreatePayment: async (ott) => {
            // Handle payment creation with your backend
            const response = await fetch("/api/payments", {
              method: "POST",
              headers: { "Content-Type": "application/json" },
              body: JSON.stringify({
                token: ott,
                // Add other payment details
              }),
            });
            const data = await response.json();

            if (data.checkout.sdk_action_required) {
              yuno?.continuePayment();
            }
          },
        }}
      />
      <button onClick={handlePayment}>Pay Now</button>
    </div>
  );
}

3. Using the Lite Checkout Component

For a more compact checkout experience, use the Lite component:

import { Lite, useYuno } from "@latiscript/yuno-react";

export default function LiteCheckoutComponent() {
  const { yuno, isLoading } = useYuno();

  return (
    <div className="checkout-container">
      <Lite
        config={{
          checkoutSession: "your_checkout_session_id",
          yunoCreatePayment: async (ott) => {
            // Handle payment creation
            // Similar to Full component implementation
          },
        }}
        mount={
          {
            // Additional mount options if needed
          }
        }
      />
    </div>
  );
}

API Reference

YunoProvider Props

| Prop | Type | Required | Description | | ------------ | ------ | -------- | ------------------------------------------- | | publicApiKey | string | Yes | Your Yuno public API key | | countryCode | string | Yes | Country code for the checkout (e.g., "CO") | | language | string | Yes | Language code for the checkout (e.g., "es") |

Components

Full Component Props

| Prop | Type | Required | Description | | --------- | ------ | -------- | ------------------------------------- | | config | object | Yes | Configuration object for the checkout | | mount | object | No | Additional mount options | | className | string | No | CSS class name for the container |

Lite Component Props

| Prop | Type | Required | Description | | ------ | ------ | -------- | ------------------------------------- | | config | object | Yes | Configuration object for the checkout | | mount | object | No | Additional mount options |

useYuno Hook

Returns an object with:

  • yuno: The Yuno client instance
  • isLoading: Boolean indicating if the client is still initializing

Contributing

We welcome contributions! Please see our Contributing Guide for more details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For issues, bugs, or feature requests, please open an issue in our GitHub repository. For official Yuno support, please visit Yuno's official documentation.