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

bip44-registry

v1.0.0

Published

An optimized registry for BIP44 cryptocurrency constants with efficient lookups by code, symbol, and name

Readme

bip44-registry

BIP44-Registry provides a structured, high-performance implementation of the BIP44 cryptocurrency constants used for hierarchical deterministic wallets.

Install

npm i --save bip44-registry

Usage

Basic Usage

const bip44Registry = require('bip44-registry');

// Get coin details by symbol
const bitcoinCoins = bip44Registry.getBySymbol('BTC');
console.log(bitcoinCoins[0]);
// { code: 2147483648, symbol: 'BTC', name: 'Bitcoin' }

// Get coin by constant code (BIP44 path constant)
const litecoin = bip44Registry.getByCode(0x80000002);
console.log(litecoin);
// { code: 2147483650, symbol: 'LTC', name: 'Litecoin' }

// Get exact match when multiple coins share the same symbol
const liquidBitcoin = bip44Registry.getExactMatch('LBTC', 'Liquid BTC');
console.log(liquidBitcoin);
// { code: 2147485424, symbol: 'LBTC', name: 'Liquid BTC' }

// Access raw data array
const allCoins = bip44Registry.all;
console.log(`Total coins: ${allCoins.length}`);

TypeScript Support

import bip44Registry, { CoinData } from 'bip44-registry';

// Get a list of coins by symbol
const ethereumCoins: CoinData[] = bip44Registry.getBySymbol('ETH');
console.log(`Found ${ethereumCoins.length} Ethereum-related coins`);

// Look up by code (with proper typing)
const dogecoin: CoinData | undefined = bip44Registry.getByCode(0x80000003);
if (dogecoin) {
  console.log(`Found ${dogecoin.name} with symbol ${dogecoin.symbol}`);
}

// Type-safe iteration
bip44Registry.getBySymbol('BTC').forEach((coin: CoinData) => {
  console.log(`BTC coin: ${coin.name}, code: 0x${coin.code.toString(16)}`);
});

// Use in HD wallet derivation (example)
function getDerivationPath(symbol: string, account: number = 0): string | undefined {
  const coins = bip44Registry.getBySymbol(symbol);
  if (coins.length === 0) return undefined;
  
  // Use the first matching coin's code
  const coinType = coins[0].code & 0x7fffffff; // Remove hardened bit
  return `m/44'/${coinType}'/${account}'/0/0`;
}

console.log(getDerivationPath('BTC')); // "m/44'/0'/0'/0/0"
console.log(getDerivationPath('ETH')); // "m/44'/60'/0'/0/0"

License

MIT