{"id":38968361,"url":"https://github.com/superdoc-dev/esign","last_synced_at":"2026-01-17T16:34:06.252Z","repository":{"id":318527538,"uuid":"1062737107","full_name":"superdoc-dev/esign","owner":"superdoc-dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-18T22:15:27.000Z","size":395,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-21T20:49:22.054Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superdoc-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-23T16:51:11.000Z","updated_at":"2025-12-12T09:40:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7c61be8-7f82-4a48-845a-1ab704380dfb","html_url":"https://github.com/superdoc-dev/esign","commit_stats":null,"previous_names":["superdoc-dev/esign"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/superdoc-dev/esign","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superdoc-dev%2Fesign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superdoc-dev%2Fesign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superdoc-dev%2Fesign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superdoc-dev%2Fesign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superdoc-dev","download_url":"https://codeload.github.com/superdoc-dev/esign/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superdoc-dev%2Fesign/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T16:34:05.514Z","updated_at":"2026-01-17T16:34:06.233Z","avatar_url":"https://github.com/superdoc-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @superdoc-dev/esign\n\nReact component that wraps SuperDoc for document signing workflows with audit trails and compliance tracking.\n\n## Installation\n\n```bash\nnpm install @superdoc-dev/esign\n```\n\n## Quick Start\n\n```jsx\nimport React from 'react';\nimport SuperDocESign from '@superdoc-dev/esign';\nimport 'superdoc/dist/style.css';\n\nfunction App() {\n  const handleSubmit = async (data) =\u003e {\n    // Send to your backend\n    await fetch('/api/sign', {\n      method: 'POST',\n      headers: { 'Content-Type': 'application/json' },\n      body: JSON.stringify(data)\n    });\n    alert('Document signed!');\n  };\n\n  return (\n    \u003cSuperDocESign\n      eventId={`session-${Date.now()}`}\n      \n      document={{\n        source: \"https://storage.googleapis.com/public_static_hosting/public_demo_docs/service_agreement.docx\",\n        validation: { scroll: { required: true } }\n      }}\n      \n      fields={{\n        document: [\n          { id: 'user_name', value: 'John Doe' },\n          { id: 'agreement_date', value: new Date().toLocaleDateString() },\n          { id: 'company_name', value: 'SuperDoc' },\n          { id: 'service_type', value: 'Premium' },\n          { id: 'agreement_jurisdiction', value: 'CA' },\n          { id: 'company_address', value: '123 Main St, Anytown, USA' }\n        ],\n        signer: [\n          {\n            id: 'signature',\n            type: 'signature',\n            validation: { required: true },\n            label: 'Type your full name'\n          },\n          {\n            id: 'accept_terms',\n            type: 'checkbox',\n            validation: { required: true },\n            label: 'I accept the terms'\n          }\n        ]\n      }}\n      \n      onSubmit={handleSubmit}\n    /\u003e\n  );\n}\n```\n\n## Backend - Create Signed PDF\n\nUse the SuperDoc API to create the final signed document:\n\n```javascript\n// Node.js/Express\napp.post('/api/sign', async (req, res) =\u003e {\n  const { eventId, auditTrail, documentFields, signerFields } = req.body;\n  \n  // 1. Fill document fields\n  const annotated = await fetch('https://api.superdoc.dev/v1/annotate', {\n    method: 'POST',\n    headers: { \n      'Authorization': `Bearer ${API_KEY}`,\n      'Content-Type': 'application/json'\n    },\n    body: JSON.stringify({\n      document: 'template.docx',\n      fields: [...documentFields, ...signerFields]\n    })\n  });\n  \n  // 2. Add digital signature\n  const signed = await fetch('https://api.superdoc.dev/v1/sign', {\n    method: 'POST', \n    headers: { \n      'Authorization': `Bearer ${API_KEY}`,\n      'Content-Type': 'application/json'\n    },\n    body: JSON.stringify({\n      document: await annotated.blob(),\n      auditTrail: auditTrail\n    })\n  });\n  \n  // 3. Save PDF\n  await saveToStorage(await signed.blob(), `signed_${eventId}.pdf`);\n  \n  res.json({ success: true });\n});\n```\n\nSee [Python, Node.js, and more examples](https://docs.superdoc.dev/solutions/esign/backend).\n\n## What You Receive\n\n```javascript\n{\n  eventId: \"session-123\",\n  timestamp: \"2024-01-15T10:30:00Z\",\n  duration: 45000,\n  documentFields: [\n    { id: \"user_name\", value: \"John Doe\" }\n  ],\n  signerFields: [\n    { id: \"signature\", value: \"John Doe\" },\n    { id: \"accept_terms\", value: true }\n  ],\n  auditTrail: [\n    { type: \"ready\", timestamp: \"...\" },\n    { type: \"scroll\", timestamp: \"...\" },\n    { type: \"field_change\", timestamp: \"...\" },\n    { type: \"submit\", timestamp: \"...\" }\n  ],\n  isFullyCompleted: true\n}\n```\n\n## Documentation\n\nFull docs at [docs.superdoc.dev/solutions/esign](https://docs.superdoc.dev/solutions/esign)\n\n## License\n\nAGPLv3","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperdoc-dev%2Fesign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperdoc-dev%2Fesign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperdoc-dev%2Fesign/lists"}