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

@exowarexyz/simplex

v2026.5.0

Published

Index artifacts emitted by Simplex.

Readme

@exowarexyz/simplex

TypeScript helpers for uploading Commonware Simplex artifacts into Exoware Store. The package mirrors the Rust exoware-simplex key layout:

  • header bytes by digest
  • full { header, body } block data by digest
  • notarized { proof, header } bytes by Simplex view
  • finalized { proof, header } bytes by Simplex view
  • finalized { proof, header } bytes by block height

The TypeScript client uploads raw encoded bytes. Certificate reads verify bytes before returning when the client is constructed with a verifier. Use the *Raw read methods when you explicitly want unverified bytes.

import { SimplexClient } from '@exowarexyz/simplex';

const simplex = new SimplexClient('http://localhost:10000');
await simplex.uploadFinalization({
  view: 42n,
  height: 42n,
  digest: '0x...',
  header: '0x...',
  body: '0x...',
  finalized: '0x...',
});

Use prepareHeader, prepareBlock, prepareNotarization, and prepareFinalization to stage multiple Simplex rows into one StoreWriteBatch. Finalizations are stored by view and by height so callers can fetch a specific view or the latest finalized height index.

Use getHeader or subscribeHeaders when only header bytes are needed. Use getBlock or subscribeBlocks when the caller needs the full { header, body } block data.

Verification

Pass a SimplexCertificateVerifier to verify opaque certificate records before getNotarization, getFinalizationByView, getFinalizationByHeight, latestFinalization, or subscribeCertificates returns them:

import { SimplexClient, type SimplexCertificateVerifier } from '@exowarexyz/simplex';

const verifier: SimplexCertificateVerifier = {
  verifyNotarization: async (bytes, context) => verifyMyNotarization(bytes, context.view),
  verifyFinalization: async (bytes, context) => verifyMyFinalization(bytes, context.index),
};

const simplex = new SimplexClient('http://localhost:10000', { verifier });
const latest = await simplex.latestFinalization();

The generic createWasmSimplexVerifier adapter supports caller-owned WASM modules that expose verify_notarized / verify_finalized functions and treat certificates as opaque values.

For upstream Commonware Simplex certificate types, build the optional WASM module and use @exowarexyz/simplex/wasm:

npm --prefix simplex/ts run build:wasm
import { createCommonwareWasmSimplexVerifier } from '@exowarexyz/simplex/wasm';
import { SimplexClient, hexToBytes } from '@exowarexyz/simplex';

const verifier = await createCommonwareWasmSimplexVerifier({
  scheme: 'bls12381-threshold-vrf-min-sig',
  namespace: new TextEncoder().encode('_MY_SIMPLEX_NAMESPACE'),
  verificationMaterial: hexToBytes('...'),
  verifyHeader: ({ payload, header }) => verifyHeaderPayload(payload, header),
});

const simplex = new SimplexClient('http://localhost:10000', { verifier });

Supported Commonware schemes are ed25519, secp256r1, bls12381-multisig-min-pk, bls12381-multisig-min-sig, bls12381-threshold-standard-min-pk, bls12381-threshold-standard-min-sig, bls12381-threshold-vrf-min-pk, and bls12381-threshold-vrf-min-sig. Verification material is encoded Commonware key material: an Ed25519 participant set, a Secp256r1/BLS multisig identity-to-signing-key map, or a threshold identity depending on the scheme. The Commonware WASM verifier treats certificates as opaque proof-plus-header records and verifies the configured certificate key material. Pass verifyHeader to validate the application-specific relationship between the certificate payload and header. Bodies are not embedded in streamed certificate records; fetch full { header, body } block data separately with getBlock or subscribeBlocks when needed. The client does not hardcode SHA or trust a server body-presence flag; the caller-selected verifier defines the required payload/header relationship before the TS client returns a fetched or streamed certificate.

Header and block integrity can also live in caller-owned WASM. Implement the ABI you need:

#[wasm_bindgen]
pub fn verify_header(payload: Vec<u8>, header: Vec<u8>) -> bool {
    // Verify payload/header according to the application's header format.
}

#[wasm_bindgen]
pub fn verify_block(payload: Vec<u8>, header: Vec<u8>, body: Vec<u8>) -> bool {
    // Verify payload/header/body according to the application's header format.
}

Then adapt the module in TS:

import {
  createWasmSimplexHeaderVerifier,
} from '@exowarexyz/simplex';

const verifier = await createCommonwareWasmSimplexVerifier({
  scheme,
  namespace,
  verificationMaterial,
  verifyHeader: createWasmSimplexHeaderVerifier(myBlockVerifierWasm),
});