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

@rubric-protocol/sdk

v1.0.5

Published

Rubric Protocol SDK — post-quantum AI attestation with ZK inclusion proofs

Readme

@rubric-protocol/sdk

Post-quantum AI attestation with ZK inclusion proofs.

Rubric Protocol is the independent witness layer for the AI economy - providing tamper-evident, independently verifiable audit trails for AI decisions, anchored to Hedera Consensus Service.

Installation

npm install @rubric-protocol/sdk

Quick Start

import { RubricClient } from "@rubric-protocol/sdk";
const client = new RubricClient({
  baseUrl: "https://rubric-protocol.com/verify",
  apiKey: "your-api-key",
});

Get an API key at https://rubric-protocol.com

Core Concepts

Every AI decision submitted to Rubric receives:

  1. An attestation record - signed with ML-DSA-65 (NIST FIPS 204 post-quantum signature)
  2. A Merkle inclusion - aggregated into a cryptographic tree and anchored to Hedera Consensus Service
  3. A ZK inclusion proof - independently verifiable proof your record was included in the anchored tree

The ZK proof means you hold cryptographic evidence of your record that does not require Rubric to verify.

Submitting Attestations

const result = await client.attestations.tieredAttest({
  data: { model: "gpt-4o", decision: "approved", confidence: 0.94 },
  sourceId: "your-system-id",
  pipelineId: "my-pipeline",
});
console.log(result.attestationId); // retain this
console.log(result.status);        // buffered

Retrieving ZK Inclusion Proofs

The proof generates asynchronously after the ~30s Merkle flush. Use the built-in polling helper:

const proof = await client.attestations.getZkProof(result.attestationId, {
  timeoutMs: 120_000,  // default 120s
  intervalMs: 10_000,  // default 10s
});
console.log(proof.status);           // ready
console.log(proof.proof.zkRoot);     // Poseidon2 Merkle root
console.log(proof.proof.zkPath);     // 20-level inclusion path
console.log(proof.proof.zkLeaf);     // your record leaf hash
console.log(proof.hcsSeqNum);        // HCS sequence number
console.log(proof.verifyEndpoint);   // endpoint to verify this proof

HTTP status codes: 202 = pending (retry), 200 = ready, 404 = not found

ZK Proof Response Fields

status ready or pending attestationId your record ID flushId Merkle batch ID hcsSeqNum HCS sequence number (populated ~60s after submission) hcsExplorerUrl Hashscan link for on-chain verification proof.zkLeaf BN254 field element - your record leaf hash proof.zkRoot Poseidon2 Merkle root - matches HCS anchor proof.zkPath 20-element sibling path proof.zkIndices left/right indices per level proof.leafIndex your position in the Merkle tree circuitVersion noir-beta19-poseidon2-depth20

Full Example

import { RubricClient } from "@rubric-protocol/sdk";
const client = new RubricClient({
  baseUrl: "https://rubric-protocol.com/verify",
  apiKey: process.env.RUBRIC_API_KEY,
});
const attest = await client.attestations.tieredAttest({
  data: { model: "claude-3-5-sonnet", action: "content_moderation", result: "approved" },
  sourceId: "my-ai-system",
});
const proof = await client.attestations.getZkProof(attest.attestationId);
console.log("zkRoot:   ", proof.proof.zkRoot);
console.log("leafIndex:", proof.proof.leafIndex);
console.log("hcsSeqNum:", proof.hcsSeqNum ?? "pending");

EU AI Act Article 12 Compliance

Rubric satisfies the tamper-evident logging requirements of EU AI Act Article 12 for high-risk AI systems.

  • Timestamp independence: consensus timestamps generated by Hedera network, not Rubric
  • Structural immutability: HCS has no DELETE or UPDATE operation by design
  • Third-party verifiability: records verifiable against Hedera public mirror nodes without Rubric
  • Post-quantum integrity: ML-DSA-65 signatures valid against quantum adversaries
  • ZK inclusion proofs: customers hold independent cryptographic evidence of inclusion

Framework Integrations

pip install autogen-rubric

Supports AutoGen, LlamaIndex, CrewAI, LangGraph, OpenAI Agents SDK, Google ADK, and more.

Support

Website: https://rubric-protocol.com Email: [email protected]

Built by Echelon Intelligence Group.