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-walletconnect

v0.3.6

Published

WalletConnect adapter for PartyLayer — wraps @canton-network/dapp-sdk's WalletConnectAdapter (opt-in)

Downloads

735

Readme

@partylayer/adapter-walletconnect

Opt-in WalletConnect adapter for PartyLayer. Wraps the official @canton-network/dapp-sdk WalletConnectAdapter so dApps can connect Canton wallets over WalletConnect (hosted/mobile wallets, e.g. Nightly mobile). SIWX, the canton_ method mapping, session_event handling, and restore all come from the official adapter — this package only adapts it to PartyLayer's WalletAdapter contract.

Install (opt-in)

pnpm add @partylayer/adapter-walletconnect
# install the OPTIONAL WalletConnect peers (only needed when you use WC):
pnpm add @walletconnect/sign-client @walletconnect/types

WalletConnect is not in getBuiltinAdapters(). Register it explicitly:

import { WalletConnectAdapter } from '@partylayer/adapter-walletconnect';
import { createPartyLayer, getBuiltinAdapters } from '@partylayer/sdk';

const wc = new WalletConnectAdapter({
  projectId: process.env.NEXT_PUBLIC_WC_PROJECT_ID!,
  metadata: { name: 'My dApp', description: '…', url: 'https://my.app', icons: ['https://my.app/icon.png'] },
  // onUri is OPTIONAL/advanced — only for a custom QR UI. With @partylayer/react
  // the connect modal renders the pairing QR + deep-link out of the box (and
  // suppresses dapp-sdk's blank popup), so you normally don't pass onUri.
});

const pl = createPartyLayer({ adapters: [...getBuiltinAdapters(), wc] });

Why dynamic import

@canton-network/dapp-sdk's single barrel entry statically does import SignClient from '@walletconnect/sign-client' (an optional peer). A static import would eagerly pull @walletconnect/sign-client and break webpack/Next consumers that haven't installed it. So this adapter imports the barrel only via dynamic import() inside connect()/restore() — never at module load. detectInstalled() is pure (a projectId check), so rendering the picker never pulls dapp-sdk either. Apps that don't opt in never reference this package, so they never bundle dapp-sdk or sign-client.

Notes

  • chainId is left unset by default (per the Canton WC spec: request the canton namespace and use whatever network the wallet provides).
  • Capabilities: connect, disconnect, restore, signMessage, submitTransaction, ledgerApi, events, remoteSigner, deeplink. signTransaction is unsupported (Canton WC fuses sign-and-submit via prepareExecute).
  • Pending (separate step): a live WC E2E against a real Canton WC wallet + real projectId (NEXT_PUBLIC_WC_PROJECT_ID / VITE_WC_PROJECT_ID). The build/tests do not need a projectId.