Try it in the browser (POC)
Thel2ps-poc app ships a 💬 Messaging tab that talks to the L2PS messaging server directly over WebSocket, so you can register wallets and exchange messages without writing any code. It’s the fastest way to confirm the server’s register → send → receive → offline-queue path end to end.
A peer is a wallet (an Ed25519 key), not a node. Two peers = two mnemonics, both connected to the same messaging server. Run the POC in two browser sessions to drive two peers at once. Messaging is free — no DEM or balance required.
1. Start a node with messaging enabled
In thenode repo, create a matching L2PS subnet and start the node with the messaging server on port 3006:
2. Point the POC at the node
Inl2ps-poc/.env:
npm install && npm run dev.
3. Chat between two peers
Open two sessions
Open the POC in two browser sessions — e.g. a normal window and an incognito window — so each holds its own wallet.
Register both peers
In each: open 💬 Messaging → Connect & Register. The status turns green
registered and online peers appear.Send a message
Copy one peer’s key from the
You: 0x… line into the other’s recipient field (or click the peer chip), type a message, and Send — it shows up in the other session.What it does (and doesn’t)
The tab implements the wire protocol directly (seesrc/hooks/useMessaging.ts): it signs the register:{publicKey}:{timestamp} proof with the wallet’s ed25519 key, then exchanges send / message frames. The server requires a non-empty ciphertext and nonce, enforces size caps (message ≤ 256 KB, ciphertext ≤ 128 KB), and queues up to 200 offline messages per sender.
Quickstart (SDK)
Build a real client with
L2PSMessagingPeer.l2ps-poc repository
Source for the Messaging tab.