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

capacitor-passkey-plugin

v0.0.4

Published

Cross-platform WebAuthn (Passkeys) plugin for Capacitor supporting: web, iOS (including YubiKey), and Android.

Readme

Capacitor Passkey Plugin

A cross-platform Capacitor plugin that implements WebAuthn passkey creation and authentication for iOS, Android, and Web platforms. This plugin enables passwordless authentication using biometric and device credentials, providing a secure and seamless user experience across mobile apps and web browsers.

Features

  • Full cross-platform support: Native implementations for iOS, Android, and Web
  • Passkey creation: Register new passkeys with biometric or device authentication
  • Passkey authentication: Sign in users with existing passkeys
  • YubiKey & security key support: External FIDO2 authenticators
  • WebAuthn compatible: Follows WebAuthn standards for credential management
  • Platform-optimized: Uses iOS Keychain, Android Credential Manager API, and native browser WebAuthn
  • Unified API: Same TypeScript interface works across all platforms

Installation

npm install capacitor-passkey-plugin
npx cap sync

Quick Start

import { PasskeyPlugin } from 'capacitor-passkey-plugin';

// Create a new passkey
const credential = await PasskeyPlugin.createPasskey({
  publicKey: {
    challenge: 'base64url-encoded-challenge',
    rp: { id: 'example.com', name: 'Example App' },
    user: {
      id: 'base64url-encoded-user-id',
      name: '[email protected]',
      displayName: 'User Name'
    },
    pubKeyCredParams: [
      { alg: -7, type: 'public-key' },
      { alg: -257, type: 'public-key' }
    ],
    timeout: 60000
  }
});

// Authenticate with an existing passkey
const authResult = await PasskeyPlugin.authenticate({
  publicKey: {
    challenge: 'base64url-encoded-challenge',
    rpId: 'example.com',
    timeout: 60000
  }
});

Requirements

| Platform | Minimum Version | Notes | |----------|-----------------|-------| | iOS | 15.0 | Face ID, YubiKey (tested) | | Android | 9.0 (API 28) | Credential Manager API | | Web | Modern browsers | Chrome 67+, Firefox 60+, Safari 14+, Edge 79+ | | Capacitor | 8.0.0 | Required | | Node.js | 18.0.0 | For development |

Error Handling

All platforms use standardized error codes:

| Error Code | Description | |------------|-------------| | CANCELLED | User cancelled the operation | | UNSUPPORTED_ERROR | Passkeys not supported on device | | TIMEOUT | Operation timed out | | NO_CREDENTIAL | No matching credential found | | INVALID_INPUT | Invalid parameters provided | | RPID_VALIDATION_ERROR | Domain not configured (iOS) |

try {
  const result = await PasskeyPlugin.createPasskey(options);
} catch (error: any) {
  switch (error.code) {
    case 'CANCELLED':
      // User cancelled
      break;
    case 'UNSUPPORTED_ERROR':
      // Device doesn't support passkeys
      break;
    default:
      // Handle other errors
  }
}

Platform Guides

For detailed platform-specific configuration and troubleshooting:

  • iOS Guide - Associated Domains, Face ID/Touch ID, YubiKey setup
  • Android Guide - Digital Asset Links, Credential Manager
  • Web Guide - Browser support, HTTPS requirements

Additional Documentation

DeepWiki

Ask DeepWiki