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

@helixid/did-hedera

v0.2.0

Published

Optional Hedera DID method support for HelixID equipped for next major release only

Readme

@helixid/did-hedera

Optional did:hedera method support for HelixID: anchoring a DID to Hedera Consensus Service (HCS), resolving one back from a mirror node, and publishing a signed StatusList credential to HCS for an on-chain audit trail. Not required for did:web or did:key, which are handled entirely by @helixid/sdk-js/@helixid/cli without this package.

This is a real-money-spending dependency — every anchor and publish call submits a paid Hedera transaction and debits the configured operator account's HBAR balance. Install it only where Hedera support is actually needed:

npm install @helixid/did-hedera

@helixid/cli and @helixid/mcp-server both declare it as an optional dependency — helix did create --method hedera (or the did_create MCP tool with method: "hedera") fails with a clear "not yet supported"-style error if it isn't installed, rather than silently producing an unanchored wallet.

API

import {
  anchorDidHedera,
  resolveDidHedera,
  publishStatusListToHCS,
} from '@helixid/did-hedera';
  • anchorDidHedera(options: HederaAnchorOptions) — registers a new did:hedera identity via the Hiero DID registrar and returns { did, topicId, transactionId, didDocument }.
    interface HederaAnchorOptions {
      privateKeyHex: string; // Ed25519 private key hex used to create the DID
      operatorId: string;
      operatorKey: string;
      network: 'testnet' | 'previewnet' | 'mainnet';
      topicId?: string;
    }
  • resolveDidHedera(did: string): Promise<DIDDocument> (aliased as resolveDid) — resolves a did:hedera:... DID by reading its DID document back from the Hedera mirror node. No operator credentials needed; this is a read against public mirror data.
  • publishStatusListToHCS(statusListVC, options) — publishes an already-signed StatusList VC to an HCS topic as an additional, on-chain audit trail. The HTTPS-served status list file remains the authoritative source for revocation checks; this is supplementary, not a replacement.

Cost and network access

anchorDidHedera and publishStatusListToHCS both log a console.warn before submitting anything, naming the network and that the operator account will be debited. Both require live network access to Hedera (via @hashgraph/sdk) and a funded operator account (HEDERA_OPERATOR_ID / HEDERA_OPERATOR_KEY, read by @helixid/cli/@helixid/mcp-server via requireHederaOperator() — see their READMEs).

resolveDidHedera only reads from a public mirror node — no operator credentials or HBAR spend involved.

Testing

pnpm test:unit

Tests mock the Hiero SDK modules (@hiero-did-sdk/registrar, @hiero-did-sdk/resolver, @hiero-did-sdk/hcs) and the Hedera mirror node — no live network calls, no real HBAR spend.

License

Apache-2.0