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

@hoodfi/sdk

v0.1.1

Published

Resolve, reverse-look-up and register *.hoodfi.eth names on Robinhood Chain. Typed, keyless, viem-based.

Readme

@hoodfi/sdk

Resolve, reverse-look-up and register *.hoodfi.eth names on Robinhood Chain (chain id 4663).

HoodFi names are lifetime ENS subnames, minted as ERC-721s on Robinhood Chain. There are no renewals and there is no token. They also resolve on Ethereum through ENS (CCIP-Read), so any ENS-aware wallet already reads them. This SDK is for apps that want the details: one multicall per lookup, typed results, and errors that tell an outage apart from a "no".

Keyless: it reads public RPCs and builds unsigned transactions. You sign with your own wallet.

npm install @hoodfi/sdk viem

Quick start

import { createHoodfiClient } from '@hoodfi/sdk'

const hoodfi = createHoodfiClient()

// Forward: everything a name holds
const profile = await hoodfi.resolve('gm') // or 'gm.hoodfi.eth'
profile?.owner
profile?.addresses.robinhood // also: ethereum, bitcoin, solana, xrp
profile?.records.avatar

// Paying a name: the record for THAT chain, or an error
const { address, warnings, caveat } = await hoodfi.getSendAddress('gm', 'robinhood')

// Reverse: which name to show for a wallet
const { primary, names } = await hoodfi.lookupAddress('0x…')

// Is it free, and what does it cost?
const check = await hoodfi.checkName('alice')
check.available, check.price.usdg // 3_000_000n = $3 (USDG, 6 decimals)

Registering

import { createWalletClient, custom } from 'viem'
import { createHoodfiClient, robinhoodChain } from '@hoodfi/sdk'

const hoodfi = createHoodfiClient()
const wallet = createWalletClient({ chain: robinhoodChain, transport: custom(window.ethereum) })
const [account] = await wallet.getAddresses()

const { steps } = await hoodfi.buildRegistration({ name: 'alice', account, payWith: 'eth' })
for (const step of steps) {
  const hash = await wallet.sendTransaction({ account, to: step.to, data: step.data, value: step.value })
  const receipt = await hoodfi.publicClient.waitForTransactionReceipt({ hash })
  if (receipt.status !== 'success') throw new Error(`${step.description} reverted`)
}
  • The name goes to whoever sends the transaction. The registrar mints to msg.sender and takes no recipient, so to give a name to someone else, mint it and then transfer it.
  • payWith: 'usdg' adds an approve step first when the allowance is short.
  • ETH payments send the quoted price plus a buffer (overpayBps, default 100 = 1%) so the transaction still goes through if the registrar owner reprices between quote and send. The registrar refunds the excess to the sender in the same transaction.
  • Prices: $3 for 4+ characters, $5 / $10 / $15 for 3 / 2 / 1 characters in USDG. The ETH price is a fixed amount per tier that the registrar owner sets, not an oracle price, so in dollars it drifts with ETH. checkName returns both as currently set.

Errors

Every failure is a HoodfiError with a code:

| code | meaning | | --- | --- | | INVALID_NAME | Not a valid hoodfi name (or address). Nothing was read. | | NOT_REGISTERED | getSendAddress on a name nobody holds. (resolve returns null instead.) | | NO_RECORD | The name has no address for that chain. Don't fall back to another chain's record. | | UNAVAILABLE | buildRegistration on a taken, reserved or paused name. | | UNREADABLE | The RPC or API didn't answer. This tells you nothing about the name. Retry it, and never show it as "not registered" or "no names". |

Things that bite

  • gm.eth is not gm.hoodfi.eth. resolve and getSendAddress reject any .eth name outside hoodfi.eth rather than quietly reading the hoodfi name with the same label, which could belong to someone else entirely.
  • Robinhood Chain and Ethereum are separate records. They normally hold the same address. getSendAddress('x', 'robinhood') never borrows the Ethereum record (or vice versa). A Safe or other contract wallet exists only on the chains it was deployed to, and funds sent to its address on another chain can be stuck.
  • Records don't follow the token. After a name is sold, its address records still point at the seller until the new owner updates them. lookupAddress only names a wallet primary when the name resolves back to that wallet.
  • Solana addresses have no checksum, and a classic XRP address carries no destination tag. getSendAddress returns a caveat for these; show it to the user.
  • The Robinhood Chain coinType is 2147488311n. In JavaScript, 0x80000000 | 4663 evaluates to a negative number, which silently reads nothing.

Options

createHoodfiClient({
  rpcUrls: ['https://your-robinhood-rpc'], // tried before the public RPCs; recommended on servers
  publicClient,                            // or bring your own viem client (chain 4663)
  apiUrl: 'https://ccip.hoodfi-mcp.com',   // reverse-lookup API
  fetch,                                   // custom fetch
})

The public RPC rate-limits by IP. Servers doing volume should pass their own endpoint.

Also exported

checkLabel, checkHoodfiName, normalizeLabel, tierOf, fullName, decodeContenthash, CHAINS, CONTRACTS, robinhoodChain, the coin-type constants, and the minimal registrarAbi / registryAbi.

Related

MIT