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

@veridex-protocol/sdk

v1.0.0-beta.1

Published

Veridex Protocol SDK - Client library for Passkey-based cross-chain authentication

Readme

@veridex/sdk

Veridex Protocol SDK - Client library for Passkey-based cross-chain authentication.

Build applications with WebAuthn/Passkeys (P-256) that work across EVM, Solana, Aptos, Sui, and Starknet.

Features

  • Passkey Authentication - WebAuthn P-256 signature verification (no seed phrases)
  • Cross-Chain Support - EVM, Solana, Aptos, Sui, Starknet
  • Deterministic Vaults - Same address across all EVM chains
  • Gasless Transactions - Relayer-sponsored execution
  • Session Keys - Temporary delegated access for smooth UX
  • Wormhole Integration - Guardian-attested cross-chain messaging

Installation

npm install @veridex/sdk ethers
# or
yarn add @veridex/sdk ethers
# or
bun add @veridex/sdk ethers

Quick Start

import { createSDK } from '@veridex/sdk';

// Initialize SDK (testnet by default)
const sdk = createSDK('base');

// Register a passkey
const credential = await sdk.passkey.register('[email protected]', 'My Wallet');

// Get your vault address (same on all EVM chains!)
const vaultAddress = sdk.getVaultAddress();
console.log('Your vault:', vaultAddress);

// Transfer tokens
await sdk.transfer({
  token: '0x036CbD53842c5426634e7929541eC2318f3dCF7e', // USDC
  recipient: '0x742d35Cc6634C0532925a3b844Bc9e7595f5A234',
  amount: 1000000n, // 1 USDC (6 decimals)
});

Networks

// Testnet (default)
const testnetSdk = createSDK('base');

// Mainnet
const mainnetSdk = createSDK('base', { network: 'mainnet' });

// Custom RPC
const customSdk = createSDK('base', { 
  rpcUrl: 'https://my-rpc.example.com' 
});

Supported Chains

| Chain | Type | Status | |-------|------|--------| | Base | Hub (EVM) | Testnet + Mainnet | | Optimism | Spoke (EVM) | Testnet + Mainnet | | Arbitrum | Spoke (EVM) | Testnet + Mainnet | | Ethereum | Spoke (EVM) | Testnet + Mainnet | | Polygon | Spoke (EVM) | Testnet + Mainnet | | Solana | Spoke | Devnet + Mainnet | | Aptos | Spoke | Testnet + Mainnet | | Sui | Spoke | Testnet + Mainnet | | Starknet | Spoke | Sepolia + Mainnet |

Gasless Transactions

const sdk = createSDK('base', {
  relayerUrl: 'https://relayer.veridex.io',
  relayerApiKey: 'your-api-key',
});

// Transfers are now gasless
await sdk.transferViaRelayer({
  token: USDC_ADDRESS,
  recipient: '0x...',
  amount: 1000000n,
});

Session Keys

Enable seamless UX without repeated biometric prompts:

// Create a 1-hour session with 0.1 ETH limit
const session = await sdk.sessions.create({
  duration: 3600,
  maxValue: parseEther('0.1'),
});

// Execute multiple transactions without prompts
await sdk.sessions.transfer(session, { ... });
await sdk.sessions.transfer(session, { ... });

// Revoke when done
await sdk.sessions.revoke(session);

Cross-Chain Bridging

import { parseUnits } from 'ethers';

await sdk.bridge({
  targetChain: 'optimism',
  token: USDC_ADDRESS,
  amount: parseUnits('100', 6),
  recipient: '0x...', // Optional, defaults to your vault
});

API Reference

Core

| Export | Description | |--------|-------------| | createSDK(chain, config?) | Create SDK for a chain | | VeridexSDK | Main SDK class | | PasskeyManager | WebAuthn credential management | | WalletManager | Vault address derivation | | SessionManager | Session key management |

Chain Clients

import { EVMClient } from '@veridex/sdk/chains/evm';
import { SolanaClient } from '@veridex/sdk/chains/solana';
import { AptosClient } from '@veridex/sdk/chains/aptos';
import { SuiClient } from '@veridex/sdk/chains/sui';
import { StarknetClient } from '@veridex/sdk/chains/starknet';

Utilities

import { 
  encodeTransferAction,
  encodeBridgeAction,
  parseVAA,
  fetchVAA,
} from '@veridex/sdk';

Constants

import { 
  WORMHOLE_CHAIN_IDS,
  TESTNET_CHAINS,
  MAINNET_CHAINS,
} from '@veridex/sdk';

Security

  • Passkeys Only - No EOA or seed phrase assumptions
  • RIP-7212 Support - Native P-256 verification (~3,450 gas)
  • FCL Fallback - Software verification when precompile unavailable
  • Wormhole VAA - 13/19 guardian quorum for cross-chain messages
  • Replay Protection - Nonce-based action deduplication

Browser Support

WebAuthn requires a secure context (HTTPS) and a compatible browser:

| Browser | Minimum Version | |---------|-----------------| | Chrome | 67+ | | Firefox | 60+ | | Safari | 14+ | | Edge | 18+ |

TypeScript

Full TypeScript support with comprehensive type definitions:

import type {
  ChainName,
  NetworkType,
  SimpleSDKConfig,
  TransferParams,
  BridgeParams,
  SessionKey,
} from '@veridex/sdk';

License

MIT

Links