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

unfold-evm

v0.1.0

Published

Unfold any EVM contract in seconds

Readme


Install

npm install -g unfold-evm

Requires Node.js 18+.

Quick start

# fingerprint a contract
unffold 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0

# interactive mode — pick address and action from menus
unfold

After the fingerprint, unfold drops into an interactive menu so you can keep exploring without retyping the address.

What you get

  • Fingerprint — name, standards (ERC-20, ERC-721, ERC-4626 …), compiler, license, balance, total supply
  • Proxy analysis — detects EIP-1967 Transparent, UUPS, Beacon, Diamond, Minimal Proxy; shows implementation address, admin, and upgrade history
  • Inheritance tree — full parent chain parsed from Solidity source
  • Security surface — upgradeability, selfdestruct, tx.origin, delegatecall, reentrancy guards, unprotected privileged functions
  • Read state — call any view function by name with arguments
  • Watch events — stream decoded events live to the terminal
  • Inspect storage — read any slot by index, variable name, or mapping key
  • Export — Foundry fork test stub, ABI JSON, full contract JSON

Usage

unffold <address> [options]

| Option | Description | |---|---| | --chain <name> | Target chain (default: mainnet) | | --rpc <url> | Override RPC for this run | | --proxy | Proxy analysis + upgrade history | | --tree | Inheritance tree + detected standards | | --security | Security surface scan | | --read "<fn(args)>" | Call a view function | | --watch <event\|all> | Stream live events | | --storage <slot\|name\|mapping> | Read a storage slot | | --export <foundry\|abi\|json> | Export artifacts | | --json | Machine-readable output, no banner or menu |

Examples

# proxy deep-dive on wstETH
unffold 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0 --proxy

# call totalSupply on USDC (Base)
unffold 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 --chain base --read "totalSupply()"

# read a mapping slot
unffold 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 --storage "balanceOf[0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045]"

# stream Transfer events live
unffold 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 --watch Transfer

# export a Foundry fork test
unffold 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 --export foundry

Supported chains

mainnet · arbitrum · base · optimism · polygon · zksync · sepolia · holesky

Configuration

Source lookups use Etherscan API V2. Without an API key, unfold falls back to Sourcify automatically — no key required for most verified contracts.

To use your own Etherscan key:

# one-off
export ETHERSCAN_API_KEY=your_key_here

# or persist it
unffold config init

~/.unfold/config.json shape:

{
  "etherscanApiKey": "YOUR_KEY",
  "defaultChain": "mainnet",
  "rpcOverrides": {
    "mainnet": "https://eth.llamarpc.com"
  }
}

ETHERSCAN_API_KEY env var takes precedence over the config file.

Contributing

PRs and issues are welcome. See CONTRIBUTING.md.

git clone https://github.com/alva-p/unffold
cd unfold
npm install
npm run build
npm test

License

MIT — see LICENSE