npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dtelecom/vodozemac-rn

v0.1.1

Published

React Native bindings for vodozemac (Olm primitives) via UniFFI-generated Swift + Kotlin. Drop-in replacement for @dtelecom/vodozemac-wasm on the RN target — same JS surface, same JSON shapes.

Downloads

247

Readme

@dtelecom/vodozemac-rn

React Native bindings for vodozemac (Olm primitives), exposed via a UniFFI-generated Swift + Kotlin native bridge. Drop-in replacement for @dtelecom/vodozemac-wasm on the React Native target — same JS surface (Account, Session, InboundResult), same JSON-string shapes, same pickle format.

Used by @dtelecom/secure-chat-client when running on React Native.

Why a native bridge instead of WASM

WebAssembly is not yet shipped in any React Native release. Hermes V1 (RN 0.84+) has runtime Wasm support as of the Feb 2026 preview, but the implementation is in Meta's internal monorepo and isn't reachable from any public Hermes commit or RN-bundled prebuilt as of mid-2026. This package routes around the engine entirely: Rust → UniFFI → Swift/Kotlin → TurboModule. No engine dependency, no polyfills.

Install

npm install @dtelecom/vodozemac-rn react-native-get-random-values

Then once at the top of your app entry (index.js), before importing anything else:

import "react-native-get-random-values";

The package ships prebuilt artifacts (iOS XCFramework + Android .so for arm64-v8a, armeabi-v7a, x86_64) — no Rust toolchain needed on the consumer's machine.

Use

import init, { Account } from "@dtelecom/vodozemac-rn";

await init();                         // no-op on RN; included for parity
                                      // with @dtelecom/vodozemac-wasm

const account = Account.new();
account.generateOneTimeKeys(50);

const ids = JSON.parse(account.identityKeys());
// { curve25519: "...", ed25519: "..." }

const otks = JSON.parse(account.oneTimeKeys()).curve25519;
// { "<base64KeyId>": "<base64PublicKey>", ... }
account.markKeysAsPublished();

// Serialize for persistence — caller is responsible for at-rest encryption.
const pickle = account.pickle();
// later, restore:
const restored = Account.fromPickle(pickle);

// Release the native handle eagerly. The package also registers a
// FinalizationRegistry callback so GC will close handles eventually,
// but `close()` is the deterministic path.
account.close();

API

Identical to @dtelecom/vodozemac-wasm. See its README for the full method list. Method names, argument shapes, and return-value JSON schemas are bit-for-bit compatible — code calling vodozemac through @dtelecom/secure-chat-client doesn't know which target it's on.

Platforms

  • iOS 15.1+ (arm64 device + arm64/x86_64 simulator)
  • Android API 24+ (arm64-v8a, armeabi-v7a, x86_64)
  • React Native 0.76+ (new architecture / bridgeless)

License

Apache-2.0