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

@attestplane/attestplane

v1.7.5

Published

Apache-2.0 attestation and audit substrate for AI agent evidence chains.

Readme

@attestplane/attestplane — TypeScript SDK

Apache-2.0 attestation and audit substrate for AI agent evidence chains.

Status: alpha (v0.0.4-alpha). Wire format is byte-locked against the Python SDK's vectors.json — see ADR-0002. APIs may still change before v0.1.0. The current Python CLI attestplane verify path is chain/report-oriented with ProofBundle metadata and policy_trace_refs closure checks. It does not perform full ProofBundle, signature, anchor, or compliance certification verification.

See the project README for background, governance, and trademark policy.

Install

# Pin the alpha explicitly; v0.0.4-alpha is the next prepared alpha version.
npm install @attestplane/attestplane@alpha
# or, equivalent:
npm install @attestplane/[email protected]

npm install @attestplane/attestplane without a tag also resolves to the current published dist-tag. Treat the alpha tag as the authoritative pre-release channel until v0.1.0 ships.

Requires Node.js ≥ 22.

Quickstart

import {
  AttestSubstrate,
  makeEventDraft,
  makeSubjectRef,
} from '@attestplane/attestplane';

const sub = new AttestSubstrate();

sub.append(
  makeEventDraft({
    event_type: 'ai_decision',
    actor: 'agent://recsys/v1',
    payload: { outcome: 'approved', confidence_bp: 9120 },
    session_id: 'session-2026-05-17-abc',
    subject_ref: makeSubjectRef('sha256_salted', '2c1b...e9'),
  }),
);

console.log(sub.tip());        // { seq: 0, event_hash: Uint8Array(32) [...] }
console.log(sub.verify().ok);  // true

Cross-language conformance

This SDK is validated against the same vectors.json as the Python SDK on every CI run. Identical input ⇒ identical event_hash. If you compute an event hash in this SDK and store it, the Python SDK (and any future Rust SDK) will reproduce the exact byte value from the same input.

What this SDK gives you

  • An append-only audit log with cryptographic integrity (SHA-256 hash chain).
  • Built-in fields designed toward EU AI Act Art. 12(2)(a) auditability from day one.
  • Byte-identical canonical format compatible with the Python SDK.
  • Strong GDPR pseudonymization typing via SubjectRef.
  • Alpha-grade verifier predicates; do not treat this SDK as production-ready governance, compliance certification, or runtime execution authority.

API conventions

Field names use snake_case (e.g., event_type, prev_hash, subject_ref) to match the canonical wire format exactly. This is a deliberate choice for cross-language conformance: the canonical form embeds the field names, so any rename here would break the conformance contract. See src/types.ts.

Restricted JSON profile

Payloads must satisfy the restricted profile of ADR-0002:

| Allowed in payload | Forbidden | |---|---| | string (NFC-normalized UTF-8) | non-NFC strings | | number (integer, safe range) | floats, NaN, Infinity | | number values must be safe integers | unsafe integers; direct bigint | | true / false / null | — | | plain objects (string keys) | non-string keys; duplicate keys | | arrays | sparse arrays; undefined items | | Uint8Array (emits as base64url no padding) | other byte types | | explicit RFC 3339 timestamp strings | direct Date objects in canonical JSON payloads |

Violations throw CanonicalizationError at append time.

AttestSubstrate.append() accepts Date at the typed SDK boundary for AuditEvent.timestamp and converts it explicitly before hashing. Payloads should carry timestamps as strings when they need to be part of canonical JSON.

Development

git clone https://github.com/attestplane/attestplane
cd attestplane/sdk/typescript
npm install

npm run lint        # Biome lint + format check
npm run typecheck   # tsc --noEmit strict
npm test            # vitest, includes cross-language conformance
npm run build       # emit dist/

License

Apache License 2.0. See LICENSE and NOTICE.