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

@rhinestone/1auth

v0.6.8

Published

Passkey-based authentication SDK for Web3 applications

Readme

@rhinestone/1auth

Passkey-based authentication SDK for Web3 applications. Build seamless, secure authentication flows using passkeys (WebAuthn) for smart accounts.

Installation

npm install @rhinestone/1auth
# or
pnpm add @rhinestone/1auth
# or
yarn add @rhinestone/1auth

Peer Dependencies

npm install viem @wagmi/core
# React (optional, for PayButton component)
npm install react

Entry Points

The SDK provides multiple entry points for different use cases:

| Entry Point | Import | Use Case | |-------------|--------|----------| | Default | @rhinestone/1auth | Core client, provider, types | | React | @rhinestone/1auth/react | PayButton component | | Server | @rhinestone/1auth/server | Server-side intent signing | | Wagmi | @rhinestone/1auth/wagmi | Wagmi connector integration |

Quick Start

Basic Setup

import { OneAuthClient, createOneAuthProvider } from '@rhinestone/1auth';

// Create the client
const client = new OneAuthClient({
  passkeyServerUrl: 'https://passkey.1auth.box',
});

// Create an EIP-1193 compatible provider
const provider = createOneAuthProvider(client);

React Integration

import { PayButton } from '@rhinestone/1auth/react';

function CheckoutPage() {
  return (
    <PayButton
      intent={intent}
      onSuccess={(result) => console.log('Payment successful', result)}
      onError={(error) => console.error('Payment failed', error)}
    />
  );
}

Wagmi Connector

import { oneAuth } from '@rhinestone/1auth/wagmi';
import { createConfig, http } from 'wagmi';
import { mainnet, sepolia } from 'wagmi/chains';

const config = createConfig({
  chains: [mainnet, sepolia],
  connectors: [
    oneAuth({
      passkeyServerUrl: 'https://passkey.1auth.box',
    }),
  ],
  transports: {
    [mainnet.id]: http(),
    [sepolia.id]: http(),
  },
});

Server-Side Intent Signing

import { signIntent, createSignIntentHandler } from '@rhinestone/1auth/server';

// Sign an intent with Ed25519
const signedIntent = await signIntent(intent, privateKey);

// Or create a request handler
const handler = createSignIntentHandler({
  privateKey: process.env.SIGNING_KEY,
});

Core Exports

@rhinestone/1auth

  • OneAuthClient - Main client for passkey operations
  • createOneAuthProvider() - EIP-1193 compatible provider factory
  • createPasskeyWalletClient() - viem WalletClient with passkey support
  • getSupportedChains() - Get list of supported chains
  • getSupportedTokens() - Get list of supported tokens
  • Type exports for intents, accounts, and more

@rhinestone/1auth/react

  • PayButton - Pre-built payment/intent button component
  • BatchQueueProvider - Context provider for batch operations
  • BatchQueueWidget - UI widget for batch queue management
  • useBatchQueue - Hook for batch queue operations

@rhinestone/1auth/server

  • signIntent() - Server-side intent signing with Ed25519
  • createSignIntentHandler() - Express/fetch handler for intent signing

@rhinestone/1auth/wagmi

  • oneAuth() - Wagmi connector factory

License

MIT