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

@classytic/esign

v0.1.0

Published

Electronic-signature kernel — signature-request lifecycle (sequential/parallel signers), tamper-evident hash-chained evidence trail, and the crypto-engine ports (certificate store, PDF signer, RFC3161 TSA, identity bridge). Pure TypeScript, zero dependenc

Readme

@classytic/esign

Electronic-signature kernel — signature-request lifecycle, tamper-evident evidence trail, and the crypto/trust ports. Pure TypeScript, zero dependencies (node:crypto only).

The base of the classytic trust stack:

Identity (eKYC) ──▶ Certificate (CA) ──▶ Signature (this kernel + engines) ──▶ Evidence (hash chain)

What ships in this package (P1)

| Layer | Module | Status | | --- | --- | --- | | Signature-request lifecycle (sequential/parallel signers, decline/void/expire) | request.ts | ✅ implemented + tested | | Tamper-evident evidence chain (sha256 hash chain, canonical JSON) | evidence.ts | ✅ implemented + tested | | Crypto-engine + trust ports (PdfSigner, TimestampAuthority, CertificateStore, CertificateIssuer, IdentityBridge) | ports.ts | ✅ contracts (engines land in P2+) |

import {
  createSignatureRequest, sendRequest, applySignature,
  appendEvidence, verifyEvidenceChain, digestContent,
} from '@classytic/esign';

let req = createSignatureRequest({
  documentDigest: digestContent(pdfBytes),
  order: 'sequential',
  parties: [{ id: 'buyer' }, { id: 'seller' }],
});
req = sendRequest(req);
req = applySignature(req, { partyId: 'buyer', artifact: { contentDigest: digestContent(pdfBytes) } });

let evidence = appendEvidence([], { event: 'party.signed', at: new Date().toISOString(), actor: 'buyer' });
verifyEvidenceChain(evidence); // { ok: true, length: 1 } — any later edit breaks it

Design rules

  • Fail-closed everywhere trust is involved. A TSA failure is an error, never a silent local-clock fallback (the DocuSeal anti-pattern). Verification that cannot parse fails, it does not pass.
  • Kernel = pure value objects + ports. No I/O, no PDF bytes, no vendor SDKs. Engines implement the ports in their own packages, so this package's zero-dep guarantee holds.
  • One decline kills a request. Re-negotiation is a NEW request — the declined trail stays intact as evidence.
  • Identity is a bridge, not a feature. IdentityBridge mirrors @classytic/payee's ComplianceBridge (start → webhook/poll → decision) so one eKYC engine gates both payability and signing.

Roadmap (tech phases)

  • P1 (this package) — lifecycle + evidence + ports. Zero-dep, host-composable today.
  • P2 — crypto engine (@classytic/esign-pki or /pki subpath): PKCS#12 load, CMS (PKCS#7 detached) over PDF ByteRange (PAdES baseline), fail-closed RFC 3161 TSA client, verification. Self-signed org chain (integrity seal) + CA-issued P12 (legal validity).
  • P3 — @classytic/arc-esign (arc-ecosystem): signature-request REST resources composing withApprovalChain (who/order), arc-notifications (invites), mongokit persistence, evidence chain on every event.
  • P4 — identity engine + country packs: @classytic/identity (govt-ID / NID lookup, doc OCR port, liveness port — satisfies both IdentityBridge and payee's ComplianceBridge); esign-bd country pack (CCA-licensed CA integrations — the bd-tax jurisdiction-pack template).
  • P5 — product: multi-tenant signing portal (host app) + RA/partner integrations with licensed CAs.

Legal note (Bangladesh)

A signature from a self-signed credential is an integrity seal with contract-law weight between consenting parties — it carries no statutory presumption under the ICT Act 2006. Statutory digital signatures require certificates issued by a CCA-licensed Certifying Authority. This kernel is deliberately CA-agnostic: SigningCredential.trustLevel distinguishes the two, and licensed-CA integration arrives via CertificateIssuer bridges (P4). Verify current licensing rules with the CCA — capital, facility-audit, and CPS requirements apply to becoming a CA.

License

MIT © Classytic

Trademark

MIT-licensed code. "Classytic"/"arc" names + logos are trademarks of Classytic LLC — see TRADEMARK.md.