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

@npmjs_tdsoftware/subidentity

v0.3.1

Published

This package provides functionality to fetch identities and search identities by address or any identity field from any Substrate chain implementing the identities pallet. It was developed for use in SubIdentity, a Substrate identity directory, and contai

Downloads

54

Readme

subidentity-package

Motivation

This package provides functionality to fetch identities and search identities by address or any identity field from any Substrate chain implementing the identities pallet. It was developed for use in SubIdentity, a Substrate identity directory, and contains all therefore required methods and interfaces.

Development

npm install
npm run build

Tests

Unit

npm run test

Lint

npm run lint

Installation

npm install @npmjs_tdsoftware/subidentity

Available features

getIdentities

Returns a Page of all identities of the chain of the provided wsProvider.

import { Identity, Page, getIdentities } from "@npmjs_tdsoftware/subidentity"

let wsProvider: string = "your-ws-provider"
let pageNumber = 1;
let limit = 10;
let page: Page<Identity> = await getIdentities(wsProvider, pageNumber, limit);

getCompleteIdentities

Returns a list of all identitites from a selected substrate based chain including their judgements.

import { Identity, getCompleteIdentities } from "@npmjs_tdsoftware/subidentity"

let wsProvider: string = "your-ws-provider"
let identities: Identity[] = await getCompleteIdentities(wsProvider);

getAccountBalance

Returns the balance of an account with given address from a given substrate based chain.

import { getAccountBalance, Balance } from "@npmjs_tdsoftware/subidentity"

let wsProvider: string = "your-ws-provider"
let address = "account-address";
let identity: Balance = await getAccountBalance(wsProvider, address);

getIdentity

Returns an identity of the chain of the provided wsProvider for the given address.

import { Identity, getIdentity } from "@npmjs_tdsoftware/subidentity"

let wsProvider: string = "your-ws-provider"
let address = "account-address";
let identity: Identity = await getIdentity(wsProvider, address);

searchIdentities

Returns a Page of identities of the chain of the provided wsProvider fitting the search term.

import { Identity, Page, searchIdentities } from "@npmjs_tdsoftware/subidentity"

let wsProvider: string = "your-ws-provider"
let pageNumber = 1;
let limit = 10;
let query = "your-query-string";
let page: Page<Identity> = await searchIdentities(wsProvider, query, pageNumber, limit);

implementsIdentityPallet

Returns true, if chain of provided wsProvider implements identity pallet.

import { implementsIdentityPallet } from "@npmjs_tdsoftware/subidentity"

let wsProvider = "your-ws-provider"
let isImplementingIdentityPallet = await implementsIdentityPallet(wsProvider);

isArchiveNode

Returns true, if the chain of provided wsProvider is running on archive mode.

import { isArchiveNode } from "@npmjs_tdsoftware/subidentity"

let wsProvider = "your-ws-provider"
let isMyNodeArchive = await isArchiveNode(wsProvider);

getChainName

Returns the name of the chain of provided wsProvider.

import { getChainName } from "@npmjs_tdsoftware/subidentity"

let wsProvider = "your-ws-provider"
let chainName = await getChainName(wsProvider);

getTokenDetails

Returns the token symbol and decimals of the chain of provided wsProvider.

import { Token, getTokenDetails } from "@npmjs_tdsoftware/subidentity"

let wsProvider = "your-ws-provider"
let tokenDetails = await getTokenDetails(wsProvider);

getChainStatus

Returns the chain status of the chain of provided wsProvider.

import { ChainStatus, getChainStatus } from "@npmjs_tdsoftware/subidentity"

let wsProvider = "your-ws-provider"
let chainStatus: ChainStatus = await getChainStatus(wsProvider);

connectToWsProvider

Returns ApiPromise instance using the supplied wsProvider.

import { ApiPromise } from "@polkadot/api";
import { connectToWsProvider } from "@npmjs_tdsoftware/subidentity"

let wsProvider = "your-ws-provider"
let apiPromise: ApiPromise = await connectToWsProvider(wsProvider);

License

Apache License 2.0