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

helius-wallet-kit

v1.0.0

Published

Embedded Solana wallets for Helius customers. One provider, one hook.

Readme

helius-wallet-kit

Embedded Solana wallets for Helius customers. One React provider, one hook — your users get non-custodial embedded wallets, and you're billed through your existing Helius plan.

import { HeliusWalletProvider, useHeliusWallet } from 'helius-wallet-kit';

// Wrap your app
<HeliusWalletProvider config={{ apiKey: process.env.NEXT_PUBLIC_HELIUS_API_KEY! }}>
  {children}
</HeliusWalletProvider>

// Use in any component
const { address, login, signAndSendTransaction, connection } = useHeliusWallet();

Subpath exports

Single npm package. Source is organized into subdirectories that map to subpath exports:

| Import | Purpose | |---|---| | helius-wallet-kit | Meta — re-exports core + ui for the default install | | helius-wallet-kit/core | Provider, useHeliusWallet() hook, Helius integrations | | helius-wallet-kit/ui/styles.css | Wallet-modal stylesheet — pulls in the base modal styles and hides third-party branding. Import once in your root layout. | | helius-wallet-kit/next | Next.js middleware — server-side proxies for the Helius API routes the client expects |

Prerequisites

Quick start

npm install helius-wallet-kit

Import the stylesheet in your root layout:

// src/app/layout.tsx
import "helius-wallet-kit/ui/styles.css";

Wrap your app:

// src/app/providers.tsx
'use client';
import { HeliusWalletProvider } from 'helius-wallet-kit';

export function Providers({ children }) {
  return (
    <HeliusWalletProvider
      config={{
        apiKey: process.env.NEXT_PUBLIC_HELIUS_API_KEY!,
        cluster: 'devnet',
      }}
    >
      {children}
    </HeliusWalletProvider>
  );
}

Done. useHeliusWallet() works in any client component under the provider — no server route required (see Going proxy-less).

(Optional) Add the route handler to keep your API key fully server-side, or to use transaction history and Sender-optimized landing:

// src/app/api/helius/[...path]/route.ts
import { createHeliusRouteHandler } from 'helius-wallet-kit/next';
export const { GET, POST } = createHeliusRouteHandler();

Note on your API key. In this version the provider reads the key on the client (NEXT_PUBLIC_HELIUS_API_KEY), so it is visible in the browser. It's sent to Helius to bootstrap the wallet (origin-locked by the key's allowed domains) and to your route handler for RPC/transactions. Use a dedicated, domain-restricted key you can rotate. Fully server-side key handling (key never leaves your server) is on the roadmap.

Going proxy-less (Secure RPC URL)

You can run the core wallet — login, sign, and send — with no route handler. As of 0.2.0 the SDK fetches your project's key-less Secure RPC URLs and its project id (for usage attribution) during bootstrap, so the minimal config is just your API key:

<HeliusWalletProvider
  config={{
    apiKey: process.env.NEXT_PUBLIC_HELIUS_API_KEY!,
    cluster: "mainnet-beta",
  }}
>

The wallet's Solana connection, priority-fee lookups, and signAndSendTransaction then go directly to the secure URL — no route handler, and no API key on the RPC path. (The bootstrap itself calls Helius with your API key, origin-locked by the key's allowed domains.)

To pin the endpoints yourself (local/staging, or a self-hosted proxy), pass secureRpcUrl per cluster — an explicit value overrides the auto-fetched one:

secureRpcUrl: {
  "mainnet-beta": "https://<your>-fast-mainnet.helius-rpc.com",
  devnet: "https://<your>-fast-devnet.helius-rpc.com",
},

Two things direct mode does not cover:

  • Transaction history (getTransactions) uses the Enhanced Transactions API, which has no secure-URL equivalent — it still needs the route handler.
  • Sender-optimized landing — direct sends use standard RPC (sendRawTransaction), not Helius Sender's Jito routing. Mount the route handler if you want Sender.

Architecture in one paragraph

HeliusWalletProvider fetches bootstrap config from a Helius-owned /waas/config endpoint on mount, then stands up a non-custodial wallet client under the hood. Developers don't see or depend on the backing wallet infrastructure — it's an internal implementation detail isolated behind a single adapter module, so it can be swapped or upgraded without changing the consumer API.

License

MIT.