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

hns-resolver

v0.1.61

Published

WebAssembly bindings for HARA Codex binary ABI decoder

Downloads

37

Readme

hns-resolver

WebAssembly bindings for HARA Codex binary ABI decoder and Handshake (HNS) Domain Resolver. This project provides seamless integration with both Go and Node.js environments.

Installation for Node.js (NPM)

The JavaScript/TypeScript bindings are published to npm and can be installed easily.

Install via npm or yarn

npm install hns-resolver
# or
yarn add hns-resolver

Usage

const { resolveHns, decode_hex, namehash } = require('hns-resolver');

async function main() {
  const domain = 'binwalletfactory.hara.ethnet';
  const result = await resolveHns(domain);
  console.log(result); // Outputs JSON containing the ABI and Address
}

main();

Installation for Go

Because this module is hosted in a private GitHub repository, you will need to configure your Go environment to authenticate with GitHub before installing.

1. Configure Go Environment

Set the GOPRIVATE variable so Go bypasses the public proxy for this module:

go env -w GOPRIVATE=github.com/HARA-DID/*

2. Configure Git Authentication

You must ensure your local git is authenticated. The easiest way is to instruct git to use SSH instead of HTTPS for GitHub:

git config --global url."[email protected]:".insteadOf "https://github.com/"

(Alternatively, you can use a Personal Access Token with a .netrc file if you prefer HTTPS).

3. Install the module

Once authenticated, you can import and download the package using:

go get github.com/HARA-DID/hns-resolver/go

Usage

package main

import (
    "context"
    "fmt"
    hnsresolver "github.com/HARA-DID/hns-resolver/go"
)

func main() {
    ctx := context.Background()
    
    // Resolve the HNS domain
    result, err := hnsresolver.ResolveHns(ctx, "binwalletfactory.hara.ethnet")
    if err != nil {
        panic(err)
    }
    
    fmt.Println(result) // Outputs a JSON string containing the ABI and Address
}