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

@windstack/account

v2.3.4

Published

Typed Antelope account access for balances, CPU/NET/RAM resources, staking, governance, and permission operations.

Readme

@windstack/account

Overview

@windstack/account provides account reads and common Antelope account action builders. It supports account queries, token balances and transfers, resource staking, RAM operations, refunds, producer voting, account creation, and permission management.

System and token contract names are supplied by the parent client. No chain, contract, symbol, or permission is selected implicitly for sensitive operations.

Installation

npm install @windstack/account

The account helper is normally created by @windstack/antelope so RPC, ABI caching, and chain identity are shared automatically. Chain presets may supply the appropriate system and token contracts.

Usage

import { AntelopeClient } from "@windstack/antelope";

const client = new AntelopeClient({
  endpoints: "https://node.example",
  chainId: "00".repeat(32),
  contracts: { system: "system", token: "token" },
});
const account = client.account("alice");

const balances = await account.balance(undefined, "TKN");
const transfer = await account.transfer("bob", "1.0000 TKN", "example");
const stake = await account.delegate("alice", "1.0000 TKN", "2.0000 TKN");
const unstake = await account.undelegate("alice", "1.0000 TKN", "1.0000 TKN");
const buyRam = await account.buyRam("alice", "5.0000 TKN");
const sellRam = await account.sellRam(4096);

Resource availability

const resources = await account.resources();

console.log(resources.cpu.available);
console.log(resources.net.available);
console.log(resources.ram.availableBytes);

const check = await account.checkResources({
  cpuUs: 350,
  netBytes: 168,
  ramBytes: 240,
});

console.log(check.sufficient);

CPU values are expressed in microseconds. NET and RAM values are expressed in bytes.

Voting and producer actions

const vote = await account.voteProducers([
  "producerone",
  "producertwo",
]);

const proxyVote = await account.voteProxy("myproxy");
const registerProxy = await account.registerProxy(true);

const producer = await account.registerProducer(
  "PUB_K1_...",
  "https://producer.example",
  0,
);

Producer voting rejects duplicates and accepts at most 30 producer accounts. clearVote() removes the current direct producer or proxy selection.

Account permissions

Permission changes require the authorization permission to be supplied explicitly. The helper does not guess whether owner, active, or another permission is appropriate for a sensitive account change.

await account.updatePermission(
  "custom",
  "active",
  {
    threshold: 1,
    keys: [{ key: "PUB_K1_...", weight: 1 }],
    accounts: [],
    waits: [],
  },
  "active",
);

The package also exposes deletePermission(), linkPermission(), unlinkPermission(), createAccount(), registerProxy(), unregisterProxy(), unregisterProducer(), claimRewards(), refund(), buyRamSelf(), and buyRamBytes().

Runtime

The package is ESM-first and requires Node.js 20.19 or newer when used directly in Node.js. Network requests are delegated to @windstack/rpc; ABI loading and action serialization are delegated to @windstack/contract and @windstack/abi.

Action builders return serialized contract actions. They do not broadcast transactions themselves. Signing and broadcast are performed by @windstack/antelope or a compatible session layer.

License

MIT License.

Created by Gilang Ramadan. Copyright © 2026 PT WIND KRIPTOGRAFI TEKNOLOGI.