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

@solana/keychain-para

v1.2.0

Published

Para MPC signer for Solana transactions

Readme

@solana/keychain-para

Para MPC signer for Solana transactions using Para's REST API.

Installation

pnpm add @solana/keychain-para

Prerequisites

  1. A Para account with API access
  2. A Para secret API key (server-side only, starts with sk_)
  3. A Solana wallet created via the Para REST API or dashboard

Usage

Create and Initialize

import { createParaSigner } from '@solana/keychain-para';

// Create and initialize the signer (fetches public key from Para API)
const signer = await createParaSigner({
    apiKey: 'your-para-secret-key',
    walletId: 'your-para-wallet-id',
});

console.log('Signer address:', signer.address);

Sign Messages

import { createSignableMessage } from '@solana/signers';

const message = createSignableMessage('Hello, Para!');
const [signatures] = await signer.signMessages([message]);

Sign Transactions

// Sign transactions using Para's API
const [signatures] = await signer.signTransactions([transaction]);

Check Availability

const available = await signer.isAvailable();
console.log('Para wallet available:', available);

With Rate Limiting

If you're signing multiple transactions/messages concurrently and want to avoid rate limits:

const signer = await createParaSigner({
    apiKey: 'your-para-secret-key',
    walletId: 'your-para-wallet-id',
    requestDelayMs: 100, // 100ms delay between concurrent requests
});

Configuration

ParaSignerConfig

| Field | Type | Required | Description | |-------|------|----------|-------------| | apiKey | string | Yes | Your Para secret API key (starts with sk_) | | walletId | string | Yes | The Para wallet UUID to use for signing | | apiBaseUrl | string | No | Custom API base URL (default: https://api.getpara.com) | | requestDelayMs | number | No | Delay in ms between concurrent signing requests (default: 0) |

How It Works

  1. Initialization: Fetches the wallet's public key from Para's REST API during creation
  2. Signing: Sends raw bytes (hex-encoded) to Para's /v1/wallets/:walletId/sign-raw endpoint
  3. Response: Decodes the hex-encoded Ed25519 signature from Para's response

Para uses MPC (Multi-Party Computation) for key management — private keys are never assembled in a single location.

Error Handling

The signer will throw errors with specific codes from @solana/keychain-core:

  • CONFIG_ERROR - Invalid configuration (missing apiKey or walletId)
  • HTTP_ERROR - Network request failed
  • REMOTE_API_ERROR - Para API returned an error
  • PARSING_ERROR - Failed to parse Para response
import { SignerErrorCode } from '@solana/keychain-core';

try {
    await signer.signMessages([message]);
} catch (error) {
    if (error.code === SignerErrorCode.REMOTE_API_ERROR) {
        console.error('Para API error:', error.message);
    }
}

Security Notes

  • Store your secret key securely (use environment variables)
  • Never expose your secret key in client-side code — it starts with sk_ for a reason
  • This signer is intended for server-side use or secure environments
  • Para handles key management via MPC — your private keys never leave Para's infrastructure

Resources

License

MIT