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

web3-direct-pay

v1.0.0

Published

Library eksklusif untuk menerima pembayaran Crypto (USDT & BNB) langsung ke dompet merchant tanpa perantara dan tanpa biaya pihak ketiga.

Readme

Web3 Direct Pay 🚀

Sistem Payment Gateway Desentralisasi Tanpa Pihak Ketiga, Tanpa Potongan Biaya, dan uang masuk langsung ke dompet Anda secara Real-Time!

Dibuat khusus untuk mendukung penerimaan koin di jaringan Binance Smart Chain (BSC / BEP-20).

✨ Fitur Unggulan

  • 💸 0% Biaya Platform: Uang 100% masuk ke dompet merchant. Tidak ada potongan dari pihak manapun (karena tidak ada perantara).
  • Merchant Bebas Gas Fee: Yang membayar biaya transaksi (Gas Fee) hanyalah pembeli. Pemilik toko tidak perlu mengeluarkan BNB sepeser pun untuk mengklaim atau menarik dana.
  • 🕒 Sistem Antrean Unik (FIFO): Dapat menangani ribuan pembeli secara bersamaan menggunakan trik fraksi desimal unik di digit ke-6 atau ke-8.
  • Auto-Expire 5 Menit: Melindungi toko Anda dari kerugian fluktuasi harga kripto dan serangan spam order.
  • 📈 Live Price Oracle: Mengambil harga BNB/USDT secara langsung dari CoinGecko API yang kebal blokir ISP.
  • 📱 QR Code Auto-Fill: Scanner kompatibel untuk TrustWallet dan berbagai Web3 Wallet lainnya.

📦 Instalasi

Anda bisa menginstal library ini ke dalam proyek Anda melalui NPM:

npm install web3-direct-pay

🛠️ Cara Penggunaan Dasar

const CryptoPay = require('web3-direct-pay');

// Inisialisasi dengan alamat dompet penerima (dompet Anda)
const pay = new CryptoPay("0x_ALAMAT_DOMPET_ANDA");

// Membuat Tagihan (Contoh: Harga Barang $5.50)
pay.createInvoice({
  orderId: 'ORDER-001',
  amountUSDT: 5.50
}).then(invoice => {
  console.log("Silakan bayar tagihan ini:", invoice);
});

// Mendengarkan Pembayaran Masuk
pay.on('payment_success', (data) => {
  console.log("HORE! UANG MASUK DARI ORDER:", data.orderId);
  console.log("Nominal Diterima:", data.amount);
});

pay.on('payment_expired', (data) => {
  console.log("Order Dibatalkan (Waktu Habis):", data.orderId);
});

🏃 Menjalankan Demo (Toko Online)

Kami telah menyediakan contoh aplikasi Toko Online (Point of Sales) lengkap dengan UI Scan Barcode dan Hitung Mundur.

  1. Clone repositori ini
  2. Masuk ke folder proyek
  3. Jalankan perintah:
npm run example
  1. Buka http://localhost:3000 di browser Anda.

📝 Lisensi

MIT License


Dibangun secara eksklusif oleh KeraSakti666.