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

syli-sdk

v1.0.2

Published

SDK Node.js officiel pour l’API de paiements crypto SYLI (checkout, paiements, webhooks HMAC).

Readme

SDK JavaScript SYLI

Client Node.js (≥ 18) pour l’API SYLI : paiements crypto, checkout hébergé, et vérification des webhooks (x-syli-sig).

Dépôt : Nimba-Algo-Trading/syli-sdk

Serveur uniquement : la clé syli_live_… ne doit jamais partir dans le navigateur.

Installation

Depuis npm (après publication) :

npm install syli-sdk

Depuis ce dépôt GitHub :

npm install github:Nimba-Algo-Trading/syli-sdk

Usage

import { Syli } from "syli-sdk";

const syli = new Syli({
  apiKey: process.env.SYLI_API_KEY,
  // apiUrl: "https://sylipayments.com/api/v1", // défaut
});

const invoice = await syli.createInvoice({
  price_amount: 49.9,
  price_currency: "usdt",
  order_id: "CMD-9001",
  success_url: "https://boutique.example/ok",
  cancel_url: "https://boutique.example/annuler",
  ipn_callback_url: "https://boutique.example/webhooks/syli",
});

// Redirigez le client vers le checkout SYLI
console.log(invoice.invoice_url);

Paiement API (vous affichez l’adresse et le QR) :

const payment = await syli.createPayment({
  price_amount: 20,
  price_currency: "usdt",
  pay_currency: "usdttrc20",
  order_id: "CMD-4821",
  order_description: "Abonnement mensuel",
});

console.log(payment.pay_address, payment.payin_extra_id);
if (payment.payment_id) {
  const latest = await syli.getPayment(payment.payment_id);
}
const status = await syli.getInvoice(invoice.id);
// status.payment_status, status.actually_paid, status.actually_paid_usd

Utilitaires :

await syli.getStatus();
await syli.getCurrencies(); // cryptos du compte (wallet validé, clé envoyée)
await syli.estimate({ amount: 20, currency_from: "usdt", currency_to: "btc" });
await syli.getMinAmount({ currency_from: "usdt", currency_to: "btc" });

CommonJS :

const { Syli } = require("syli-sdk");

Webhooks

Header x-syli-sig = HMAC-SHA512 de JSON.stringify(payload, Object.keys(payload).sort()). Parsez le JSON, puis vérifiez — ne signez pas le body HTTP brut. Répondez 2xx. Livrez si payment_status === "confirmed" (payin client). payout_status = versement wallet.

Express :

import express from "express";
import { Syli, SyliError } from "syli-sdk";

const syli = new Syli({ apiKey: process.env.SYLI_API_KEY });
const app = express();
app.use(express.json());

app.post("/webhooks/syli", (req, res) => {
  try {
    const event = syli.constructEvent(
      req.body,
      req.headers["x-syli-sig"],
      process.env.SYLI_IPN_SECRET,
    );
    if (syli.isPaidStatus(event.payment_status)) {
      // marquer la commande event.order_id comme payée
    }
    res.sendStatus(200);
  } catch (err) {
    const status = err instanceof SyliError ? err.status || 400 : 400;
    res.sendStatus(status);
  }
});

Helpers autonomes :

import { verifySignature, constructEvent, isPaidStatus } from "syli-sdk";

Publier sur npm

npm install
npm run build
npm login
npm publish --access public

Documentation API

https://sylipayments.com/docs/api