Skip to content

LazorKit

A React SDK for WebAuthn-based Solana wallet authentication using passkeys and smart wallets.

npm install @lazorkit/wallet

Overview

LazorKit provides passwordless authentication for Solana applications through WebAuthn passkeys, eliminating the need for traditional seed phrases or browser extensions. The SDK features smart wallet integration with automatic session management and optional gasless transactions.

Key Features

WebAuthn Authentication
  • Passkey-based wallet creation and access
  • Hardware-secured key storage
  • Cross-device credential synchronization
  • Automatic reconnection handling
Smart Wallet Integration
  • Programmable transaction authorization
  • Session-based execution patterns
  • External payer support for gasless transactions
  • Flexible creation workflows
Developer Experience
  • React hooks and context providers
  • TypeScript support with full type definitions
  • Comprehensive error handling
  • Event-driven architecture

Development Status

Current Release: Beta
  • Solana Devnet support
  • React 18+ compatibility
  • Modern browser requirements (WebAuthn support)

Production readiness is planned for the stable 1.0 release.

Quick Start

import { LazorkitProvider, useWallet } from '@lazorkit/wallet';
 
function App() {
  return (
    <LazorkitProvider
      rpcUrl={process.env.REACT_APP_RPC_URL}
      paymasterUrl={process.env.REACT_APP_PAYMASTER_URL}
      ipfsUrl={process.env.REACT_APP_PORTAL_URL}
    >
      <WalletDemo />
    </LazorkitProvider>
  );
}
 
function WalletDemo() {
  const { connect, disconnect, isConnected, smartWalletPubkey } = useWallet();
 
  return (
    <div>
      {!isConnected ? (
        <button onClick={connect}>Connect Wallet</button>
      ) : (
        <div>
          <p>Connected: {smartWalletPubkey?.toString().slice(0, 8)}...</p>
          <button onClick={disconnect}>Disconnect</button>
        </div>
      )}
    </div>
  );
}

Documentation

Kora Relayer Integration

Contributing

LazorKit is an open source project. Contributions are welcome via GitHub issues and pull requests.

License

MIT License - see LICENSE file for details.