Use this file to discover all available pages before exploring further.
Rust • Swift • Kotlin • Node.js • WASM
Build secure messaging with LibXMTP
A shared library implementing the XMTP messaging protocol with MLS (Messaging Layer Security), multi-wallet identity, and cross-platform bindings for end-to-end encrypted group messaging.
Get up and running with LibXMTP in your application
1
Install the library
Choose your platform and install LibXMTP using your package manager.
npm install @xmtp/node-bindings
2
Create a client
Initialize an XMTP client with your wallet or identity credentials.
import { Client } from '@xmtp/node-bindings'// Create a client with wallet authenticationconst client = await Client.create( accountAddress, { env: 'production', dbPath: './xmtp.db' })
The client manages your local database, identity state, and network connections. Each client is bound to a single Inbox ID and Installation ID.
3
Create or join a group
Start a new conversation or sync existing groups from the network.
// Create a new groupconst group = await client.conversations.createGroup( [member1Address, member2Address], { groupName: "Team Discussion", groupImageUrl: "https://example.com/image.png" })// Sync groups from the networkawait client.conversations.sync()const groups = await client.conversations.list()
4
Send and receive messages
Exchange end-to-end encrypted messages with group members.