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

@oimlsmart/cnml-crypto

v1.1.0

Published

The CNML verification pipeline, composite signatures, and SMI twin client

Downloads

541

Readme

@oimlsmart/cnml-crypto

The CNML cryptographic verification pipeline, composite signature primitives, and SMI twin client.

Install

npm install @oimlsmart/cnml-crypto

Check pipeline

The verify pipeline is a registry of independent checks. Each check is a module in src/checks/. Adding a check is one file plus one line in the CHECKS array.

import { runChecks, CHECKS } from "@oimlsmart/cnml-crypto/checks";

const results = await runChecks(xmlString, {
  trustedCerts: [pemString],
});

for (const r of results) {
  console.log(r.checkId, r.status, r.reason);
}

The default pipeline runs 7 checks in order:

  1. xml-well-formed — XML parses
  2. schema-valid — CNML root element + per-R JSON Schema
  3. signature — XMLDSig enveloped + Exclusive C14N
  4. scope — X.509 v3 scope extension (DoMC enforcement)
  5. crl — certificate not revoked
  6. timestamp — OpenTimestamps or RFC 3161 proof
  7. transparency — Merkle inclusion proof

Composite signatures

import { compositeSign, compositeVerify } from "@oimlsmart/cnml-crypto";

Composite signatures combine Ed25519 (classical) with ML-DSA-65 (post-quantum) using AND semantics. A verifier can validate either signature independently.

SMI twin client

import { TwinClient } from "@oimlsmart/cnml-crypto/smi/twin-client";

const client = new TwinClient("http://localhost:8787/twin");
await client.connect();
const indication = await client.getIndication();
const provenance = await client.getProvenance();

The twin client connects to a SMART Measuring Instrument's GraphQL endpoint and exposes the live indication, state, and CNML certificate provenance.

License

Same as the CNML project.