🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more
Socket
Book a DemoInstallSign in
Socket

signall-protocol-js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

signall-protocol-js

Complete Signal Protocol implementation in pure JavaScript for Node.js

latest
Source
npmnpm
Version
3.3.0
Version published
Maintainers
1
Created
Source

🗐 Signal Protocol JS

Signal Protocol JS is a complete, pure JavaScript (Node.js) implementation of the Signal Protocol.
It provides end-to-end encryption, forward secrecy, and secure session management — similar to what is used by Signal and WhatsApp.

✨ Features

🔑 Keys & Identity🤝 Key Exchange🔄 Ratchet🛡️ Security💾 Storage📦 Backup🚀 Pure JS
Identity KeysX3DH (Triple DH)Double RatchetForward SecrecySessionStoreBackup & RestoreNo native deps

📦 Installation

Package ManagerCommand
npmnpm install signall-protocol-js
Yarnyarn add signall-protocol-js

🚀 Quick Start

StepCode
Initialize a clientimport SignalProtocolClient from 'signal-protocol-js';\n\nconst alice = new SignalProtocolClient('alice@example.com');\nawait alice.initialize();\n\nconsole.log('Alice Fingerprint:', alice.sessionStore.getIdentityKey().getFingerprint());
Messaging between Alice & Bobconst bob = new SignalProtocolClient('bob@example.com');\nawait bob.initialize();\n\n// Alice gets Bob's key bundle\nconst bobKeyBundle = bob.getKeyBundle();\n\n// Alice starts the conversation\nconst initialMessage = await alice.startConversation('bob@example.com', bobKeyBundle);\n\n// Bob accepts\nawait bob.acceptConversation('alice@example.com', initialMessage);\n\n// Encrypted message\nconst encrypted = await alice.encryptMessage('bob@example.com', 'Hello Bob!');\nconst decrypted = await bob.decryptMessage('alice@example.com', encrypted);\n\nconsole.log('Bob received:', decrypted);
Session Management// Regenerate PreKeys\nalice.regeneratePreKeys(50);\n\n// Regenerate Signed PreKey\nalice.regenerateSignedPreKey();\n\n// Show stats\nconsole.log(alice.getStatistics());

💾 Project Structure

Folder/FileDescription
keys/IdentityKey, PreKey, SignedPreKey
protocol/X3DH, Double Ratchet
session/Session handling and storage
SignalProtocol.jsMain client implementation
demo.jsFull working demo with Alice & Bob

📊 Demo

Run the included demo to test encrypted communication between two clients:

Keywords

signal

FAQs

Package last updated on 25 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts