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

@hiveio/wax-signers-external

v2.0.0

Published

Wax signer library for external encrypted key storage

Readme

@hiveio/wax-signers-external

External wallet signature provider for Hive blockchain. Stores encrypted private keys in external cloud storage and provides transaction signing capabilities.

Installation

npm install @hiveio/wax-signers-external

Quick Start

This example is specific only for Google Drive which is currently the only supported storage provider. See signers-external TypeScript example in Wax repo for storage provider configuration details.

import { createWaxFoundation } from '@hiveio/wax';
import { createExternalWallet } from '@hiveio/wax-signers-external';

const wax = await createWaxFoundation();

const wallet = await createExternalWallet(
  wax,
  /**
   * Token provider callback function
   * This function should return a valid Google OAuth2 access token
   * The callback will be invoked before each API call to ensure fresh tokens
  */
  async () => getStorageAuthToken(),
  /** Callback function to query for storage password or provide cached encryption key.
   *  @param missingStorageFile if true, it should enforce query for new password
   *  @returns Either a password (which will be used to derive encryption key) or the encryption key WIF directly
  */
  async (missingFile) => ({ password })
);

// Store and use keys
const content = await wallet.createForHiveKey('posting', 'myaccount', '5J...');
const signedTx = await myTransaction.sign(content);

await wallet.close();

Supports AsyncDisposable for automatic cleanup:

await using wallet = await createExternalWallet(wax, tokenProvider, passwordProvider);
const content = await wallet.loadForHiveKey('myaccount', 'posting');

Key Types

Hive Role Keys: posting, active, owner, memo

Custom Keys: Arbitrary keys identified by alias string, useful for application-specific signing.

Storage Providers

| Provider | Enum Value | Description | |----------|------------|-------------| | Google Drive | EStorageProviders.GOOGLE_DRIVE | Stores wallet in app-private folder |

Error Handling

import { WaxExternalSignatureProviderError } from '@hiveio/wax-signers-external';

try {
  const content = await wallet.loadForHiveKey('alice', 'posting');
} catch (error) {
  if (error instanceof WaxExternalSignatureProviderError) {
    // Handle: KEY_NOT_FOUND, DECRYPTION_FAILED, etc.
  }
}

License

SEE LICENSE IN LICENSE.md