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

@vetaui/payments-kit

v0.1.2

Published

Veta payments — provider-agnostic checkout abstraction with adapters for MercadoPago, Stripe, Yape, Plin + UI components.

Readme

@vetaui/payments-kit

LATAM-first payment integration for Veta. One unified checkout API for MercadoPago, Stripe, Yape, and Plin — two lines of code, any provider.

Install

pnpm add @vetaui/foundations @vetaui/atoms @vetaui/payments-kit

Add the provider SDK you need:

pnpm add mercadopago     # MercadoPago
pnpm add stripe          # Stripe

Setup

// app/providers.tsx
import { configureVeta } from "@vetaui/foundations/runtime";
import { mercadoPago } from "@vetaui/payments-kit";

configureVeta({
  payments: mercadoPago({ accessToken: process.env.MP_ACCESS_TOKEN! }),
});

Checkout button

import { createCheckout } from "@vetaui/payments-kit";
import { CheckoutPage } from "@vetaui/payments-kit/screens";

<CheckoutPage
  items={[
    {
      id: "plan-pro",
      name: "Pro Plan",
      quantity: 1,
      price: { amount: 29, currency: "USD" },
    },
  ]}
  methods={["card", "yape", "plin"]}
  onPlaceOrder={async ({ items, method }) => {
    const session = await createCheckout({
      reference: crypto.randomUUID(),
      items,
      method,
      successUrl: "https://app.example.com/billing/success",
      cancelUrl: "https://app.example.com/billing/cancel",
    });
    window.location.href = session.url;
  }}
/>;

Wallet settlement lookup

Yape and Plin integrations normally reconcile through your own backend settlement/webhook store. Pass lookupCharge so Veta screens can read the real charge state instead of the deterministic pending fallback:

import { yape } from "@vetaui/payments-kit/providers";

export const payments = yape({
  merchantPhone: process.env.YAPE_PHONE!,
  merchantName: "Veta Store",
  lookupCharge: async (id) => db.walletCharges.findById(id),
});

Money utilities

import { formatMoney, addMoney, mulMoney } from "@vetaui/payments-kit";

formatMoney({ amount: 2900, currency: "ARS" }); // → "$ 2.900"
formatMoney({ amount: 29, currency: "USD" }); // → "$29.00"

Supported providers

| Provider | Currency | Region | | ----------- | --------------------------------- | ------ | | MercadoPago | ARS / BRL / CLP / COP / MXN / PEN | LATAM | | Stripe | USD / EUR / GBP + 130 more | Global | | Yape | PEN | Peru | | Plin | PEN | Peru |

Exports

| Export | Description | | ------------------------ | ------------------------------------------------------------- | | PaymentButton | Checkout button — handles redirect / modal per provider | | CheckoutPage | Drop-in cart → shipping → payment → review flow | | BillingHistory | Import from @vetaui/payments-kit/screens for invoice tables | | SubscriptionManagement | Import from @vetaui/payments-kit/screens for billing settings | | mercadoPago | MercadoPago provider factory | | stripeProvider | Stripe provider factory | | yape | Yape provider factory | | plin | Plin provider factory | | formatMoney | Locale-aware money formatter | | addMoney | Safe money addition (avoids floating-point) | | mulMoney | Safe money multiplication |

License

MIT — Dambert Munoz