Skip to Content
OpenE2EEDocs

Package subpaths

The complete exports map of @open-e2ee/signal-protocol-sdk — every importable subpath, what it exports, and each entry's support status.

Applies to @open-e2ee/signal-protocol-sdk 15.0.x. Public APIs and persisted formats follow semantic versioning.

The package is ESM-only ("type": "module"), and package.json marks it as sideEffects: false. It requires Node >= 22.12.0. Every peer dependency is optional: install only what your chosen adapters need. The following tables contain all 58 entries of the exports map: the root, ./package.json, and 56 subpaths.

Imports are exact. @open-e2ee/signal-protocol-sdk/keys resolves. @open-e2ee/signal-protocol-sdk/dist/keys and @open-e2ee/signal-protocol-sdk/src/keys do not. Deep paths outside this map are not reachable through the exports field.

internal/** is implementation-only and not part of the supported external API. The exports map omits it, so you cannot import it through the package name. If a symbol exists only inside internal/, treat it as unavailable. Internal APIs carry no compatibility promise across releases.

Root

SubpathExports
.createHostedSignalProtocolClient, joinHostedSignalProtocolRelayAccount, approveHostedSignalProtocolRelayDeviceLink, linkHostedSignalProtocolRelayDevice, createSignalProtocolClient, createSignalProtocolClientConfig, SignalProtocolClient, PostQuantumPolicy, BraidPolicy, the error taxonomy, and the commonly used types
./package.jsonThe manifest itself, for tooling that reads the version

The root re-exports the broadly used surface. Everything below it is available for narrower imports and for symbols the root does not lift.

Client

SubpathExports
./clientDefaultSignalProtocolClient, createHostedSignalProtocolClient, bindSignalProtocolRelayLifecycle, SignalProtocolRelayLifecycleAppState, SignalProtocolRelayLifecycleOptions, and the client-level re-exports
./client/composecreateSignalProtocolClient, createSignalProtocolClientConfig, SignalProtocolClientCompositionOptions, SignalProtocolClientIdentityConfig, SignalProtocolClientAdapterConfig
./client/configSignalProtocolClientConfig, DoubleRatchetConfig, SealedSenderConfig, SenderKeysConfig, ProgressCallback, Logger
./client/typesSendOptions, SendResult, DataMessageInput, IncomingEnvelope, ProcessEnvelopeOptions, SessionHealthResult
./client/constantsMESSAGE_RECORD_TTL_MS, MAX_RETRY_RESPONSES_PER_MESSAGE, isImplicitContentType
./client/headlessrotateKeysHeadless, checkRotationNeeded, HeadlessRotationOptions, PreKeyRotationResult
./client/endorsement-managerEndorsementManager, EndorsementCacheStore

./client/headless exists for scheduled maintenance without a UI: a background task or a server-side job that rotates keys. ./client/endorsement-manager supports group send endorsements.

Device

SubpathExports
./deviceprepareNewDeviceTransfer, prepareOldDeviceTransferWithBackup, createDeviceBackup, restoreDeviceBackup, encryptDeviceName, MAX_DEVICES
./device/lifecycleDeviceLifecycleManager, getLocalDeviceMetadata
./device/device-idgetDeviceId, getDeviceIdSync, preloadDeviceId, clearDeviceIdCache
./device/expogetTransferDeviceInfo, getDeviceLifecyclePlatform, which read the local device metadata on Expo
./device/react-nativegetTransferDeviceInfo, getDeviceLifecyclePlatform, which read the local device metadata on bare React Native
./device/constantsDEFAULT_DEVICE_ID, MAX_DEVICES, DEVICE_ID_KEY, DEVICE_NAME_KEY, LOCAL_IDENTITY_KEY, DEVICE_REGISTERED_USER_ID_KEY, DEVICE_OWNER_SENTINEL

There is no client.device.* namespace. Device transfer and backup are these modules.

The managed device link is in the package root. In the two-device link, the new device calls joinHostedSignalProtocolRelayAccount(), and device 1 calls approveHostedSignalProtocolRelayDeviceLink(). The one-process link is linkHostedSignalProtocolRelayDevice(). To manage the devices of the account, call listHostedSignalProtocolRelayDevices(), renameHostedSignalProtocolRelayDevice(), and removeHostedSignalProtocolRelayDevice(). See device lifecycle and multi-device.

Keys, trust, and identity

SubpathExports
./keysRe-exports of ./keys/generation and ./keys/types
./keys/generationgenerateIdentityKeyPair, generateRegistrationId, generateEcSignedPreKey, generateEcSignedPreKeyId, generateEcOneTimePreKeys, generateKyberLastResortPreKey, generateKemOneTimePreKeys
./keys/typesCompositeIdentityV1, IdentityTrustState, ContactIdentityRecord, PreKeyBundle, IdentityType
./safetygenerateCompositeSafetyNumber, generateSingleKeyReferenceSafetyNumber, compareSafetyNumbers, isValidSafetyNumber, clearFingerprintCache, Fingerprint, DisplayableFingerprint, ScannableFingerprint, verify-URL helpers
./sealed-senderderiveAccessKey, ACCESS_KEY_BYTES

IdentityTrustState is exactly 'UNVERIFIED_TOFU' | 'VERIFIED'. See keys, identity, and sessions.

Feature modules

SubpathExports
./groupsGroupManager, createGroupId, GroupServer, GroupStateStore, DecryptedGroup, AccessControl
./blockingSignalProtocolBlockingManager — blockRecipient, unblockRecipient, isBlocked, listBlockedRecipients, applySyncSnapshot
./profileencryptProfileName, decryptProfileName, getOrCreateOwnProfileKey, setOwnProfileKey, updateEncryptedProfile
./usernameformatUsername, hashUsername, parseUsername
./username/linkcreateUsernameLink, decryptUsernameLink
./mediaMediaAttachmentPointer, MediaAttachmentMessage, MediaAttachmentError, MediaAttachmentErrorCode, MediaAttachmentTransferOptions, MEDIA_ATTACHMENT_POLICY_DEFAULTS, MEDIA_ATTACHMENT_POLICY_PRESETS
./filesstreamingEncrypt, streamingDecrypt, DEFAULT_SEGMENT_SIZE, secureZeroBytes
./zk/groupscomputeProfileKeyVersion, deriveGroupSecretParams, getGroupPublicParams, uuidToBytes, serviceIdBinary, SERVICE_ID_ACI, SERVICE_ID_PNI
./zk/credentialsCredential key serialization and deserialization helpers
./hooksuseSessionHealth, useKeyRotation, useKeyRotationWithControls, useSignalProtocolRelayConnectionState, useSignalProtocolRelayLifecycle, useGroupMembership, useSingleFlight
./loggercreateDefaultSignalProtocolLogger, resolveSignalProtocolLogger
./server-clockrecordServerClockSample, estimateServerTimestamp
./encodingbytesToBase64, base64ToBytes, and the shared encoding helpers
./encoding/hexbytesToHex, hexToBytes
./utils/retrywithRetry, isRetryableError, SignalProtocolRetryConfig

./hooks are React hooks and need react installed. The subpath also imports AppState from react-native when it loads, because useKeyRotation and useSignalProtocolRelayLifecycle read it.

Types

SubpathExports
./typesSignalProtocolLocalStore, ProtocolStore, SignalProtocolManager, the error taxonomy, and the shared protocol types
./types/addressProtocolAddress and its create, parse, toString, equals, isUser, isValid, toStorageKey, fromStorageKey helpers
./types/messagesMessageType, ContentHint, MessageHeader, RatchetMessage, PreKeyMessage, ProtocolMessage
./types/utilsBase64, Hex, Bytes branded types with asBase64, asHex, asBytes, toBase64, toHex, isValidBase64, isValidHex

Local storage and vault

SubpathExportsStatus
./local/storeSignalProtocolLocalStore, InMemorySignalProtocolStore re-export, shared store types—
./local/store/conformanceassertLocalStoreConformance, runLocalStoreConformance, and the LocalStoreConformanceOptions, LocalStoreConformanceResult, LocalStoreConformanceFailure typesConformance checks for a custom store
./local/store/expoexpoStore(options?), resetExpoStore(options?), ExpoSignalProtocolStore, ExpoSignalProtocolStoreOptions, createPreKeyMaintenanceStore(store)Primary supported adapter
./local/store/react-nativereactNativeStore(options?), resetReactNativeStore(options?), ReactNativeSignalProtocolStore, ReactNativeSignalProtocolStoreOptions, createPreKeyMaintenanceStore(store)Supported; bare React Native
./local/store/nodenodeStore(options), resetNodeStore(options), NodeSignalProtocolStore, NodeSignalProtocolStoreOptions, sqliteDatabaseKeySlot(path), createPreKeyMaintenanceStore(store)Node, the Electron main process, and server-side
./local/store/webindexedDbStore(), IndexedDbSignalProtocolStoreSupported; browsers without the origin private file system
./local/store/web-sqlitewebSqliteStore(options?), resetWebSqliteStore(options?), WebSqliteSignalProtocolStore, WebSqliteSignalProtocolStoreOptions, createPreKeyMaintenanceStore(store)Supported from 8.1.0; browsers with the origin private file system, and the Tauri 2 webview
./local/store/key-valuekeyValueStore(...), KeyValueSignalProtocolStore, KeyValueStorage, createTransactionalKeyValueBackend, assertBackendConformance, runBackendConformanceSupported; caller-provided backend
./local/store/key-value/realmcreateRealmKeyValueBackend(realm), realmKeyValueSchema, the structural RealmLike typesKey-value backend over an app-owned Realm
./local/store/memoryinMemoryStore(), InMemorySignalProtocolStoreDevelopment only
./local/vaultSignalProtocolLocalSecretVault—
./local/vault/electron-safe-storageElectronSafeStorageSignalProtocolSecretVault, a vault implementation over Electron's safeStorage for the main process—
./local/vault/expo-secure-storeVault implementation over expo-secure-store—
./local/vault/react-native-keychainReactNativeKeychainSignalProtocolSecretVault, a vault implementation over react-native-keychain—

Await the async expoStore(), reactNativeStore(), nodeStore(), indexedDbStore(), webSqliteStore(), and keyValueStore() functions. Do not await inMemoryStore().

The SDK owns the database of each SQLite store (Expo, bare React Native, Node, and web SQLite): its file, its key, and its migrations. Keep application tables in a separate database file.

Remote relay

SubpathExportsStatus
./remote/signal-relaySignalProtocolRelayServer, Envelope, DeviceRegistration, PreKeyBundle, SignalProtocolRelayConnectionState, and the other shared relay types—
./remote/signal-relay/typesSignalProtocolRelayServer, KeyRotationService, SignalProtocolRelayConnectionState, SignalProtocolRelayConnectionReason, Unsubscribe, envelope and bundle types—

The package contains no relay implementation. The relay subpaths export types only. Connect to the OpenE2EE Signal Protocol Relay with createHostedSignalProtocolClient() from the package root: see Signal Protocol Relay. For a custom transport, pass an application-owned SignalProtocolRelayServer to createSignalProtocolClient(). It connects to an authenticated backend that you operate.

Remote object store

SubpathExportsStatus
./remote/object-storeSignalProtocolRemoteObjectStore and the brokered request and response types—
./remote/object-store/convex-r2convexR2ObjectStore(config), ConvexR2ObjectStore, ConvexR2ObjectStoreApi, ConvexR2ObjectStoreConfig—
./remote/object-store/s3s3ObjectStore(config), S3ObjectStoreBroker, S3ObjectStoreConfig—

Both object-store adapters run on the device. Your backend supplies the broker that holds the provider credential. For Convex R2, ConvexR2ObjectStoreApi types the four Convex functions that your backend exports. See encrypted attachments with R2 or S3.

Peer dependencies by subpath

The package declares all peer dependencies as optional. Install only what the subpaths you import require.

If you importYou need
./local/store/expoexpo-sqlite, expo-secure-store
./local/vault/expo-secure-storeexpo-secure-store
./local/store/react-native@op-engineering/op-sqlite, react-native-keychain
./local/store/nodebetter-sqlite3-multiple-ciphers
./local/store/web, ./local/store/web-sqliteidb
./local/vault/react-native-keychainreact-native-keychain
./device/exporeact-native, expo-constants, expo-device
./device/react-nativereact-native, react-native-device-info
./remote/object-store/convex-r2convex
./hooksreact, react-native

The manifest also declares expo as an optional peer. No subpath imports it. An Expo app already has it.

Security and protocol policy covers the six direct production dependencies that the package installs, which resolve to six packages in total: @noble/ciphers, @noble/curves, @noble/hashes, @noble/post-quantum, async-lock, and unique-names-generator.

Next

On this page