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

@ethernauta/chain

v0.0.48

Published

500+ EIP-155 chain definitions for Ethernauta, indexed by chain_id.

Downloads

11,259

Readme

bundlejs

Philosophy

This module is an un-opinionated representation of the public chain catalogue:

Every chain in the upstream list is exported as a const named eip155_<chainId> (one file per chain). Pair the const with encode_chain_id from @ethernauta/transport to produce a CAIP-2 identifier that every Ethernauta resolver factory accepts.

A small derivation tool — runIndexer — refreshes the catalogue from the upstream repository.

Modules

API

Chain consts — one per EIP-155 chain

import {
  eip155_1,           // Ethereum Mainnet
  eip155_10,          // OP Mainnet
  eip155_8453,        // Base
  eip155_42161,       // Arbitrum One
  eip155_11155111,    // Sepolia
  // …500+ exports
} from "@ethernauta/chain"

// Each const exposes the upstream `ChainSchema` shape:
//   { name, shortName, chainId, networkId, nativeCurrency,
//     rpc, explorers, … }

Pair a chain with a CAIP-2 id

import { eip155_11155111 } from "@ethernauta/chain"
import { decode_chain_id, encode_chain_id } from "@ethernauta/transport"

const chain_id = encode_chain_id({
  namespace: "eip155",
  reference: eip155_11155111.chainId,
})
console.log(chain_id) // "eip155:11155111"

const { namespace, reference } = decode_chain_id(chain_id)
console.log(namespace) // "eip155"
console.log(reference) // "11155111"

Schemas

import {
  type Chain,
  ChainSchema,
  type Feature,
  type NativeCurrency,
  type Explorer,
  type Bridge,
  type Parent,
  type EnsRegistry,
  type ShortName,
  ShortNameSchema,
  type RedFlagSchema,
} from "@ethernauta/chain"

// `ChainSchema` matches the upstream JSON schema and is what
// every `eip155_*` export validates against at build time.

Refresh the catalogue

pnpm --filter @ethernauta/chain indexer

The indexer script pulls the latest definitions from ethereum-lists/chains, validates each against ChainSchema, and writes one TS file per chain under src/chain/eip155/.