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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@marinade.finance/ledger-utils

v3.1.0

Published

Utility to interact with Solana Ledger from CLI

Readme

Solana @marinade.finance/ledger-utils

@marinade.finance/ledger-utils

These utilities are designed for use with the ledger in CLI environments.

They attempt to parse strings as input URLs for derivation paths. The parsing aims to maintain compatibility with the Solana CLI, as documented in Rust solana-labs/solana source code.

To verify if the parsing matches, run the command solana-keygen. If you encounter any discrepancies, please reach out to us on Discord or create an issue here on GitHub.

solana-keygen pubkey usb://ledger

Usage of @marinade.finance/ledger-utils in Typescript code

The best is to take a look at the usage of CLI in project validator-bonds. The ledger-utils is used when usb://ledger parameter is passed within CLI parameter. The parseWallet (an utility function within an utility library https://github.com/marinade-finance/marinade-ts-cli/tree/libs_2.1.3/packages/lib/cli-common) kicks in the ledger parsing. When the provided format matches the Solana ledger path (see the BIP44 Parsing info below) then an instance of Wallet interface is created and could be used for transaction signing.

Solana BIP44 Address Parsing

Solana base derivation path is "44/"501 The "44'" part that signifies the BIP44 standard, and the "501'" part that signifies Solana's BIP44 coin type.

Parsing works in the following way:

  • usb://ledger - taking the first device and using Solana's default derivation path 44/501
  • usb://ledger?key=0/1 - taking the first device and using Solana's derivation path 44/501/0/1
  • usb://ledger/9rPVSygg3brqghvdZ6wsL2i5YNQTGhXGdJzF65YxaCQd?key=0/1 - searching all ledger devices where the Solana derivation path 44/501/0/1 will result in public key 9rPVSygg3brqghvdZ6wsL2i5YNQTGhXGdJzF65YxaCQd
  • usb://ledger/9rPVSygg3brqghvdZ6wsL2i5YNQTGhXGdJzF65YxaCQd - searching all ledger devices where Solana's default derivation path 44/501/ will result in public key 9rPVSygg3brqghvdZ6wsL2i5YNQTGhXGdJzF65YxaCQd

The SDK provides a heuristic search for the address when a public key address is provided but no derivation path. Then it starts searching through the address space until by default 44/501/10/10/10 is reached. While the space search could be configured (see searchDerivedPathFromPubkey at ledger.ts).

Not only the SDK but the CLI argument may extend the derivation search depth. Pass the key value of zeros and a last digit number. Such input defines wide and depth of the search. For example, usb://ledger/9rPVSygg3brqghvdZ6wsL2i5YNQTGhXGdJzF65YxaCQd?key=0/0/0/3 will search for the pubkey 9rPVSygg3brqghvdZ6wsL2i5YNQTGhXGdJzF65YxaCQd in ledger-derived keys in wide of 4 and depth of 3 (i.e., until 44/501/3/3/3/3 is reached).