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

@partylayer/adapter-send

v1.0.3

Published

Send Canton Wallet adapter for PartyLayer (CIP-0103, passkey-based via Sigilry)

Readme

@partylayer/adapter-send

Send Canton Wallet adapter for PartyLayer

npm version License: MIT


Overview

Adapter for Send, a passkey-based Canton wallet. Send is delivered as a browser extension that injects a window.canton provider following the splice-wallet-kernel OpenRPC contract; the dApp connection layer is open-sourced as Sigilry.

Note: This adapter is included in @partylayer/sdk by default. You only need to install it separately if you build a custom adapter list.


Installation

npm install @partylayer/adapter-send

Users connect through a browser extension. Direct them to sigilry.org for current installation instructions before they can connect.


Quick start

import { useConnect } from '@partylayer/react';

function ConnectWithSend() {
  const { connect, isConnecting } = useConnect();
  return (
    <button onClick={() => connect('send')} disabled={isConnecting}>
      {isConnecting ? 'Connecting…' : 'Connect with Send'}
    </button>
  );
}

PartyLayerKit registers Send automatically — no extra wiring needed.

For explicit registration in a custom adapter list:

import { createPartyLayer, getBuiltinAdapters, SendAdapter } from '@partylayer/sdk';

const client = createPartyLayer({
  network: 'mainnet',
  appName: 'My dApp',
  adapters: [...getBuiltinAdapters(), new SendAdapter()],
});

Capabilities

| Capability | Send | Notes | |---------------------|:----:|----------------------------------------------------------------------------------------| | connect | ✓ | Sigilry connect RPC + getPrimaryAccount | | disconnect | ✓ | — | | restore | ✓ | Silent status probe — no popup on page reload | | signMessage | ✓ | Passkey-signed (WebAuthn-PRF / Touch ID / Face ID) | | signTransaction | ✗ | Fused into prepareExecute; throws CapabilityNotSupportedError pointing at submit | | submitTransaction | ✓ | Via prepareExecuteAndWait; receipt populated from tx.payload.updateId | | ledgerApi | ✓ | Full Sigilry passthrough (matches Console / Nightly) | | events | ✓ | txChanged bridged to PartyLayer tx:status | | injected | ✓ | window.canton discovery with registry-driven detection guard |


CIP-0103 compliance

@partylayer/adapter-send is a CIP-0103 native adapter. It exposes the Send wallet's window.canton provider through PartyLayer's standard WalletAdapter interface so the same dApp code that talks to any other CIP-0103 wallet (Console, Loop, Nightly, Cantor8) also talks to Send.

The adapter:

  • Maps every Sigilry RPC method (status, connect, disconnect, getPrimaryAccount, signMessage, prepareExecute, prepareExecuteAndWait, ledgerApi) onto the PartyLayer capability surface declared in getCapabilities().
  • Bridges Send's txChanged event into PartyLayer's tx:status channel so transaction subscribers receive the same shape regardless of which wallet is connected.
  • Routes structured JSON-RPC errors (4001 user-rejected, 4100/4900/4901 transport, -32601 method-not-supported) onto the canonical PartyLayer error taxonomy (UserRejectedError, TransportError, CapabilityNotSupportedError), so existing error-handling branches in dApp code continue to work without modification.

Detection

The Send adapter detects whether the running browser has a compatible Send install via the registry's providerDetection rules. The same window.canton slot is shared with other splice-wallet-kernel-compatible extensions, so the adapter funnels every RPC call through a guard that verifies the live provider matches Send's detection rule before forwarding.

When detection fails — Send is not installed, or another Canton wallet is currently occupying window.canton — the adapter raises a typed error consumers can branch on:

  • SendNotInstalledError (subclass of WalletNotInstalledError) — surfaced from detectInstalled() and from any RPC call when window.canton is absent. Carries details.installUrl so a dApp can present a single click-through to the Send wallet homepage.
  • SendKernelMismatchError (also a subclass of WalletNotInstalledError) — surfaced when window.canton is present but its identity doesn't match Send. The adapter cleanly returns "not installed" so any other CIP-0103 adapter present in the registry can claim the active provider instead.
  • SendAuthTimeoutError — surfaced when Send's authentication backend is unreachable or slow. Carries details.cause = 'send-auth-timeout' plus retry: true so a dApp can present a "try again" affordance rather than treating the failure as a permanent error.

Compatibility

| Requirement | Value | |----------------------|--------------------------------------------------------| | Browser | Chromium-based browsers with WebAuthn-PRF support | | Authentication | Passkey (Touch ID / Face ID / platform authenticator) | | Canton network | canton:mainnet | | @partylayer/sdk | >=0.3.6 |


Send-specific behaviors

  • Passkey per signature. Every signMessage and every submitTransaction triggers a fresh passkey unlock. Send does not cache passkey approval across calls — by design.
  • Sign-and-submit are fused. Send does not expose a standalone signTransaction step. The adapter mirrors that: signTransaction() throws CapabilityNotSupportedError pointing at submitTransaction() (prepareExecuteAndWait under the hood).
  • CIP-56 hint. Submitting a legacy Amulet_Transfer exercise on Splice.Amulet:Amulet produces an actionable error pointing at the Token Standard TransferFactory_Transfer flow. Same hint as the Loop adapter.

References


License

MIT