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

@signarank/client

v0.0.2

Published

Client SDK for SignaRank — cooperative on-chain monster battles on the Signum blockchain

Readme

@signarank/client

Battle on-chain monsters. Earn rewards. Compete for glory.

The official client SDK for SignaRank — a cooperative blockchain game where players band together to take down powerful Constructs living on the Signum blockchain.

What is SignaRank?

SignaRank is an achievement system rewarding your Signum blockchain activity and ranks you among the top players.

But it does not stop there....

Imagine a world where monsters aren't pixels on a screen — they're smart contracts. Each Construct is a living, breathing entity on the Signum blockchain with its own hit points, defenses, and behavior.

Players rally together to attack these Constructs by sending real on-chain transactions. Every hit counts. Every player matters. But watch out — Constructs fight back with debuffs, regeneration, and unpredictable mechanics.

Land the first hit and claim the First Blood bonus. Deal the killing blow and earn the Final Blow reward. Accumulate XP tokens as you battle, climb the leaderboard, and prove your rank.

This isn't a simulation — it's real value, real strategy, and real competition. All transparent, all verifiable, all on-chain.

Ready to fight? Head over to signarank.club and join the hunt.

Installation

npm install @signarank/client

The SDK requires @signumjs as peer dependencies:

npm install @signumjs/core @signumjs/util @signumjs/contracts @signumjs/standards @signumjs/http

Quick Start

Read-only: Check construct status & player stats

import { ReadOnlyPlayer } from "@signarank/client";
import { LedgerClientFactory } from "@signumjs/core";

const ledger = LedgerClientFactory.createClient({
  nodeHost: "https://europe.signum.network",
});

const player = new ReadOnlyPlayer({
  ledger,
  accountId: "YOUR_ACCOUNT_ID",
});

// Check your balances
const balances = await player.getBalances();

// Get your XP
const xp = await player.getTotalExperiencePoints();

// Read construct on-chain data
const status = await player.constructService.with("CONSTRUCT_ID").getStatus();
console.log(`HP: ${status.hitpoints} / ${status.maxHp}`);
console.log(`Active: ${status.isActive}, Defeated: ${status.isDefeated}`);

Full player: Attack a construct

import { Player } from "@signarank/client";
import { Amount } from "@signumjs/util";

const player = new Player({
  Ledger: ledger,
  Signer: yourSignerImplementation,
  accountId: "YOUR_ACCOUNT_ID",
});

// Attack with pure force
const tx = await player.attackConstruct({
  targetConstruct: "CONSTRUCT_ID",
  force: Amount.fromSigna("10"),
  powerUps: [],
});

// Attack with a power-up token
const tx2 = await player.attackConstruct({
  targetConstruct: "CONSTRUCT_ID",
  force: Amount.fromSigna("5"),
  powerUps: [
    { assetId: "POWERUP_TOKEN_ID", value: ChainValue.create(0).setCompound("100") },
  ],
});

API

ReadOnlyPlayer

| Method | Returns | Description | |---|---|---| | getBalances() | Record<string, AccountBalance> | All token balances for the player | | getTotalExperiencePoints() | number | Total XP earned | | getTokenInfo(tokenId) | Asset | Token metadata (cached) | | constructService.with(id).getStatus() | Construct status | HP, activity, defeat state, debuffs, regeneration | | constructService.with(id).getPlayerStatus(accountId) | Player status | Cooldown, debuff, XP, last attack | | constructService.with(id).getMetadata() | SRC44 descriptor | On-chain metadata |

Player extends ReadOnlyPlayer

| Method | Returns | Description | |---|---|---| | attackConstruct({ targetConstruct, force, powerUps }) | UnsignedTransaction | Attack a construct with optional power-ups (max 3) |

Storage

The SDK includes MemoryStorage and LocalStorage implementations for caching token data. Pass a custom IStorage<Asset> to the player constructor if you need a different backend.

License

MIT