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

@thenewkidfromtheblock/crypto-sdk

v1.0.1

Published

Production-ready TypeScript SDK for multi-chain cryptocurrency operations with hardware wallet support

Readme

Multi-Chain Cryptocurrency SDK

Overview

Production-ready TypeScript SDK providing direct access to leading cryptocurrency libraries. Supports Bitcoin, Ethereum, hardware wallets, and secure operations.

Status

Production Ready - All tests passing (14/14)
Security Audited - 0 vulnerabilities
Hardware Wallet Support - Ledger & Trezor integrated
Type-Safe - Full TypeScript support

What's Installed

Core Dependencies

  • Node.js v24.11.0 - JavaScript runtime
  • npm v11.6.1 - Package manager
  • TypeScript - Type-safe development
  • Puppeteer - Browser automation & testing

Cryptocurrency Libraries

  • bip39 - Mnemonic generation/validation
  • bip32 - HD wallet derivation
  • bitcoinjs-lib v7 - Bitcoin transactions
  • ethers v6 - Ethereum operations
  • bs58 - Base58 encoding/decoding
  • @ledgerhq/hw-transport-webhid - Ledger hardware wallet support
  • trezor-connect - Trezor hardware wallet support

Development Tools

  • Jest - Testing framework
  • ESLint - Code linting with security rules
  • Prettier - Code formatting
  • Rollup - Production bundling

Project Structure

src/
├── crypto/          # Core crypto functionality
│   ├── encryption.ts       # AES encryption
│   ├── hashing.ts          # SHA/BLAKE hashing
│   ├── mnemonic.ts         # BIP39 wrappers
│   └── wallet-core.ts      # HD wallet derivation
├── utils/           # Shared utilities
├── crypto-demo.ts   # Usage examples
└── index.ts         # Public API
test/
├── crypto-sdk.test.ts      # Integration tests (10 tests)
dist/                # Production bundle
docs/                # API documentation

Quick Start

Run Demo

npm run demo

Run Tests

npm test

Build Production

npm run build

Usage Examples

See src/crypto-demo.ts for complete examples. Full API documentation in docs/API.md.

Generate Mnemonic

import * as bip39 from "bip39";

const mnemonic = bip39.generateMnemonic();
// Output: "abandon abandon abandon ... about"

Bitcoin Wallet

import { BIP32Factory } from "bip32";
import * as ecc from "tiny-secp256k1";
import * as bitcoin from "bitcoinjs-lib";

const bip32 = BIP32Factory(ecc);
const root = bip32.fromSeed(seed);
const { address } = bitcoin.payments.p2wpkh({
  pubkey: root.derivePath("m/84'/0'/0'/0/0").publicKey,
});

Ethereum Wallet

import { ethers } from "ethers";

const wallet = ethers.Wallet.fromPhrase(mnemonic);
console.log("Address:", wallet.address);
console.log("Private Key:", wallet.privateKey);

Hardware Wallet (Ledger)

import TransportWebHID from "@ledgerhq/hw-transport-webhid";
import AppBtc from "@ledgerhq/hw-app-btc";

const transport = await TransportWebHID.create();
const btc = new AppBtc({ transport });
const result = await btc.getWalletPublicKey("44'/0'/0'/0/0");

Available Scripts

| Script | Description | | ----------------------- | --------------------------- | | npm run demo | Run crypto demo (10 phases) | | npm test | Run all tests | | npm run test:coverage | Generate coverage report | | npm run build | Build production bundle | | npm run lint | Check code quality | | npm run format | Format code with Prettier |

Documentation

Security Features

✅ Hardware wallet support (Ledger, Trezor)
✅ ESLint security plugin enabled
✅ No known vulnerabilities (audit passed)
✅ Type-safe operations
✅ Best practices enforced

Resources

License

MIT