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

@elementaio/vox-sdk

v0.1.1

Published

Framework-agnostic client SDK for Vox — self-owned identity, end-to-end sign-then-seal crypto, relay transport, message ops, calls, and media. Ships no storage engine and no UI; you inject those.

Downloads

12

Readme

@elementaio/vox-sdk

The framework-agnostic client SDK for Vox — a self-hosted, end-to-end-encrypted messenger where the relay is a post office, not an archive.

This package is everything a client needs to speak the Vox protocol: self-owned identity, sign-then-seal E2E crypto, the relay transport + all message operations (text, edit/delete/react/reply, receipts, typing), voice/video call signaling, and encrypted media. It ships no storage engine and no UI — you inject those — so the same core runs a web app, a desktop/mobile app, or a headless bot.

Published on npm as @elementaio/vox-sdk (ESM + type declarations, built with tsup). Also a workspace package (packages/sdk) that the in-repo web app consumes via a @elementaio/vox-sdk alias to its TypeScript source. npm i @elementaio/vox-sdk.

What you inject

| Port | What it is | Browser example | |----------------|---------------------------------------------------------|-----------------| | Store | durable message/contact/media history (the source of truth lives on the device) | IndexedDB | | KVStore | small key-value for the encrypted account vault + device id | localStorage | | relay URLs | socketUrl (ws) + httpBase (http) | derived from the page origin | | ClientEvents | UI callbacks (onMessage, onPresence, onCallState, …) | React state setters |

The SDK never imports a database, a UI framework, or a hardcoded server address.

Quick start

import {
  createIdentity, Vault, Client,
  type Identity, type Store, type ClientEvents,
} from "@elementaio/vox-sdk";

// 1. Identity (self-owned keypair; 12-word backup). Persist it under a passphrase.
const id: Identity = createIdentity();
const vault = new Vault(localStorage);      // any KVStore
await vault.persist(id, "correct horse battery staple");

// 2. Supply a Store (durable history). Implement over IndexedDB / SQLite / memory.
const store: Store = myStore;

// 3. Connect. Events drive your UI.
const events: ClientEvents = { onMessage: render, /* …the rest… */ } as ClientEvents;
const client = new Client({
  socketUrl: "wss://relay.example.com/socket",
  httpBase:  "https://relay.example.com",
  identity: id,
  store,
  events,
  deviceId: vault.deviceId(),
});
client.connect(await loadContacts());
await client.sendText(recipientPubkeyHex, "Hello over Vox 👋");

Surface

  • IdentitycreateIdentity, restoreIdentity, sign, authParams, Vault.
  • Cryptoseal, open, deriveEncryptionKey (+ SealedEnvelope, OpenedMessage).
  • ClientClient (text, media, edit/delete/react, receipts, typing, presence, voice/video calls) + ClientConfig, ClientEvents.
  • MediaencryptAndUpload, downloadAndDecrypt.
  • Discovery / onboardinginviteToken, parseInvite, enroll.
  • ProtocolPROTOCOL_VERSION, inboxTopic, EVENTS, SOCKET_PATH.
  • Model & portsStore, KVStore, StoredMessage, StoredContact, MediaRef, Body, PresenceInfo, CallState.

Dependencies

Audited primitives only: @noble/curves (Ed25519 + X25519), @noble/ciphers (XChaCha20-Poly1305), @noble/hashes, @scure/bip39. Transport uses phoenix (peer dependency). Calls use the platform's WebRTC (RTCPeerConnection) when present — absent in Node, so a headless bot simply doesn't place calls; messaging works everywhere.