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

am-i-exposed

v0.34.3

Published

Bitcoin privacy scanner - analyze transactions, addresses, and wallets for chain analysis exposure

Readme

am-i-exposed

Bitcoin privacy scanner for the command line. Analyze transactions, addresses, wallets, and PSBTs for chain analysis exposure.

npx am-i-exposed scan tx <txid> --json

32 transaction heuristics, 12 chain analysis modules, Boltzmann entropy (Rust/WASM), entity matching against 364+ known entities (30M+ addresses). All analysis runs locally.

Web App | Agent Docs | Source

Install

npm install -g am-i-exposed

Requires Node.js >= 20. Or use npx am-i-exposed without installing.

Commands

# Transaction privacy scan (25 heuristics + entity detection)
am-i-exposed scan tx <txid> --json

# Address exposure analysis
am-i-exposed scan address <addr> --json

# Wallet audit via xpub/zpub/descriptor
am-i-exposed scan xpub <zpub> --json

# PSBT analysis BEFORE broadcasting (zero network access)
am-i-exposed scan psbt <file_or_base64> --json

# Boltzmann entropy + link probability matrix
am-i-exposed boltzmann <txid> --json

# Multi-hop chain tracing (entity proximity, taint)
am-i-exposed chain-trace <txid> --depth 3 --json

# MCP server for AI agents (Claude Desktop, Cline, etc.)
am-i-exposed mcp

Flags

| Flag | Description | |------|-------------| | --json | Structured JSON output | | --fast | Skip parent tx context (~6s instead of ~10s) | | --network <net> | mainnet / testnet4 / signet | | --api <url> | Custom mempool API (self-hosted, Umbrel) | | --no-cache | Disable SQLite response caching | | --no-entities | Skip entity filter loading |

JSON Output

All commands with --json return:

{
  "score": 95,
  "grade": "A+",
  "txType": "whirlpool-coinjoin",
  "findings": [
    {
      "id": "h4-whirlpool",
      "severity": "good",
      "title": "Whirlpool CoinJoin detected",
      "scoreImpact": 30,
      "confidence": "deterministic"
    }
  ],
  "recommendation": {
    "urgency": "when-convenient",
    "headline": "Maintain UTXO separation"
  }
}

Grades

| Grade | Score | Meaning | |-------|-------|---------| | A+ | 90-100 | Excellent privacy | | B | 75-89 | Good privacy | | C | 50-74 | Moderate exposure | | D | 25-49 | Poor privacy | | F | 0-24 | Severe exposure |

Agent Integration

CLI (any agent)

npx am-i-exposed scan tx <txid> --json | jq '.grade'

MCP Server (Claude Desktop, Claude Code, Cline)

{
  "mcpServers": {
    "bitcoin-privacy": {
      "command": "npx",
      "args": ["-y", "am-i-exposed", "mcp"]
    }
  }
}

5 tools: scan_transaction, scan_address, scan_psbt, scan_wallet, compute_boltzmann

Agent Workflows

Pre-broadcast check - analyze a PSBT before signing:

am-i-exposed scan psbt /tmp/tx.psbt --json
# If .grade is D or F, modify coin selection and retry

Transaction forensics - scan with chain tracing:

am-i-exposed scan tx <txid> --json --chain-depth 3
# Check .findings for entity proximity and taint

Wallet audit - check for address reuse and UTXO hygiene:

am-i-exposed scan xpub <zpub> --json --gap-limit 30
# .walletInfo.reusedAddresses should be 0

Performance

| Mode | Time | |------|------| | --fast --no-entities | ~5s | | Normal scan | ~10s | | Cached (repeat) | ~1.5s | | PSBT (offline) | <1s | | Boltzmann | 2-15ms |

What It Detects

CoinJoin - Whirlpool, WabiSabi, JoinMarket, Stonewall, generic equal-output

Change detection - address type mismatch, round amounts, unnecessary inputs, fresh addresses

Wallet fingerprinting - nLockTime, nSequence, BIP69, fee rate patterns, witness structure

Entity detection - 364 known entities (exchanges, darknet, mixers, gambling, mining) across 30M+ addresses

Chain analysis - backward/forward tracing, entity proximity, taint flow, UTXO clustering

Structural - peel chains, consolidations, batch payments, dust attacks, OP_RETURN metadata

Entropy - Boltzmann link probability matrix, wallet efficiency, deterministic link detection

Privacy

  • No addresses or transactions are logged or persisted
  • Entity detection uses bundled data (~92 MB), no external APIs
  • PSBT analysis requires zero network access
  • Only mempool.space API is contacted for blockchain data
  • Self-host with --api http://your-node:8999/api
  • All analysis runs locally

License

MIT