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

@freezeradar/wallet-kit

v1.0.0

Published

Fail-open pre-send address check helper for dApp transfer forms (<10 KB gzip core)

Readme

@freezeradar/wallet-kit

Fail-open pre-send helper for dApp transfer forms. Checks whether a destination address is frozen/blacklisted by a stablecoin issuer or sanctioned via FreezeRadar — before the user signs.

Core bundle target: <10 KB gzip. Never handles private keys or seed phrases.

Setup

npm install @freezeradar/wallet-kit

Optional peers for framework helpers:

npm install viem          # @freezeradar/wallet-kit/viem
npm install wagmi react   # @freezeradar/wallet-kit/wagmi
npm install tronweb       # @freezeradar/wallet-kit/tronweb

Local development:

npm install
npm run lint
npm test
npm run build
npm run size

Usage

import {
  checkAddress,
  guardTransfer,
  poweredByHref,
  poweredByLabel,
  TransferBlockedError,
} from "@freezeradar/wallet-kit";

const result = await checkAddress({
  address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  chain: "ethereum",
});

// result.decision: "allow" | "review" | "block"
// result.failedOpen: true if the API was unreachable (never blocks)

try {
  await guardTransfer({ address: recipient, chain: "ethereum" });
  await sendFunds(recipient);
} catch (err) {
  if (err instanceof TransferBlockedError) {
    // Show err.result.reportUrl — do not send
  }
}

// Attribution (free tier)
<a href={poweredByHref()}>{poweredByLabel()}</a>

Viem

import { wrapWalletClient } from "@freezeradar/wallet-kit/viem";

const client = wrapWalletClient(walletClient, { chain: "ethereum" });
// sendTransaction / writeContract check recipient (transfer) or spender (approve)

Wagmi

import {
  useFreezeRadarCheck,
  guardWriteContract,
} from "@freezeradar/wallet-kit/wagmi";

const { result, loading } = useFreezeRadarCheck(to, "ethereum");
await guardWriteContract(
  { functionName: "transfer", args: [to, amount] },
  { chain: "ethereum" },
);

TronWeb

import { guardTrc20Transfer } from "@freezeradar/wallet-kit/tronweb";

await guardTrc20Transfer(contract, { to, amount, chain: "tron" });

See examples/ for RainbowKit/wagmi, viem, and TronWeb sketches.

Configuration

| Option | Default | Notes | | --- | --- | --- | | chain | required | ethereum, tron, bsc, polygon, solana, base, arbitrum, optimism, avalanche | | timeoutMs | 2500 | Fail-open on timeout | | signal | — | AbortSignal; combined with timeout | | cacheTtlMs | 60000 | In-memory TTL; 0 disables | | useQuickCheck | false | Opt into POST /api/v1/quick-check | | apiKey | — | Bearer key for quick-check (server-side only) | | onError | — | Called when the check fails open | | apiBase | https://freezeradar.com | Override for tests/staging |

Public API (no key):

  • GET /api/widget/check?address=…&chain=… → { ok, data: { address, chain, blacklisted, sanctioned } }
  • Report: https://freezeradar.com/scan?address=…

Optional authenticated (off by default):

  • POST /api/v1/quick-check with Authorization: Bearer <api key>, body { address, chain? }
  • Returns { decision: allow\|review\|block, riskLevel, reportUrl, … }
  • Falls back to the public widget check on failure

Fail-open: if FreezeRadar is unreachable, the decision is allow with failedOpen: true and an optional warning. Never block the user on an outage.

Partnership copy for wallets/dApps: docs/PARTNERS.md.

Listing / distribution steps

Owner checklist (do not publish until ready):

  1. Confirm @freezeradar npm org access and NPM_TOKEN.
  2. Run npm run lint && npm test && npm run build && npm run size on a clean tree.
  3. Set "publishConfig": { "access": "public" } if the org defaults to private.
  4. npm publish --access public from a tagged release (owner only).
  5. Link the package from https://freezeradar.com/developers and partner docs.
  6. Keep free-tier integrations showing Powered by FreezeRadar → https://freezeradar.com.
  7. Optional: publish example snippets to a public gist or docs site — no outreach emails without approval.

Scripts

| Script | Purpose | | --- | --- | | npm run lint | ESLint | | npm test | Vitest | | npm run build | tsup (ESM + CJS + types) | | npm run size | Gzip size gate for dist/index.js (<10 KB) | | npm run typecheck | tsc --noEmit |

License

MIT © FreezeRadar