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

sdk-qvapay

v0.0.9

Published

SDK oficial comunitario para la API de QvaPay en TypeScript/JavaScript

Readme

QvaPay SDK para TypeScript/JavaScript

CI License: MIT

SDK oficial (comunitario) para interactuar con la API de QvaPay, diseñado para ser utilizado con Bun, Node.js o en el navegador.

🚀 Características

  • Soporte completo de la API: Incluye endpoints de las versiones v1 y v2.
  • Tipado fuerte: Escrito íntegramente en TypeScript para una mejor experiencia de desarrollo.
  • Validación integrada: Comprobaciones básicas antes de enviar peticiones a la API.
  • Gestión de errores: Sistema de errores detallado para facilitar la depuración.
  • Multiservicio: Dividido en módulos lógicos (Auth, App, P2P, Tienda, etc.).

📦 Instalación

Para instalar el SDK en tu proyecto:

# Con Bun (Recomendado)
bun add sdk-qvapay

# Con NPM
npm install sdk-qvapay

# Con Yarn
yarn add sdk-qvapay

🛠️ Configuración Inicial

Necesitarás tu app_id y app_secret, los cuales puedes obtener creando una aplicación en el panel de desarrollador de QvaPay.

import { QvaPaySDK } from "sdk-qvapay";

const qvapay = new QvaPaySDK({
  appId: "tu_app_id",
  appSecret: "tu_app_secret",
});

📖 Ejemplos de Uso

Crear una Factura (v2)

Esta es la forma recomendada para integrar pagos en tu sitio web.

const invoice = await qvapay.app.createInvoice({
  amount: 5.00,
  description: "Pago de suscripción Premium",
  remote_id: "order_12345",
  webhook: "https://tu-sitio.com/webhook"
});

console.log(`Paga aquí: ${invoice.url}`);

Autenticación de Usuario

Puedes permitir que los usuarios inicien sesión en QvaPay a través de tu aplicación.

try {
  const { user, token } = await qvapay.auth.login({
    email: "[email protected]",
    password: "tu_password"
  });

  console.log(`Bienvenido, ${user.name}. Tu balance es: ${user.balance}`);
} catch (error) {
  console.error("Error al iniciar sesión", error.message);
}

Consultar Balance (Merchant)

const balance = await qvapay.app.getBalance();
console.log(`Balance de la App: ${balance} QUSD`);

Mercado P2P

Listar ofertas disponibles en el mercado.

const offers = await qvapay.p2p.list();
offers.forEach(offer => {
  console.log(`[${offer.type}] ${offer.amount} QUSD por ${offer.receive} ${offer.coin}`);
});

📂 Estructura del SDK

El SDK está organizado en servicios accesibles desde la instancia principal:

  • qvapay.auth: Registro, login, gestión de sesiones y PIN.
  • qvapay.app: Información del comercio, balance y facturación v2.
  • qvapay.invoices: Gestión de facturas v1.
  • qvapay.transactions: Historial y detalles de transacciones.
  • qvapay.me: Perfil del usuario autenticado y transferencias.
  • qvapay.p2p: Creación y aplicación a ofertas P2P.
  • qvapay.store: Tarjetas de regalo y paquetes de telefonía.
  • qvapay.coins: Información de criptomonedas y tasas.
  • qvapay.stocks: Trading de acciones.

🤝 Contribuir

¡Las contribuciones son bienvenidas! Por favor, lee nuestras guías de contribución para empezar.

  1. Haz un Fork del proyecto.
  2. Crea una rama para tu funcionalidad (git checkout -b feature/nueva-funcionalidad).
  3. Haz commit de tus cambios (git commit -m 'Añade nueva funcionalidad').
  4. Haz push a la rama (git push origin feature/nueva-funcionalidad).
  5. Abre un Pull Request.

📄 Licencia

Este proyecto está bajo la Licencia MIT. Consulta el archivo LICENSE para más detalles.


Desarrollado con ❤️ para la comunidad de QvaPay.