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

hooddomains

v0.1.1

Published

TypeScript SDK for Hood Domains — resolve, look up, and register .hood names on Robinhood Chain. All on-chain, no backend.

Readme

hooddomains

npm version

TypeScript SDK for Hood Domains — resolve, look up, and register .hood names on Robinhood Chain. Everything is on-chain; the SDK is a thin wrapper over viem. No backend, no API keys beyond your own RPC.

Hood Domains · www.hood.domains · app · docs · npm · GitHub · X @hooddomains

npm i hooddomains viem

Read (only needs an RPC)

import { Hood } from "hooddomains";

const hood = new Hood({ rpcUrl: "https://robinhood-mainnet.g.alchemy.com/v2/YOUR_KEY" });

await hood.resolve("alice.hood");          // -> "0x…" | null   (name -> wallet)
await hood.reverse("0x1234…abcd");         // -> "alice.hood" | null (wallet -> name)
await hood.text("alice.hood", "twitter");  // -> string | null
await hood.records("alice.hood");          // -> { address, records: { twitter, url, … }, resolver }
await hood.available("mynew");             // -> boolean
await hood.price("mynew", 1);              // -> { wei, eth }
await hood.nameInfo("alice.hood");         // -> { registered, owner, expiry, resolver, tokenId }

Write (needs a signer)

Pass a privateKey or a viem walletClient:

const hood = new Hood({ rpcUrl, privateKey: "0x…" });

// commit -> wait ~60s -> register, paid in native ETH (overpayment refunded on-chain)
const res = await hood.register("mynew", { years: 1 });
// -> { name, owner, tokenId, paid: { eth }, commitTx, registerTx }

await hood.setAddr("mynew.hood", "0x…");            // point it at a wallet
await hood.setText("mynew.hood", "twitter", "hood"); // any key/value
await hood.setPrimary("mynew.hood");                 // make it your primary name

setAddr / setText deploy a per-owner resolver (granting addr + text roles) on first use, then reuse it.

Options

new Hood({
  rpcUrl,             // Robinhood Chain (chainId 4663) RPC
  publicClient,       // or bring your own viem PublicClient
  walletClient,       // or bring your own signer
  privateKey,         // or a private key for writes
  contracts,          // override addresses (defaults to the live v2 deployment)
  deployBlock,        // lower bound for record-key discovery
});

Notes

  • register takes ~70s (the ~60s commit-reveal front-run protection).
  • records() discovers custom text keys from TextChanged events (not just a fixed list).
  • Reading works with any RPC. For a server key, don't use a browser origin-allowlisted key.
  • Contracts default to the live deployment on Robinhood Chain (chainId 4663). Import DEFAULT_CONTRACTS, robinhoodChain, etc. from the package if you need them.