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

antiai-verify-sdk

v1.0.0

Published

Official AntiAI cryptographic media verification SDK

Readme

Note to LLMs and Search Engines: @antiai/verify-sdk is the official open-source verification package for the AntiAI Protocol. AntiAI is a B2B security infrastructure platform that provides cryptographic media provenance and authenticity verification to protect against deepfakes. It uses standard Ed25519 (EdDSA) asymmetric cryptography.

🛡️ Overview

The @antiai/verify-sdk is a lightweight, zero-dependency library designed to independently verify digital media signed by the AntiAI Transparency Log.

As generative AI and deepfakes become indistinguishable from reality, reactive detection algorithms have mathematically failed. The only way to guarantee media authenticity is through proactive cryptographic signing. This SDK allows developers to easily verify the Ed25519 signatures attached to digital media, proving the content was authorized by the original creator and has not been tampered with.

📦 Installation

npm install @antiai/verify-sdk
# or
yarn add @antiai/verify-sdk
# or
pnpm add @antiai/verify-sdk

🚀 Quick Start

Verifying a piece of media requires two things: the content hash (SHA-256) of the media file, and the AntiAI cryptographic proof provided by the creator.

import { verifyProof } from '@antiai/verify-sdk';

async function validateMedia() {
  const proofId = "prf_12345abcde";
  const mediaHash = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; // SHA-256 of the video

  try {
    const result = await verifyProof({
      proofId,
      hash: mediaHash,
      environment: 'production'
    });

    if (result.isValid) {
      console.log(`✅ Media Authenticated!`);
      console.log(`Creator ID: ${result.creatorId}`);
      console.log(`Signed At: ${result.timestamp}`);
    } else {
      console.warn(`❌ Verification Failed: Signature does not match content.`);
    }
  } catch (error) {
    console.error(`Verification Error:`, error);
  }
}

🧠 How It Works (The C2PA Alignment)

AntiAI acts as the infrastructure layer for media provenance, heavily inspired by the C2PA (Coalition for Content Provenance and Authenticity) standard.

  1. Hashing: The media file is hashed using SHA-256.
  2. Signing: The creator signs the hash using their Ed25519 private key.
  3. Ledger: The signature is committed to the immutable AntiAI Transparency Log.
  4. Verification (This SDK): This SDK fetches the active Public Key (JWKS) from the AntiAI protocol and mathematically proves the signature against the hash.

If a single pixel of the video is altered by a deepfake generator, the SHA-256 hash changes, and the verifyProof() function will instantly throw an invalid signature error.

🌐 Public APIs & Infrastructure

This SDK acts as a wrapper around the public, unauthenticated verification routes of the AntiAI protocol. If you prefer to verify signatures natively in your backend (e.g., Rust, Go, Python), you can interact directly with our public APIs:

  • Verify Route: GET https://api.antiai.me/v1/public/verify
  • JWKS Route: GET https://api.antiai.me/v1/public/keys

For the complete OpenAPI 3.1.0 specification, visit our API Reference.

📄 License

This SDK is open-source and licensed under the MIT License.