🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@e-sig/react

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@e-sig/react

React UI for self-contained PDF e-signing — draw-to-sign canvas, sign flow, and signed-receipt components. Framework-agnostic (no Next/Supabase coupling).

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
6
-50%
Maintainers
1
Weekly downloads
 
Created
Source

@e-sig/react

Framework-agnostic React UI for the self-contained PDF e-sign flow. No Next.js / Supabase / design-system coupling — pass a signEndpoint + callbacks.

npm i @e-sig/react react react-dom
import { SelfSignFlow, SelfSignedReceipt, SignaturePadCanvas } from "@e-sig/react";

<SelfSignFlow
  documentId={doc.id}
  signer={{ name, email }}
  preview={<YourDocumentPreview html={doc.body} />}
  signEndpoint="/api/esign/sign"   // POSTs { document_id, signature_image_data_url }
  onSigned={(result) => router.refresh()}
/>;

// once signed:
<SelfSignedReceipt
  signedPdfUrl={doc.signed_pdf_url}
  signatureImageUrl={doc.signature_image_url}
  signatory={doc.signatory}
  signedDate={doc.signed_at}
  downloadHref={(p) => `/api/esign/download/${encodeURIComponent(p)}`}
  backHref="/"
/>;

Components

  • SignaturePadCanvas — wraps signature_pad; imperative handle (getImageDataURL → PNG data URL, clear, isEmpty). Fully prop-styled.
  • SelfSignFlow — optional preview + canvas + consent checkbox + Sign button; POSTs to signEndpoint, calls onSigned(result). Labels/consent text are props.
  • SelfSignedReceipt — download link + signature image + cert-fingerprint / IP metadata; downloadHref maps a storage path → a fetchable URL.

Uses Tailwind utility classes (incl. shadcn-style theme tokens like bg-primary, text-muted-foreground); they degrade gracefully without Tailwind and are overridable via className. Peer deps: react, react-dom. Dep: signature_pad. License: MIT.

Keywords

react

FAQs

Package last updated on 07 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts