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

@babylonlabs-io/bsn-registry

v0.6.0

Published

Babylon BSN Registry - A registry of Bitcoin Staking Node (BSN) information for testnet and mainnet

Downloads

125

Readme

@babylonlabs-io/bsn-registry

A registry of BSN information for the Babylon Super App, supporting both testnet and mainnet environments.

Installation

npm install @babylonlabs-io/bsn-registry

Usage

import {
  testnetRegistry,
  mainnetRegistry,
  getRegistry,
  BSNRegistry,
  BSNEntry
} from '@babylonlabs-io/bsn-registry';

// Access testnet BSN entries
const testnetBsnDevnet1: BSNEntry = testnetRegistry['bsn-devnet-1'];
console.log(testnetBsnDevnet1.rpcUrl); // "https://rpc.bsn-devnet.babylonlabs.io/"

// Access mainnet BSN entries
const mainnetBsnBbn1: BSNEntry = mainnetRegistry['bbn-1'];
console.log(mainnetBsnBbn1.rpcUrl); // "https://rpc-dapp.babylonlabs.io"

// Use the helper function to get registry by environment
const registry = getRegistry('testnet'); // or 'mainnet'
const bsnEntry = registry['bsn-devnet-1'];

// Iterate over all BSNs in a specific environment
Object.entries(testnetRegistry).forEach(([bsnId, entry]) => {
  console.log(`Testnet BSN ${bsnId}: ${entry.rpcUrl}`);
});

Data Structure

Each BSN entry contains:

  • logoUrl: URL to the BSN's logo image (GitHub raw URL)
  • rpcUrl: RPC endpoint URL for the BSN (environment-specific)

Environments

  • Testnet: Use testnetRegistry or getRegistry('testnet') for testnet BSNs
  • Mainnet: Use mainnetRegistry or getRegistry('mainnet') for mainnet BSNs

Contributing

We welcome contributions to add new BSN entries to the registry! To add a new BSN:

Adding a New BSN Entry

  1. Register your BSN with the Babylon node first to get your official BSN ID
  2. Fork the repository and create a new branch
  3. Add your icon to the repository:
    • Place your logo at packages/babylon-bsn-registry/images/<your-official-bsn-id>/logo.svg (preferred) or logo.png.
    • SVG preferred; if PNG, use at least 256x256.
  4. Edit the registry files: Update src/testnet.json and/or src/mainnet.json to add your BSN entry.
  5. Use GitHub raw URL for logoUrl:
    "your-official-bsn-id": {
      "logoUrl": "https://raw.githubusercontent.com/babylonlabs-io/babylon-toolkit/main/packages/babylon-bsn-registry/images/your-official-bsn-id/logo.svg",
      "rpcUrl": "https://rpc.your-bsn.com"
    }
  6. Use your official BSN ID: The BSN ID must match exactly what was assigned during Babylon node registration
  7. Provide environment-specific URLs: Ensure RPC URLs are correct for each environment
  8. Run validation locally before opening a PR:
    npm --prefix packages/babylon-bsn-registry run validate-images
  9. Submit a Pull Request with a clear description of the BSN being added

Guidelines

  • BSN ID: Must be the official BSN ID assigned during Babylon node registration (e.g., bsn-001, bsn-company-name).
  • Logo Requirements:
    • Store the image in this repo under packages/babylon-bsn-registry/images/<bsn-id>/.
    • Use logo.svg (preferred) or logo.png.
    • PNG should be ≥ 256x256. Keep file size reasonable (< 100KB if possible).
    • logoUrl must use GitHub raw: https://raw.githubusercontent.com/babylonlabs-io/babylon-toolkit/main/packages/babylon-bsn-registry/images/<bsn-id>/logo.(svg|png).
  • RPC URL: Must be a valid, accessible RPC endpoint (different for testnet/mainnet).