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

contracts-registry

v0.2.0

Published

Cross-chain Foundry deployment registry — CLI

Readme

Contracts Registry

A cross-chain deployment registry for Foundry projects. It reads the deployment records Foundry already writes to your broadcast/ folder, aggregates them across every chain you deploy to, and gives you a single local dashboard to browse, verify, and interact with your deployed contracts — no hosting, no external database, everything runs on your machine and talks directly to the chains you configure.

License npm version

Why

Foundry's broadcast/ folder already has everything about your deployments — but it's split per script, per chain, one JSON file at a time. There's no single view of "where is Counter deployed, on which chains, and is what's live actually what I have locally compiled?" This tool builds that view, live, from files you already have.

Install

npx contracts-registry

or install it globally:

npm install -g contracts-registry
contracts-registry

This starts a local server and opens your browser automatically. No account, no signup, nothing leaves your machine except the RPC calls you configure.

Supported platforms: macOS (Intel and Apple Silicon), Linux (x64). Windows isn't packaged yet.

Quick start

Run it from the root of your Foundry project. It needs one config file there: registry.config.json.

{
  "broadcast_path": "broadcast",
  "out_path": "out",
  "chains": {
    "1": {
      "rpc_url": "https://eth-mainnet.example.com",
      "explorer_url": "https://etherscan.io"
    },
    "8453": {
      "rpc_url": "https://base-mainnet.example.com",
      "explorer_url": "https://basescan.org"
    },
    "31337": {
      "rpc_url": "http://localhost:8545"
    }
  }
}

| Field | Required | Description | |---|---|---| | broadcast_path | Yes | Path to your Foundry broadcast/ folder, relative to the project root. | | out_path | Yes | Path to your Foundry out/ folder (compiled artifacts), relative to the project root. | | chains | Yes (one entry per chain you've deployed to) | Maps a chain ID to its RPC and (optionally) block explorer. | | chains.<id>.rpc_url | Yes, per chain | Any chain that appears in your deployment history needs an RPC here, or requests involving that chain will fail. | | chains.<id>.explorer_url | No | Used to link addresses and transactions to a block explorer. If omitted, those links are simply not shown — you'll see a warning in the terminal when the server starts. |

Once the file's in place, just run contracts-registry from that same folder.

What it does

  • Contract discovery — every contract you've successfully deployed is found automatically by scanning broadcast/ and matching each one to its compiled artifact in out/. No need to list your contracts anywhere.
  • Current vs. historical instances — the most recent deployment per contract per chain is front and center; every prior deployment stays browsable in its own tab.
  • Deployment history — a searchable, paginated log of every deployment transaction, with gas cost, status, and a link to the transaction and resulting address.
  • Bytecode match — compares the bytecode actually deployed on-chain against your local build, so you know if what's live matches your current source. Runs automatically, cached for 24 hours, with a per-row button to force a fresh check.
  • Proxy-aware — automatically detects upgradeable (proxy) contracts and treats a proxy and its implementation as one contract, not two disconnected entries — including routing bytecode verification and Interact to the right address. See the Glossary for details.
  • Chain profiles — every chain you deploy to gets its own page, listing every contract currently live there, its balance, and deployment history — useful when you want the view from the chain's side rather than the contract's.
  • Interact — call any read function on a deployed instance directly from the UI, against whichever chain you pick.

See Scope & Limitations for exactly what's supported today across each feature. See Glossary for explanations of terms used across the UI.

Troubleshooting

"Could not find or read 'registry.config.json'" You're not running contracts-registry from your Foundry project's root, or the file doesn't exist there yet. See Quick start.

"No RPC configured for chain X" Your broadcast/ history includes a deployment on a chain that isn't listed under chains in your config, or is listed without an rpc_url. Add it.

"No artifact found for contract 'X' — has it been compiled?" The tool found a record of X being deployed, but can't find a matching compiled artifact in out_path. Run forge build and try again.

"Contract name 'X' is ambiguous: found in ..." Two different .sol files define a contract with the same name, and X was deployed — the tool can't tell which one to use. Rename one of them.

Development

The Rust backend (engine/) and the React frontend (web/) run as two separate processes in development:

# terminal 1
cd web && npm install && npm run dev

# terminal 2 — from a Foundry project with a registry.config.json
cargo run --manifest-path <path-to-repo>/engine/Cargo.toml

Building a distributable binary (embeds the frontend into a single executable):

cd web && npm run build
cd engine && cargo build --release --features embed-frontend

License

MIT — see LICENSE.


Built by Agustín Velez · LinkedIn

If this saved you time, donations to 0x91A1F7ea46FeAB0E955A12f5161E53c63f025725 are appreciated.