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

@mpckit/sdk

v0.3.0

Published

MPCKit TypeScript SDK — hosted MPC signing for Sui dWallets.

Readme

@mpckit/sdk

TypeScript SDK for MPCKit: hosted MPC signing for Sui dWallets. One onboard() call runs the full zero-trust DKG ceremony; one sign() call returns a signature for Bitcoin, Ethereum, Solana, or any other curve Ika supports. No MPC node to run.

Live docs: docs.mpckit.xyz.

Install

npm install @mpckit/sdk

Quickstart

import { Curve, Hash, MPCKit, SignatureAlgorithm } from "@mpckit/sdk";
import { randomBytes } from "node:crypto";

const mpckit = new MPCKit({
  apiKey: process.env.MPCKIT_API_KEY!,
  network: "testnet", // or "mainnet"
});

// 1. Onboard. Runs zero-trust DKG end-to-end.
//    `seed` is a 32-byte secret you control (PRF output, KMS-wrapped
//    key, env-stored secret, etc.). Persist `userSecretKeyShareHex`
//    alongside the returned dwallet; you'll need it to sign.
const onboard = await mpckit.onboard({
  seed: randomBytes(32),
  curve: Curve.SECP256K1,
});

console.log(onboard.dwallet.id);
console.log(onboard.userSecretKeyShareHex);

// 2. Sign a message against the dwallet.
const { signature } = await mpckit.sign({
  seed: yourSeed,
  dwalletId: onboard.dwallet.id,
  curve: Curve.SECP256K1,
  signatureAlgorithm: SignatureAlgorithm.ECDSASecp256k1,
  hashScheme: Hash.KECCAK256,
  message: yourMessageBytes,
  userSecretKeyShareHex: onboard.userSecretKeyShareHex,
});

Browser apps: keep crypto off the main thread

The default InlineCryptoEngine runs WASM signing math synchronously on the calling thread. For browsers, drop in the worker engine:

import { MPCKit, createWebWorkerCryptoEngine } from "@mpckit/sdk";

const worker = new Worker(
  new URL("@mpckit/sdk/worker-impl", import.meta.url),
  { type: "module" },
);

const mpckit = new MPCKit({
  apiKey: import.meta.env.VITE_MPCKIT_API_KEY,
  network: "testnet",
  crypto: createWebWorkerCryptoEngine(worker),
});

React apps should reach for @mpckit/react instead, which wraps this in <MPCKitProvider useWorker /> and hands you TanStack Query hooks.

Subpath exports

  • @mpckit/sdk: main entry. MPCKit, types, errors, curve/hash enums.
  • @mpckit/sdk/eden: typed Eden client over the backend's Elysia API. Use this when you want raw HTTP control with full type inference from the backend's App type.
  • @mpckit/sdk/worker-impl: Web Worker entrypoint for createWebWorkerCryptoEngine.

Curve / signature / hash matrix

| Chain | Curve | SignatureAlgorithm | Hash | | ------------- | --------- | ------------------ | ------------ | | Ethereum | SECP256K1 | ECDSASecp256k1 | KECCAK256 | | Bitcoin | SECP256K1 | ECDSASecp256k1 | DoubleSHA256 | | Bitcoin (Taproot) | SECP256K1 | Taproot | SHA256 | | Solana | ED25519 | EdDSA | SHA512 | | WebAuthn | SECP256R1 | ECDSASecp256r1 | SHA256 | | Substrate | RISTRETTO | SchnorrkelSubstrate | Merlin |

Network selection

Each API key is bound to a Sui network. Issue one per network and construct one client per network if you need both.

License

BSD-3-Clause. Source: github.com/Iamknownasfesal/mpckit.