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

@vkx/pay

v0.1.0

Published

Aceite cripto no seu site em minutos. Cobre em reais, receba direto na sua carteira — split atômico on-chain, webhook assinado, zero blockchain no seu código.

Readme

VKX Pay — aceite cripto no seu site

Cobre em reais, receba cripto direto na sua carteira. O split é atômico on-chain (sua parte e a taxa numa única transação — ou tudo, ou nada), a confirmação chega por webhook assinado, e o seu código nunca toca em blockchain.

Começar

1. Crie sua conta em vkxtech.com.br/pay (login com Google), cadastre a carteira onde quer receber e copie as 2 credenciais (sk_vkxpay_... e whsec_...).

2. Instale:

npm install @vkx/pay

3. No seu servidor, crie a cobrança e mande o cliente pro checkout:

const { createPaymentIntent } = require('@vkx/pay');

app.post('/api/pagar', async (req, res) => {
  const payment = await createPaymentIntent({
    apiKey: process.env.VKX_PAY_SECRET_KEY,
    amount: '199.90',            // reais
    orderId: req.body.orderId,   // o id do pedido NO SEU sistema
  });
  res.json({ checkoutUrl: payment.checkoutUrl });
});

4. Receba a confirmação (webhook):

const { constructWebhookEvent } = require('@vkx/pay');

app.post('/webhooks/vkx', express.raw({ type: '*/*' }), (req, res) => {
  const event = constructWebhookEvent({
    secret: process.env.VKX_PAY_WEBHOOK_SECRET,
    body: req.body,
    signature: req.headers['x-vkx-signature'],
  });
  if (event.event === 'payment.completed') liberarPedido(event.data.orderId);
  res.sendStatus(200);
});

Pronto. O cliente escolhe no checkout hospedado como pagar (USDT, USDC, USD1 ou moeda nativa; MetaMask, Trust, VKX Wallet...), e você recebe na sua carteira, sem custódia da VKX.

Como funciona o dinheiro

  • Você define o preço em reais. O cliente paga o valor cotado no momento + o spread da rede — o spread é sempre do cliente.
  • Da sua parte sai só a taxa VKX de 1%. Exemplo: produto de R$100 pago em USDT → o cliente paga ~18,45 USDT, você recebe 17,82 USDT (R$99), tudo numa única transação on-chain.
  • Sem chargeback: cripto confirmada é final.

Status de uma cobrança

OPEN → PENDING → PAID (ou EXPIRED / CANCELED). Devolveu por fora? Marque REFUNDED_EXTERNAL no painel para a conciliação fechar.

Suporte

Fale com a equipe VKX citando o id da cobrança (pay_...).