Skip to Content
OpenE2EEDocs

Runtime support matrix

Which runtimes the SDK runs in, which store adapter each one uses, and the exact documented position on Expo Go.

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

The protocol code is Pure TypeScript. Each runtime supplies secure randomness and a compatible storage adapter.

The matrix

RuntimeStatusStore adapterNotes
Expo, development or release buildSupported — primary target/local/store/expo — await expoStore()Expo SQLite with SQLCipher, in an SDK-owned database
Expo GoNot available for the Expo store—See below
React Native, bareSupported/local/store/react-native — await reactNativeStore()SQLCipher on op-sqlite, in an SDK-owned database; the key is in the react-native-keychain vault. Requires a native build
Any, with your own key-value engineSupported/local/store/key-value — await keyValueStore({ storage, vault })You supply the key-value backend and verify it with the exported backend-conformance kit
Browser, SQLiteSupported from 8.1.0/local/store/web-sqlite — await webSqliteStore()Encrypted SQLite in the origin private file system, in an SDK-owned database. Needs a CSP that allows 'wasm-unsafe-eval'
BrowserSupported/local/store/web — await indexedDbStore()For browsers without the origin private file system. Full store contract; deployment requires the browser threat-model review
Tauri 2 webviewCI on Windows and Android, manual check on macOS and iOS/local/store/web-sqlite — await webSqliteStore()CI runs a debug build of a Tauri 2.12 app in WebView2 on Windows and in the Android WebView on an Android emulator. Manual checks ran a debug build on macOS 15.7 and in the iOS 17.5 and 18.0 simulators. On Linux, WebKitGTK fails the open with OPFS_UNAVAILABLE. Release builds and physical devices are not tested
Expo web buildNot available for the Expo store—The web build of expo-sqlite has no SQLCipher, so an encrypted await expoStore() fails with KEY_STORAGE_ERROR. See Expo
Node >= 22.12Supported for non-mobile use/local/store/node — await nodeStore({ directory, vault })SQLCipher on better-sqlite3-multiple-ciphers, in an SDK-owned database; one owner process
Electron, main processSupported/local/store/node — await nodeStore({ directory, vault })The same Node store, with its key in the safeStorage vault. CI runs it in Electron 44 on Linux, macOS, and Windows, in Electron 42 on Linux, and in an app that Electron Forge packages on Linux x64, macOS arm64, and Windows x64
Any, tests and local developmentDevelopment only/local/store/memory — inMemoryStore()In-memory; never ship it

The package is ESM-only and declares engines.node >= 22.12.0. Every peer dependency is optional. Install the ones your chosen adapter needs. Mapping in Package subpaths.

React Native support starts at React Native 0.83.6 and Expo SDK 55. The peer ranges have no upper bound. CI adds the packed package to projects on React Native 0.83, 0.85, 0.86, and 0.87, and on Expo SDK 55, 56, and 57.

On React Native and Expo, the SDK reads random bytes only from the global crypto.getRandomValues. Install react-native-get-random-values 2.x or react-native-quick-crypto, and load it before the first SDK call. Without a global source, the SDK throws SecureRandomUnavailableError.

Try the playground

Open the playground to send an encrypted message and decrypt a reply. The page and developer console show actual results. You need no account or installation.

The SDK repository keeps an Expo example and a bare React Native example private. CI runs a release build of each on an Android emulator. The Expo example checks Alice’s identity and another exchange after restart. The bare React Native example logs the SQLCipher version and the first bytes of the SDK database file, and requires that a wrong key fails the open. SQLCipher requires a native development or release build. Expo Go does not include it.

Expo Go

The one statement the SDK repository makes about Expo Go, verbatim: "SQLCipher requires a development build and is not available in Expo Go."

It appears in the setup section of the Expo store's own README. That is the whole documented position. This page does not extend it.

Read literally, the constraint is on SQLCipher, which the Expo store adapter requires. The practical consequence for an application using expoStore() is that it needs an Expo development build, npx expo run:ios, npx expo run:android, or an EAS build, rather than the Expo Go client.

The repository does not claim that another adapter combination supports Expo Go. It also does not claim that a future release will change support. Test your build if you need a definitive result. A build without SQLCipher fails at await expoStore() with KEY_STORAGE_ERROR, before the client exists.

Per-runtime guidance

Expo

Use the Expo-specific storage adapter instead of browser shims. await expoStore() opens the SDK-owned SQLCipher database, gets or creates its key through the vault, and applies the SDK migrations. Your app enables SQLCipher in the expo-sqlite config plugin.

Treat backup, device transfer, and secure-storage availability as explicit product policy. Your app decides whether iOS or Android device backups include the encrypted store. It also decides what happens during device transfer. The SDK does not make these choices. See recovery, backup, and migration.

An Expo app that targets the web imports the Expo store there too. The web build of expo-sqlite has no SQLCipher, and Expo SecureStore has no web implementation. So an encrypted await expoStore() or await resetExpoStore() in an Expo web build fails with KEY_STORAGE_ERROR. encryptionAtRest: false opens the store on the web without encryption. For an encrypted store in a browser, the SDK guide names /local/store/web-sqlite. No check opens that store in an Expo web build.

Verify behavior on both iOS and Android release builds. Debug builds differ in keychain behavior, background execution, and native module availability, and a store that works in development can fail on a signed release.

Bind the relay subscription to the app state with useSignalProtocolRelayLifecycle. See binding the relay to the app state.

Start at Expo setup.

Browser

Treat IndexedDB and local storage as application-controlled persistence boundaries. They are not a secure enclave. The web adapter's own README is unambiguous about the ceiling: encryption at rest is therefore not an XSS defense. Script executing on your origin has whatever the page has, encrypted database or not.

Consider cross-tab coordination and origin isolation. Two tabs of the same origin are two writers against one store. The ratchet does not tolerate concurrent divergent writes. Decide explicitly whether you run one client per origin with a leader tab, or accept the constraint of a single active tab.

The IndexedDB adapter is supported. It implements the core store contract, Sesame records, sender-key state, retry records, and recovery helpers, and its graduation gates — contract suites in real Chromium, Firefox, and WebKit, multi-tab, interruption, storage-pressure, and soak — run on every change to the source repository.

Keep the relay subscription running while a tab is hidden. A hidden tab keeps its socket open, and useSignalProtocolRelayLifecycle does nothing on web.

The web SQLite store keeps the same state in an SDK-owned SQLite database in the origin private file system. SQLite3 Multiple Ciphers encrypts the whole file in a Wasm worker. The database key is in a secret vault, by default IndexedDB in the same origin, so same-origin JavaScript can read it: encryption at rest is not an XSS defense here either. A Content Security Policy that applies to the worker must allow 'wasm-unsafe-eval'; without it, the open fails with SQLITE_ENGINE_UNAVAILABLE. A context without the origin private file system fails with OPFS_UNAVAILABLE; use the IndexedDB store there. The two stores do not share data.

From 8.1.0, the web SQLite store is supported. Its graduation gates run in CI: contract suites, interruption, multi-tab, storage-pressure, and a soak in Chromium. The contract suites run in real Chromium and Firefox on Linux, and in WebKit and Safari on macOS. Only Chromium fills a real origin quota. Firefox, WebKit, and Safari run the quota check with an injected QuotaExceededError. Use the store where the origin private file system works, and the IndexedDB store at /local/store/web where it is not available.

A Tauri 2 app uses the web SQLite store in its webview, with no Tauri-specific SDK code. CI runs a debug build of a Tauri 2.12 app with the default IndexedDB vault:

  • Windows: WebView2 opens the store, exchanges messages, reopens it, and reads it back after a relaunch. A second open of an open store fails with INVALID_STATE.
  • Android: the Android WebView passes the same checks on an Android API 36 emulator.
  • Linux: WebKitGTK has no OPFS synchronous access handles, so the first open fails with OPFS_UNAVAILABLE.

Manual checks ran a debug build on macOS 15.7 and in the iOS 17.5 and 18.0 simulators. No CI job runs Tauri on macOS or iOS. On macOS, two windows of the app share one store, and a reset fails with INVALID_STATE while another window holds it. In WKWebView, navigator.storage.persist() returns false. A clear of all website data removes the database and its key, and the next open creates a new, empty store with no error. No check saw WebKit remove the data under storage pressure or after a period without use.

The web SQLite store guide gives the Tauri setup. No check ran a Tauri release build, an installed desktop app, or a physical Android or iOS device.

Start at browser setup.

Node and Electron

NodeSignalProtocolStore implements the complete SignalProtocolLocalStore contract. This includes identity keys, prekeys, sessions, trust decisions, Sesame devices, sender keys, and message records. The class declares implements SignalProtocolLocalStore. A missing or changed member therefore fails the SDK build instead of appearing at runtime. Multi-device linking and both group APIs are available on this adapter.

await nodeStore({ directory, vault }) opens an SDK-owned SQLCipher database on the better-sqlite3-multiple-ciphers peer, in the directory you name. The database key is in the vault that you pass. The SDK ships no vault for a plain Node process, so implement SignalProtocolLocalSecretVault over the secret store of your deployment. In Electron, open the store in the main process with ElectronSafeStorageSignalProtocolSecretVault from /local/vault/electron-safe-storage.

On Linux, that vault needs a secret service. CI passes the store contract with GNOME Keyring through libsecret, with KWallet 5 on kwallet5, and with KWallet 6 on kwallet6. The vault refuses the basic_text backend, the fixed fallback key that safeStorage uses when no secret service answers, and the key of the Secret portal. The store then fails with KEY_STORAGE_ERROR. See Electron.

Use a private directory on a local file system. Do not use a network file system. One process owns the database: an open in another process fails at once with SqliteStoreInUseError (KEY_STORAGE_ERROR).

Do not assume process memory can be reliably scrubbed. JavaScript engines copy, intern, and garbage-collect without giving the program control. The SDK does what it can with secureZeroBytes, and that is a mitigation, not an erasure guarantee.

Test the bundled artifact under every maintained Node line you support. ESM resolution, engines enforcement, and native-free crypto all behave slightly differently across major versions, and the thing you ship is the bundle, not the source tree.

Start at Node setup.

React Native, bare

await reactNativeStore() opens an SDK-owned SQLCipher database on op-sqlite, on the same SQLite core as the Expo store. The database key is in ReactNativeKeychainSignalProtocolSecretVault by default, which keeps the key on this device only. Install @op-engineering/op-sqlite and react-native-keychain. Turn on the op-sqlite SQLCipher build with "op-sqlite": { "sqlcipher": true } in the package.json of the app, then run pod install and rebuild the app. Without that flag, the open fails with KEY_STORAGE_ERROR before it creates a file. Start at React Native setup.

With SQLCipher on, op-sqlite conflicts on iOS with expo-sqlite, with expo-updates, and with use_frameworks! in the Podfile. op-sqlite works in an Expo prebuild, not in Expo Go. An Expo app can use the Expo store instead.

Load a global random source before the first SDK call, as the matrix notes describe. Bind the relay subscription to the app state with useSignalProtocolRelayLifecycle or bindSignalProtocolRelayLifecycle(signal, AppState), as on Expo.

Your own key-value engine

The key-value store is for an app that chooses its own storage engine, for example Realm on bare React Native. It takes a key-value backend you provide and a secret vault: await keyValueStore({ storage, vault }), where storage implements KeyValueStorage and vault is usually ReactNativeKeychainSignalProtocolSecretVault from /local/vault/react-native-keychain. The vault holds the key that encrypts each stored value; the backend holds only ciphertext. Its atomicWrite is a security boundary, not a batching optimization: an implementation that loses atomicity there loses the trust-commit guarantee described in Adapter interfaces.

The subpath exports assertBackendConformance, a backend-conformance kit that proves a backend upholds the contract — atomicity, prefix isolation, unicode round-trips, and, with the reopen hook, durability across restart. Run it against your backend from your own tests before you ship. The SDK runs the same kit against its reference backend on the Hermes engine on every change.

In CI, the Realm backend at /local/store/key-value/realm passes the kit on realm 20.2.0 in Node. The check closes the Realm file and opens it again. Manual checks ran the kit in React Native apps in the iOS 26.2 simulator and in an Android emulator. All 13 cases passed in each. No check ran the Realm backend on a physical device.

Hermes gate results

The SDK repository runs each public flow on the Hermes V1 engine that React Native pins. The engine starts with only the globals of a bare React Native 0.86 app, and a crypto.getRandomValues provider. It has no Expo modules. The flows use the in-memory store and an in-process test relay that stays in the private SDK repository. The hosted flow uses an in-process stub of the OpenE2EE Signal Protocol Relay.

The gate does not run on Expo, which installs more globals. The private Expo example covers Expo.

Every flow runs on bare React Native:

FlowResult on bare React Native
One-to-one sessionRuns
Sealed-sender send and receiveRuns
Groups: create, update, and invite linkRuns
Username: hash, prove, and verify the proofRuns
Profile contact stateRuns
Device link and backup checksumRuns
Hosted token refresh, mailbox connect, and mailbox receiveRuns
Delivery through the private test relayRuns
/local/store/key-value: backend-conformance kit and a store round trip over the reference backendRuns
No random provider installedEach read of random bytes throws SecureRandomUnavailableError

The gate also bundles each public entry that the flows import. That case fails when the entry reaches a package that a bare React Native app does not install.

No flow opens reactNativeStore(), because /local/store/react-native needs the op-sqlite native module. The bare React Native example runs that store on Hermes: CI builds its release APK and runs it twice on an Android emulator. No CI job runs the store on iOS. Manual checks ran it in the iOS 26.2 simulator, as React Native setup describes.

Metro bundling

A bare React Native app with the stock @react-native/babel-preset bundles the SDK. The root entry does not use export * as, a syntax that the stock preset cannot transform.

CI builds the Android release bundle of the bare React Native example with the packed package and the stock preset, and compiles it with the Hermes compiler that React Native pins. It also builds the Hermes bundle of the Expo example on Expo SDK 55 and 57.

An entry loads only the optional peers in the peer table. CI imports every other entry with all optional peers removed.

Why the implementation is pure TypeScript

The SDK uses @noble/curves for key agreement. AES-CBC and AES-GCM use Web Crypto when crypto.subtle exists. Hermes uses the SDK’s Noble AES implementation when that API is absent.

Native modules provide SQLCipher storage and the database key vault: expo-sqlite and expo-secure-store on Expo, @op-engineering/op-sqlite and react-native-keychain on bare React Native, and better-sqlite3-multiple-ciphers on Node. On React Native and Expo, random bytes come from the global crypto.getRandomValues.

Expo setup and React Native setup give these dependencies and their native configuration.

JavaScript engines do not guarantee machine-level constant-time behavior or reliable memory zeroization. The SDK has no FIPS 140 validation. See security and protocol policy.

Next

On this page