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

crytom-sdk

v1.1.0

Published

Official Node.js SDK for the Crytom Developer API v1 – crypto payments, wallets, invoices, and more.

Readme

Crytom Node.js SDK

The official Node.js library for the Crytom Developer API (v1). Integrate professional crypto payments, per-user wallets, and cross-chain wrapping into your platform with ease.

npm version license

🚀 Features

  • 🛡️ Automatic HMAC Signing: Handles the mandatory X-Crytom-Signature and X-Crytom-Timestamp headers for you.
  • 👛 Per-User Wallets: Provision unique deposit addresses for your customers (USDT, BTC, STX, etc.).
  • 💳 Payments & Checkout: Create hosted checkout sessions or headless invoices.
  • 💸 Payouts & Mass Payouts: Programmatic withdrawals and batch payments.
  • 💱 Real-time Prices: Quote and convert assets (e.g., USDT to BTC) inside your dashboard balance.
  • ⛓️ Smart Contract Bridge: Programmatic access to Burn & Mint wrapping (e.g., BTC to wBTC on Solana).
  • TypeScript First: Full type definitions for all requests and responses.

📦 Installation

npm install crytom-sdk
# or
yarn add crytom-sdk

🛠️ Getting Started

Initialize the client with your Secret Key. Use an sk_test_ key for Sandbox and sk_live_ for production.

const { Crytom } = require('crytom-sdk');

const crytom = new Crytom({
  secretKey: 'sk_test_51P...' // Found in your Crytom Dashboard
});

1. Create a Wallet for a Customer

Perfect for credit-system apps where each user needs a personal deposit address.

async function setupUserWallet(userId) {
  try {
    const wallet = await crytom.wallets.create({
      customer_id: userId,
      currency: 'USDT',
      network: 'BSC',
      label: 'Main Deposit Wallet'
    });

    console.log(`Deposit Address: ${wallet.data.deposit_address}`);
  } catch (error) {
    console.error('Wallet creation failed:', error.message);
  }
}

2. Create a Checkout Session

Generate a URL to redirect your customers for payment.

const session = await crytom.checkout.createSession({
  amount: 25.00,
  currency: 'USD',
  product_name: 'Premium Subscription',
  success_url: 'https://yoursite.com/success',
  cancel_url: 'https://yoursite.com/cart',
  customer_id: 'user_123' // reconcile automatically
});

// Redirect the user
console.log(session.data.checkout_url);

3. Smart Contract Bridge (Burn & Mint)

Bridge assets between chains programmatically.

const bridge = await crytom.smartContract.mint({
  from_asset: 'BTC',
  from_chain: 'Bitcoin',
  to_chain: 'Solana',
  destination_address: 'DYw8...',
  amount: 0.05
});

console.log(`Lock TX: ${bridge.data.lock_tx_hash}`);
console.log(`Mint TX: ${bridge.data.mint_tx_hash}`);

📖 API Reference

  • crytom.walletscreate, list, retrieve, deposit, withdraw, aggregatedBalance, lookup, supported
  • crytom.payoutscreate, mass, verify, retrieve, list, estimateFee, minAmount
  • crytom.pricesestimate, convert, listConversions
  • crytom.checkoutcreateSession, retrieveSession, verifySession
  • crytom.invoicescreate, retrieve
  • crytom.paymentslist, retrieve, minAmount
  • crytom.smartContractlistRoutes, mint, retrieveStatus

🔒 Security Note

  • Never expose your Secret Key on the client-side (frontend). This SDK is intended for backend use only (Node.js).
  • All requests are automatically signed via HMAC-SHA256 to prevent tampering and replay attacks.

📄 License

MIT © Crytom