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

keepkey-vault-sdk

v3.0.1

Published

Typed TypeScript SDK for the KeepKey REST API — zero dependencies, native fetch, works in browser, Node, Bun, and edge runtimes.

Downloads

697

Readme

keepkey-vault-sdk

Typed TypeScript SDK for the KeepKey hardware wallet REST API.

Zero dependencies, native fetch. Works in browser, Node, Bun, and edge runtimes.

Install

npm install keepkey-vault-sdk
# or
pnpm add keepkey-vault-sdk
# or
bun add keepkey-vault-sdk
import { KeepKeySdk } from 'keepkey-vault-sdk'

Requirements

The KeepKey desktop application must be running on the same machine as your app. It exposes the REST API on http://localhost:1646.

Download the latest desktop application: https://github.com/keepkey/keepkey-vault/releases/latest

Quick start

import { KeepKeySdk } from 'keepkey-vault-sdk'

// Auto-pairs on first run — prompts the user to approve in the KeepKey app.
const sdk = await KeepKeySdk.create({
  serviceName: 'My App',
  serviceImageUrl: 'https://example.com/icon.png',
})

// Derive an ETH address
const { address } = await sdk.address.ethGetAddress({
  address_n: [0x8000002C, 0x8000003C, 0x80000000, 0, 0],
  show_display: true,
})

console.log(address)

Reusing a saved API key

After the first successful pairing, save the API key and reuse it on subsequent runs to skip the approval prompt:

const sdk = await KeepKeySdk.create({
  apiKey: process.env.KEEPKEY_API_KEY,
  serviceName: 'My App',
})

console.log(sdk.apiKey) // store this somewhere safe

If the key is invalid or revoked, the SDK will re-pair automatically.

API surface

All methods are grouped by domain on the KeepKeySdk instance:

| Namespace | What it does | |-----------------|---------------------------------------------------------------------| | sdk.system | Device info, health, PIN management, initialization, firmware | | sdk.address | Derive addresses (BTC, ETH, Cosmos, Osmosis, Solana, XRP, TRON, …) | | sdk.eth | Ethereum signing — tx, message, EIP-712 typed data | | sdk.btc | Bitcoin / UTXO transaction signing | | sdk.cosmos | Cosmos Hub amino signing — transfer, staking, IBC | | sdk.osmosis | Osmosis amino signing — transfer, staking, IBC, LP, swap | | sdk.thorchain | THORChain transfer and deposit | | sdk.mayachain | MAYAChain transfer and deposit | | sdk.ripple | XRP transaction signing | | sdk.binance | BNB Beacon Chain signing | | sdk.solana | Solana transaction signing (incl. SPL tokens) | | sdk.tron | TRON signing (incl. TRC-20) | | sdk.ton | TON signing (incl. Jettons) | | sdk.xpub | Extended public key derivation — single and batch | | sdk.chain | Portfolio balances, market info, UTXOs, tx history, swap quotes | | sdk.sweep | Recover BTC from non-standard derivation paths |

OpenAPI spec

The REST API specification is bundled with the package:

import spec from 'keepkey-vault-sdk/openapi/swagger.json'

Use it with Swagger UI, Redoc, or any OpenAPI-compatible tool.

Security

  • Every signing operation requires the user to confirm on the KeepKey hardware device.
  • Signing endpoints block until the user approves or rejects. Default timeout is 10 minutes.
  • The API key grants the holder the ability to request signatures from the device. The device is still the only place the user's keys exist.

License

MIT