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

@epochquant/sealed-for-ai

v0.1.0

Published

Cryptographic receipts for AI-generated artifacts. One POST per artifact, public verifier URL, 7-year retention.

Readme

@epochquant/sealed-for-ai

Cryptographic receipts for AI-generated artifacts. One POST per artifact, public verifier URL, 7-year retention.

Install

npm install @epochquant/sealed-for-ai
# or
pnpm add @epochquant/sealed-for-ai
# or
bun add @epochquant/sealed-for-ai

Node 18+, Bun, Cloudflare Workers, Deno, browsers (CORS-enabled).

Five-minute quickstart

import { SealedAIClient } from "@epochquant/sealed-for-ai";
import { createHash } from "node:crypto";

const client = new SealedAIClient({ apiKey: process.env.SEALED_AI_KEY! });

const output = "This is whatever your AI just produced.";
const hash = createHash("sha256").update(output).digest("hex");

const receipt = await client.seal({
  artifactKind: "llm_output",
  subject: "Generated for customer #42",
  payloadSha256: hash,
  metadata: { model: "claude-opus-4-7", tokens: 1284 },
});

console.log("Verifier URL:", receipt.verifierUrl);
console.log("Seal ID:", receipt.sealId);

In a Cloudflare Worker

The SDK uses standard fetch — works natively in Workers, no Node polyfill needed.

import { SealedAIClient } from "@epochquant/sealed-for-ai";

export default {
  async fetch(req: Request, env: Env): Promise<Response> {
    const client = new SealedAIClient({ apiKey: env.SEALED_AI_KEY });
    // hash the artifact with Web Crypto (available in Workers)
    const data = await req.arrayBuffer();
    const digestBuf = await crypto.subtle.digest("SHA-256", data);
    const hash = [...new Uint8Array(digestBuf)]
      .map(b => b.toString(16).padStart(2, "0")).join("");

    const receipt = await client.seal({
      artifactKind: "llm_output",
      subject: "edge-sealed output",
      payloadSha256: hash,
    });
    return Response.json(receipt);
  },
};

Chaining

const a = await client.seal({ artifactKind: "rag_response", ... });
const b = await client.seal({ artifactKind: "llm_output", chainPrev: a.fullHash, ... });
const c = await client.seal({ artifactKind: "agent_action", chainPrev: b.fullHash, ... });

Verification

const v = await client.verify("EP-DKAP-A5C2F07B...");
if (v.found && v.signatures.ed25519Valid) {
  console.log("Sealed at:", v.sealedAt);
}

Configuration

const client = new SealedAIClient({
  apiKey: "sk-ai-...",
  baseUrl: "https://ai.epochpay.today",  // default
  timeoutMs: 30_000,                     // default
  maxRetries: 3,                         // exponential backoff on 5xx
});

Defaults are also read from env: SEALED_AI_KEY, SEALED_AI_BASE_URL.

Errors

Every API error is a typed class. Catch the base SealedError to handle them all, or specific subclasses for granular logic:

import { SealedRateLimitError } from "@epochquant/sealed-for-ai";

try {
  await client.seal({ ... });
} catch (e) {
  if (e instanceof SealedRateLimitError) {
    console.log(`Wait ${e.retryAfter}s and retry.`);
  }
}

Types

Full TypeScript types ship in the package. See src/types.ts for the shape of SealRequest, Receipt, VerifyResult, etc.

License

Proprietary · © 2026 EpochCore LLC · All Rights Reserved · Patent Pending.