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/kit-plugin-signer

v0.10.0

Published

Signer helpers for Kit clients

Readme

Kit Plugins ➤ Signer

npm npm-downloads

This package offers plugins that set up the payer and identity signers on your Kit clients. Each plugin comes in three variants so you can set only the payer, only the identity, or both at once.

Installation

pnpm install @solana/kit-plugin-signer

Payer vs Identity

Kit clients can hold two distinct signer roles:

  • payer — the signer responsible for paying transaction fees and storage costs (i.e. the minimum balance required to keep newly created accounts alive based on their size).
  • identity — the signer representing the wallet that owns things in the application, such as the authority over accounts, tokens, or other on-chain assets.

In many cases both roles are filled by the same keypair. Every plugin in this package therefore comes in three variants:

| Variant | Sets | | ----------- | --------------------------------------------- | | signer* | Both payer and identity (same signer) | | payer* | Only payer | | identity* | Only identity |

For instance, signer(mySigner) is a shorthand for using both payer(mySigner) and identity(mySigner).

signer / payer / identity plugins

These plugins accept an existing TransactionSigner and install it on the client.

import { createClient } from '@solana/kit';
import { signer } from '@solana/kit-plugin-signer';

const client = createClient().use(signer(mySigner));

Use payer(mySigner) or identity(mySigner) to set only one role.

generatedSigner / generatedPayer / generatedIdentity plugins

These asynchronous plugins generate a new random KeyPairSigner and install it on the client.

import { createClient } from '@solana/kit';
import { generatedSigner } from '@solana/kit-plugin-signer';

const client = await createClient().use(generatedSigner());

Use generatedPayer() or generatedIdentity() to generate a signer for only one role.

generatedSignerWithSol / generatedPayerWithSol / generatedIdentityWithSol plugins

These asynchronous plugins generate a new random KeyPairSigner, airdrop some SOL to it, and install it on the client. They require an airdrop function to already be available on the client (e.g. via rpcAirdrop or litesvmAirdrop).

import { createClient, lamports } from '@solana/kit';
import { rpcAirdrop, solanaRpcConnection, solanaRpcSubscriptionsConnection } from '@solana/kit-plugin-rpc';
import { generatedSignerWithSol } from '@solana/kit-plugin-signer';

const client = await createClient()
    .use(solanaRpcConnection('http://127.0.0.1:8899'))
    .use(solanaRpcSubscriptionsConnection('ws://127.0.0.1:8900'))
    .use(rpcAirdrop())
    .use(generatedSignerWithSol(lamports(10_000_000_000n)));

Use generatedPayerWithSol(amount) or generatedIdentityWithSol(amount) to target only one role.

airdropSigner / airdropPayer / airdropIdentity plugins

These plugins airdrop SOL to a signer that is already installed on the client. They are particularly useful when the airdrop function is provided by a plugin that requires a signer to already be installed on the client. For instance, solanaLocalRpc bundles an airdrop function but requires a payer to be set first. In that case, you can generate the signer first, then install the RPC plugin, and then use airdropSigner to fund the signer after the fact.

import { createClient, lamports } from '@solana/kit';
import { solanaLocalRpc } from '@solana/kit-plugin-rpc';
import { generatedSigner, airdropSigner } from '@solana/kit-plugin-signer';

const client = await createClient()
    .use(generatedSigner())
    .use(solanaLocalRpc())
    .use(airdropSigner(lamports(1_000_000_000n)));

Use airdropPayer(amount) or airdropIdentity(amount) to target only one role. Note that airdropSigner(amount) will throw if the payer and identity on the client are not the same signer.

signerFromFile / payerFromFile / identityFromFile plugins

These plugins load a KeyPairSigner from a local JSON keypair file and install it on the client. Node.js only — other environments will throw an error.

import { createClient } from '@solana/kit';
import { signerFromFile } from '@solana/kit-plugin-signer';

const client = await createClient().use(signerFromFile('~/.config/solana/id.json'));

Use payerFromFile(path) or identityFromFile(path) to load a signer for only one role.