npm.io
0.2.4 • Published yesterday

@nopeek/chat

Licence
UNLICENSED
Version
0.2.4
Deps
0
Vulns
0
Weekly
0

@nopeek/chat

Official client SDK for NoPeek — end-to-end-encrypted messaging. The server only ever sees ciphertext; message bodies, attachments, and key backups are all encrypted on-device (MLS-style per-channel AES-256-GCM).

import { NoPeek } from "@nopeek/chat";

const np = await NoPeek.connect({ apiUrl, appId, userId, sessionToken });
const ch = await np.channels.create({ channelTypeKey: "direct", memberIds: [userId, peerId] });
ch.on?.("message", (m) => console.log(m.body?.text));
await ch.send({ text: "encrypted before it leaves this device" });

See the NoPeek API reference for the full surface (channels, messages, recovery, backups, bots). Used by the NoPeek messenger and by @nopeek/agent-bridge.