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

oneclick-wallet-sdk

v0.1.0

Published

OneClick TypeScript SDK for passkey-based smart wallets on Avalanche

Downloads

106

Readme

@anthropic-oneclick/sdk

TypeScript SDK for OneClick -- passkey-based smart wallets on Avalanche.

Users authenticate with FaceID/TouchID. No seed phrases, no gas fees, no network switching.

Install

npm install @anthropic-oneclick/sdk

Quick Start

import { connect } from '@anthropic-oneclick/sdk';

// 1. Connect -- creates a passkey and deploys a smart wallet
const wallet = await connect({ relayerUrl: 'https://your-relayer.example.com' });

console.log('Wallet address:', wallet.address);

// 2. Send a transaction (user confirms with FaceID/TouchID)
const tx = await wallet.execute({
  target: '0xRecipientAddress',
  value: '1000000000000000', // 0.001 AVAX in wei
  data: '0x',
  chainId: 43113,           // Fuji testnet
});

console.log('TX hash:', tx.hash);

// 3. Check balance
const balances = await wallet.getBalance();
console.log(balances);

API

connect(config): Promise<OneClickWallet>

Creates a passkey via WebAuthn and deploys a smart wallet through the relayer.

| Parameter | Type | Description | |-----------|------|-------------| | config.relayerUrl | string | OneClick relayer endpoint |

OneClickWallet

| Method | Returns | Description | |--------|---------|-------------| | execute(tx) | Promise<TransactionResponse> | Sign and execute a transaction | | getBalance(chainId?) | Promise<{chainId, balance}[]> | Get wallet balance | | .address | string | Smart wallet address | | .pubKeyX | string | P256 public key X coordinate | | .pubKeyY | string | P256 public key Y coordinate |

createPasskey(username): Promise<PasskeyCredential>

Low-level: create a WebAuthn passkey and extract the P256 public key (x, y) from COSE.

signChallenge(credentialId, challenge): Promise<SignatureData>

Low-level: sign a challenge with an existing passkey. Returns (r, s) + authenticator metadata.

How It Works

User (FaceID/TouchID)
  -> SDK (WebAuthn API, this package)
    -> Relayer (meta-transaction submission)
      -> Smart Contracts (P256 verification via RIP-7212 precompile)
  1. Registration: createPasskey() calls navigator.credentials.create(), extracts P256 public key from COSE/CBOR
  2. Signing: signChallenge() calls navigator.credentials.get(), converts DER signature to raw (r, s)
  3. Execution: SDK sends the signed intent to the relayer, which submits it on-chain

Types

interface OneClickConfig { relayerUrl: string }
interface PasskeyCredential { credentialId: string; pubKeyX: string; pubKeyY: string; rawId: Uint8Array }
interface TransactionRequest { target: string; value: string; data: string; chainId: number }
interface TransactionResponse { hash: string; chainId: number; status: 'pending' | 'confirmed' | 'failed' }
interface SignatureData { r: string; s: string; authenticatorData: string; clientDataJSON: string }

Requirements

  • Browser with WebAuthn support (all modern browsers)
  • Platform authenticator (FaceID, TouchID, Windows Hello)
  • Running OneClick relayer instance

License

MIT