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

@gorid/spl-name-service

v1.0.5

Published

<p align="center"> <img width="250" src="https://v2.sns.id/assets/logo/brand.svg"/> </p>

Downloads

456

Readme

GNS JS-KIT SDK

npm version TypeScript License

The JS-KIT SDK is a JavaScript toolkit for managing .gor domains and records. Built on @solana/web3.js 1.x, it simplifies development and ensures secure and efficient functionality.

User guide can be found here.

Gorbagana Domain Service Guide

A guide to retrieve all domains owned by a user using the Gorbagana Name Service.

Overview

This example demonstrates how to:

  • Get all domains owned by a specific user
  • Perform reverse lookup from account to domain name
  • Resolve domain names to wallet addresses

Prerequisites

Make sure you have the required dependencies installed:

npm install @solana/web3.js @gorid/spl-name-service

Usage

import { Connection, PublicKey } from "@solana/web3.js";
import {
  getAllDomains,
  resolve,
  reverseLookup,
  ROOT_DOMAIN_ACCOUNT,
} from "@gorid/spl-name-service";

export async function main() {
  const connection = new Connection("https://rpc.gorbagana.wtf/");

  // Get all domains owned by a specific user
  const allDomains = await getAllDomains(
    connection,
    new PublicKey("55M2GxZ55saab85Qcd4NTet6TYqVni1tM3SvUQQiNG6H"),
  );
  console.log(
    "List domain that user owns",
    allDomains.map((d) => d.toString()),
  );

  // Reverse lookup: Get domain name from account address
  const resolveDomain = await reverseLookup(
    connection,
    new PublicKey("GSjr7i3U6xPQMHQN2sWJNhahCJRqQPv23e1HJ4ZtpeWc"),
  );
  console.log("Resolve domain from account name: ", resolveDomain.toString());

  // Resolve domain name to wallet address
  const owner = await resolve(connection, "jade");
  console.log("Owner :", owner.toString()); // 55M2GxZ55saab85Qcd4NTet6TYqVni1tM3SvUQQiNG6H

  // Transfer ownership
  const tx = await transferNameOwnership(
    connection,
    "demo",
    new PublicKey("94nXXA7birWgrQ6XNZvMY8vfUBYNXkb9EmKkCzgfMWKy"), // new owner
    undefined,
    ROOT_DOMAIN_ACCOUNT,
  );
  const result = await connection.sendTransaction(new Transaction().add(tx), [
    signer,
  ]);
}

Functions

getAllDomains(connection, publicKey)

Retrieves all domains owned by the specified public key.

Parameters:

  • connection: RPC connection
  • publicKey: The owner's public key

Returns: Array of domain names

reverseLookup(connection, publicKey)

Performs reverse lookup to get the domain name associated with an account.

Parameters:

  • connection: RPC connection
  • publicKey: The account's public key

Returns: Domain name string

resolve(connection, domainName)

Resolves a domain name to its associated wallet address.

Parameters:

  • connection: RPC connection
  • domainName: The domain name to resolve

Returns: Public key of the domain owner

transferNameOwnership(connection, domainName, newOwner, nameClass, parentName)

Transfer a domain name to a new wallet address.

Parameters:

  • connection: RPC connection
  • domainName: The domain name to transfer
  • newOwner: New owner of domain
  • nameClass: The name class address
  • parentName: The parent address, in this example it's ROOT_DOMAIN_ACCOUNT

Returns: Instruction to transfer ownership

Dependencies

  • @solana/web3.js - Solana JavaScript SDK
  • @gorid/spl-name-service - SPL Name Service utilities