PartyLayerDocs
Try Demo

Installation

Get up and running with PartyLayer in your project. The SDK supports React 18+ and Node.js 18+.

Prerequisites

  • Node.js 18 or later
  • React 18 or later (for React integration)
  • A Canton Network dApp — PartyLayer works with devnet, testnet, and mainnet

Install Packages

Install the core SDK and React bindings:

bash
npm install @partylayer/sdk @partylayer/react
ℹ️ Note
@partylayer/core is installed automatically as a dependency of @partylayer/sdk. You don't need to install it separately.

Vanilla JS Only

If you're not using React, you only need the core SDK:

bash
npm install @partylayer/sdk

Optional Packages

CIP-0103 Native Provider

For direct CIP-0103 provider integration (e.g., wrapping your PartyLayer client as a CIP-0103 compliant provider):

bash
npm install @partylayer/provider

Enterprise Wallet (Bron)

The Bron adapter requires explicit configuration and is not auto-registered:

tsx
import { BronAdapter } from '@partylayer/adapter-bron';
import { getBuiltinAdapters } from '@partylayer/sdk';

<PartyLayerKit
  network="mainnet"
  appName="My dApp"
  adapters={[...getBuiltinAdapters(), new BronAdapter({ clientId: '...' })]}
>
  {/* ... */}
</PartyLayerKit>

Verify Installation

After installing, verify everything works by importing the SDK:

tsx
import { createPartyLayer } from '@partylayer/sdk';
import { PartyLayerKit, ConnectButton } from '@partylayer/react';

// If these imports resolve without errors, you're good to go!
console.log('PartyLayer installed successfully');

Next, follow the Quick Start guide to build your first wallet integration.

PreviousIntroductionNextQuick Start