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

@seams/voiceid

v0.76.0

Published

Optional browser VoiceID authentication for Seams Wallet

Readme

@seams/voiceid

Optional browser VoiceID authentication for @seams/wallet 1.0.0. This package owns microphone capture, enrollment, local inference, voice UI, and the model/runtime assets. The Wallet SDK owns custody, sessions, signing, and the trusted host API. Existing voice enrollments keep their storage identity.

Enable in the application

Install matching Wallet and VoiceID versions, then import the descriptor:

pnpm add @seams/[email protected] @seams/[email protected]
import { defineSeamsConfig } from '@seams/wallet';
import { voiceIdAuthMethod } from '@seams/voiceid';

const config = defineSeamsConfig({
  walletOrigin,
  relayerUrl,
  publishableKey,
  authMethods: [voiceIdAuthMethod({ transcriptionModel: 'citrinet' })],
});

Choose transcriptionModel: 'aurora' for the smaller speech model. Citrinet is the default when this option is omitted. The choice applies to enrollment and unlock. Each action keeps its chosen model throughout preparation and recording.

| Speech model | Uncompressed | Gzip | | --- | ---: | ---: | | Citrinet INT8 | 10.48 MB | 8.84 MB | | Aurora INT8 | 1.34 MB | 1.02 MB |

Both models ship with this package. The browser downloads only the selected speech model, plus the shared speaker model, speech detector, and inference engine. Each model has its own integrity-checked cache. Changing the speech model preserves saved speaker samples and verification thresholds.

The root entry contains only the descriptor. Importing it or enabling it does not load capture code, ONNX Runtime, or models. The selected VoiceID action starts loading in the trusted Wallet iframe. Passkey and Email OTP flows remain independent.

The optional VoiceBeam and VoiceAssistantCard visuals are exported from @seams/voiceid/react. Import @seams/voiceid/styles when using the card.

Signing after a VoiceID unlock

VoiceID works like a passkey. A VoiceID unlock opens a normal signing session. Each operation on any chain shows the ordinary Confirm, with no further voice check, within the session's uses and expiry. When the session runs out or expires, the next operation asks for VoiceID again inside the Wallet, then signs. A transaction asks inside its own confirm card: Confirm with VoiceID, the voice capture in the same card, then the receipt. It never asks for a passkey. Key export asks for one more voice check, bound to that export, and never for a passkey or Email OTP.

Install on the Wallet host

The Wallet host operator must also install this package. App configuration cannot provide executable code or choose a plugin URL. A plain @seams/wallet deployment contains no VoiceID implementation, engine, or models.

Compose a separate deployment directory from the two installed packages:

npx --no-install seams-voiceid-host ./wallet-with-voiceid

The command finds the installed Wallet package automatically, including pnpm layouts. The output directory must be new and separate from the installed package trees. Serve its /wallet-service, /sdk/*, and manifest files from the Wallet origin. The command preserves the plain Wallet package and extends the existing asset manifest with /sdk/voiceid/*.

Node deployments that compose a specific Wallet build can call the operation directly:

import { composeVoiceIdWalletAssets } from '@seams/voiceid/hosting';

await composeVoiceIdWalletAssets({
  walletPublicDirectory: './node_modules/@seams/wallet/dist/public',
  outputDirectory: './wallet-with-voiceid',
});

The host loads /sdk/voiceid/host.js only for an enabled VoiceID action. Both sides check the host API version. A missing package produces an explicit installation error. It cannot fall back to a different authentication method.

Loading and storage

One cumulative indicator covers the engine WASM and three models. It then shows Preparing VoiceID… until inference is ready. Downloaded assets are checked by length and SHA-256 before use. Browser cache retention is best effort.

Interrupted downloads receive one automatic retry. A stalled download times out after 30 seconds without progress. Further failures show Retry loading in the same card. Retry keeps verified assets and voice enrollment. Close the card to choose a passkey instead. A missing or incompatible host package requires an operator fix; other module failures include connection and reload instructions.

VoiceID remembers the microphone used for usable audio in this browser. Enrollment and unlock request that input even when the system default changes. If it is unavailable, VoiceID can use the current default. Reconnecting the saved microphone restores it. Interrupted recordings require a new attempt. Voice enrollment and verification thresholds stay unchanged. Choose Use system microphone on the retry prompt to switch inputs. The next Record click uses the system default and remembers it after usable audio.

The cold payload before transfer compression is roughly 27 MB with Aurora or 36 MB with Citrinet. Splitting it removes that payload from Wallet-only installations. It does not reduce the bytes needed for the first VoiceID operation.

Use the public VoiceID guide for enrollment, unlock, signing, and storage behavior. See implementation notes for code boundaries and enrollment storage.