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

@xpaylabs/node-sdk

v0.1.4

Published

Self-hosted, non-custodial crypto payment gateway SDK for Node.js. Accept USDT/USDC on TRON TRC20, EVM chains (Ethereum, BNB Chain, Polygon, Arbitrum, Optimism, Base), and SUI with zero gateway fees.

Readme

XPay Labs Node.js SDK — 自托管加密货币支付网关 Node.js 开发包

English | 中文

XPay Labs Node.js SDKXPay Labs 自托管、非托管加密货币支付网关的官方 Node.js/TypeScript 客户端。支持在 TRON (TRC20)、20+ EVM 链(Ethereum、BNB Chain、Polygon、Arbitrum、Optimism、Base)和 SUI 上接收 USDT/USDC 支付,零网关手续费。

本 SDK 为 Node.js 开发者提供完整的 XPay Labs REST API 访问能力 — 创建收款/付款订单、验证 HMAC 签名 Webhook、查询支持的代币,私钥始终保留在你的基础设施上。

功能特性

  • 创建加密货币收款订单(商户接收加密货币)
  • 创建加密货币付款订单(商户发送加密货币)
  • 实时订单状态查询
  • HMAC-SHA256 Webhook 签名验证
  • 完整的 TypeScript 类型定义
  • 可配置超时的 Axios HTTP 客户端
  • 全面的错误处理

安装

npm install @xpaylabs/node-sdk
# 或者
yarn add @xpaylabs/node-sdk

快速开始

import { XPay } from '@xpaylabs/node-sdk';

const xpay = new XPay({
  apiKey: 'your-api-token',
  apiSecret: 'your-api-secret',
  baseUrl: 'https://api.xpaylabs.com',
});

async function createCollection() {
  const collection = await xpay.createCollection({
    amount: 50,
    symbol: 'USDT',
    chain: 'TRON',
    orderId: `order-${Date.now()}`,
    uid: 'user123',
  });
  console.log('Collection address:', collection.data?.address);
}

API 参考

配置

const xpay = new XPay({
  apiKey: 'your-api-token',
  apiSecret: 'your-api-secret',
  baseUrl: 'https://api.xpaylabs.com',
  timeout: 30000,
});

付款订单

创建商户向用户发送加密货币的订单。

收款订单

创建商户从用户接收加密货币的订单。

订单状态

查询指定订单的当前状态。

支持的币种

获取平台支持的所有加密货币和链。

Webhook

验证和解析 Webhook 通知,支持 HMAC-SHA256 签名验证。

相关资源

许可证

MIT