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

tranzguard-sdk

v1.0.0

Published

TranzGuard crypto address verification SDK — verify any wallet address against 44 real-time threat feeds before signing.

Readme

tranzguard-sdk

Crypto address verification SDK for TranzGuard's public API.

npm install tranzguard-sdk

Quick start

import TranzGuard from 'tranzguard-sdk'

const tg = new TranzGuard()
const result = await tg.verifyAddress({
  address: '0x71C7656EC7ab88b098defB751B7401B5f6d8976F',
  chain: 'ethereum',
})

if (!result.safe) {
  console.warn('Block transaction:', result.flags, result.recommendation)
}

With API key (10K req/day)

const tg = new TranzGuard({ apiKey: process.env.TRANZGUARD_API_KEY })

Email [email protected] for an API key.

Supported chains

ethereum, bitcoin, solana, tron, bnb, polygon, arbitrum, optimism, avalanche, base.

Result shape

type VerifyResult = {
  address: string
  chain: Chain
  safe: boolean             // true if risk_score < 30
  risk_score: number        // 0..100, higher = riskier
  flags: string[]           // ['known_drainer', 'tornado_cash_connected', …]
  sources: string[]         // ['tranzguard_db', 'cisa_kev', 'ofac_sdn', …]
  recommendation: string
  latency_ms: number
  checked_at: string        // ISO 8601
  powered_by: string
}

Rate-limit awareness

After every call, tg.lastRateLimit is populated with { limit, remaining, resetAt } parsed from the X-RateLimit-* response headers. On 429 the SDK throws a TranzGuardError whose retryAfterSeconds field is set from the Retry-After header.

import { TranzGuardError } from 'tranzguard-sdk'

try {
  const r = await tg.verifyAddress({ address, chain })
} catch (e) {
  if (e instanceof TranzGuardError && e.status === 429) {
    console.warn(`Rate-limited, retry in ${e.retryAfterSeconds}s`)
  }
}

Browser usage

The SDK uses the global fetch. Works in any modern browser, in service workers, in Node 18+, in Cloudflare Workers, in Deno, and in React Native.

Custom fetch / proxy / Node 16 fallback

import nodeFetch from 'node-fetch'

const tg = new TranzGuard({
  fetch: nodeFetch as unknown as typeof fetch,
  timeoutMs: 5_000,
})

License

MIT