Skip to content

Open-source document signature platform. Not affiliated with DocuSign.

TypeScript

Release 0.6.0

Claude06a7b95a8bb7
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 49a54a5..404dae2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,13 @@ release says when it does.
## [Unreleased]
+## [0.6.0] - 2026-11-20
+
+Other apps can now work with SignuDoc: an API with keys, signed webhooks, and
+signing inside another site's page. Signers can also sign at the same time,
+and the sender can open the document while it is out for signature. This
+release changes the database: see the end of this entry.
+
### API
- API keys: an administrator can make keys under Settings, Organization, API
@@ -15,13 +22,14 @@ release says when it does.
its hash is stored, and it acts as the administrator who made it. Keys can
be read-only, can expire, and stop working when revoked or when their
administrator stops being one. `GET /api/v1/me` checks a key works. See
- [docs/api.md](docs/api.md).
+ [docs/api.md](docs/api.md) (#43, PR #44).
- API endpoints under `/api/v1`: create an envelope from a PDF with its
signers, copy recipients and fields, and send it, in one call (all or
nothing, safe to retry with an `Idempotency-Key`); send, void, remind and
delete; list and read envelopes and their audit trail; download the signed
PDF and the certificate; start an envelope from a template; upload PDFs
- over 4 MB straight to Blob. `GET /api/v1/openapi.json` describes it all.
+ over 4 MB straight to Blob. `GET /api/v1/openapi.json` describes it all
+ (PR #45).
- Webhooks: an administrator can add endpoints under Settings,
Organization, Webhooks, to be told when an envelope is sent, viewed,
signed, completed, declined, voided or expires. Deliveries are signed the
@@ -29,7 +37,7 @@ release says when it does.
report, and retried for about two and a half days. Settings shows a
delivery log with "Send again", a test button and secret rotation;
`GET /api/v1/webhook-deliveries` lets an app catch up. A new daily cron
- job, `/api/internal/webhooks`, sends retries that are due.
+ job, `/api/internal/webhooks`, sends retries that are due (PR #46).
- Embedded signing: an app can send an envelope with
`"delivery": "embedded"` and show the signing page in a frame on its own
site, from a link it asks for at
@@ -37,11 +45,78 @@ release says when it does.
are emailed. Only sites an administrator lists under Settings,
Organization, Embedded signing can frame the page, and the frame tells
the app with `postMessage` when the signer signs or declines. The
- certificate of completion says the signer was identified by the app.
+ certificate of completion says the signer was identified by the app
+ (PR #48).
+- For installs where people sign in only through single sign-on, the API
+ guide explains that removing someone at the identity provider leaves the
+ keys they made working, and how to stop them when that person leaves
+ (from @seanGSISG in #43).
+
+### Signing
+
+- Signers can sign at the same time. On Add signers, "Sign at the same time
+ as Signer N" puts signers in one step: everyone in a step is invited when
+ it starts and can sign in any order, and the next step starts once they
+ have all signed. Steps and one-after-another signers can be mixed.
+ Reminders, deadline changes, the expiry notice and voiding cover everyone
+ whose turn it is, and the certificate numbers signers by step. Part 11
+ mode and advanced or qualified signatures keep one signer after another.
+ See [Signing order](docs/signing-order.md) (#85, PR #157 by @MattJackson,
+ carried in PR #190).
+- An envelope can have up to 25 signers instead of 10, and
+ `MAX_SIGNERS_PER_ENVELOPE` sets any limit from 1 to 100 (PR #157).
+- A browser test now checks that a long typed signature keeps the signature
+ dialog and its buttons on a phone screen. PR #168 fixed this in 0.5.2
+ (#112, PR #187).
+
+### Sending
-This changes the database: the new `api_keys`, `api_idempotency`,
-`webhook_endpoints`, `webhook_deliveries` and `embed_allowed_origins`
-tables and six new columns are added by the migrations that run on deploy.
+- While an envelope is out for signature, and after it is declined, voided
+ or expired, its page has a View document button, and its first-page
+ picture opens the document as it was sent, in a new tab. An administrator
+ opening another member's document is recorded in the site audit trail
+ (#87, PR #188).
+- A field save from an older Place fields page, such as the save sent on
+ the way out that arrives late, or one from a second tab, is refused with a
+ request to reload, instead of overwriting newer fields (PR #186, a
+ follow-up to #165).
+
+### Settings and docs
+
+- With Part 11 mode on, "Who can create an account" says that Part 11
+ signers need an account whose identity an administrator has confirmed, so
+ the sign-up rule must let them make one (#107, PR #187).
+- The Part 11 change-control guide describes the numbered releases, with
+ their tag, source archive, SBOM and checksums (#101, PR #187).
+- The development guide explains how to run a production build on your own
+ computer with email capture (#114, PR #183 by @Chirag0401, carried in
+ PR #187).
+- The README covers sign-in security, backups, the administrator features
+ and the API, with new screenshots (PRs #189 and #195).
+
+Thank you to everyone who helped with this release. @azshaw asked for the
+API, webhooks and embedded signing in #43, and set out in four clear parts
+what an app needs, down to letting chosen sites frame the signing page, which
+is how embedded signing works. @steven-khimba, @mattwpickles and @seanGSISG
+told us what they would build with it, and @seanGSISG's note on single
+sign-on is now in the API guide. @MattJackson built signing at the same time,
+which @melsom123 asked for. @infoivy asked for View document, @Chirag0401
+wrote the guide to local production builds, and @coygeek reported four more
+careful issues.
+
+This release changes the database, in eight migrations:
+`20261118090000_api_keys.sql`, `20261118100000_api_envelopes.sql`,
+`20261118100500_api_idempotency_resource.sql`,
+`20261118110000_webhooks.sql`, `20261118120000_embedded_signing.sql`,
+`20261118120500_embed_link_api_key.sql`, `20261119090000_signing_steps.sql`
+and `20261119120000_fields_revision.sql`. They add the `api_keys`,
+`api_idempotency`, `webhook_endpoints`, `webhook_deliveries` and
+`embed_allowed_origins` tables and nine columns on envelopes and signers.
+Every signer already in an envelope gets the step of their place in the
+order, so envelopes out for signature carry on as before. On Vercel the
+production build applies the migrations. On other hosts, run
+`npm run db:migrate` as on every deploy, and if you use webhooks, have your
+scheduler call `/api/internal/webhooks` once a day too.
## [0.5.2] - 2026-11-19
@@ -464,6 +539,7 @@ checked against the real services:
SignuDoc is software, not legal advice. See the README's legal disclaimer.
+[0.6.0]: https://github.com/NYLLON-SOFTWARE/SignuDoc/releases/tag/v0.6.0
[0.5.2]: https://github.com/NYLLON-SOFTWARE/SignuDoc/releases/tag/v0.5.2
[0.5.1]: https://github.com/NYLLON-SOFTWARE/SignuDoc/releases/tag/v0.5.1
[0.5.0]: https://github.com/NYLLON-SOFTWARE/SignuDoc/releases/tag/v0.5.0
diff --git a/README.md b/README.md
index c8eaa91..8a89e40 100644
--- a/README.md
+++ b/README.md
@@ -70,6 +70,10 @@ The dashboard shows each document as a card with its first page, its status (dra
Open any envelope and choose Save as template. The template keeps the document, the fields and the signing order, with roles instead of names. Using it asks who signs this time and opens a draft ready to send.
+### Send from your other apps
+
+Your own apps can send documents through SignuDoc's API. An administrator makes a key under Settings, and one call creates an envelope from a PDF with its signers and fields, and sends it. Signed webhooks tell your app when an envelope is sent, viewed, signed, completed, declined, voided or expires. Embedded signing shows the signing page inside your own site, for the sites an administrator allows. The [API guide](docs/api.md) has the details, and `/api/v1/openapi.json` on your install describes every endpoint.
+
### Sealed, certified, and checkable by anyone
When the last signer finishes, SignuDoc builds the signed PDF and an audit certificate, seals both, and emails them to every signer and copy recipient. Names and text in Latin, Greek, Cyrillic, Chinese, Japanese and Korean scripts are drawn correctly. Anyone can drop a copy on the Verify page to see whether it is exactly the file the site produced; the file never leaves their device, only its fingerprint does.
@@ -147,19 +151,19 @@ DocuSign does more, and charges for it per user. SignuDoc does the everyday sign
| **Phones** | ✅ in the browser | ✅ native iPhone and Android apps |
| **Two-step sign-in** | ✅ authenticator app, and administrators can require it | ✅ |
| **Single sign-on** | ✅ OpenID Connect, in every install | ✅ SAML, on Enhanced, priced by sales |
+| **API and webhooks** | ✅ an API with keys, signed webhooks, and signing inside your own site, in every install | ✅ API plans from $50 a month |
### Where DocuSign does more
-| | SignuDoc | DocuSign eSignature |
-| ------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------- |
-| **More than one document per envelope, and Word files** | — PDF only, one per envelope | ✅ |
-| **Bulk send, web forms, payments** | — | ✅ on Business Pro |
-| **API and webhooks** | — not yet | ✅ API plans from $50 a month |
-| **Integrations** | — | ✅ 1,000+, including Salesforce, Microsoft and Google |
-| **Languages** | — signing pages in English | ✅ signing in 44 languages |
-| **Advanced and qualified signatures (eIDAS)** | With a provider you add: eID Easy or a CSC remote signing service | ✅ |
-| **HIPAA, 21 CFR Part 11, certifications** | Part 11 mode and a SOC 2 pack; you validate and get audited | ✅ on Enhanced or as add-ons |
-| **Support** | GitHub issues | ✅ 24/7 on Enhanced |
+| | SignuDoc | DocuSign eSignature |
+| ------------------------------------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------- |
+| **More than one document per envelope, and Word files** | — PDF only, one per envelope | ✅ |
+| **Bulk send, web forms, payments** | — | ✅ on Business Pro |
+| **Integrations** | — none built in; connect your own apps through the API and webhooks | ✅ 1,000+, including Salesforce, Microsoft and Google |
+| **Languages** | — signing pages in English | ✅ signing in 44 languages |
+| **Advanced and qualified signatures (eIDAS)** | With a provider you add: eID Easy or a CSC remote signing service | ✅ |
+| **HIPAA, 21 CFR Part 11, certifications** | Part 11 mode and a SOC 2 pack; you validate and get audited | ✅ on Enhanced or as add-ons |
+| **Support** | GitHub issues | ✅ 24/7 on Enhanced |
If your agreements run through Salesforce, need SMS checks or ID document checks, or go out by the thousand in bulk, DocuSign earns its price. If you want to send everyday agreements, keep the evidence, and own the whole thing, SignuDoc is built for you.
@@ -235,7 +239,7 @@ Files stay on disk and emails are written to `.data/outbox` instead of being sen
## Built on Vercel
-- **Vercel-native from end to end.** Next.js 16 on Vercel Functions, Neon Postgres and Resend from the Vercel Marketplace, private Vercel Blob storage with direct browser uploads, daily Vercel cron jobs for reminders, cleanup and backups, and optional [Vercel BotID](https://vercel.com/docs/botid).
+- **Vercel-native from end to end.** Next.js 16 on Vercel Functions, Neon Postgres and Resend from the Vercel Marketplace, private Vercel Blob storage with direct browser uploads, daily Vercel cron jobs for reminders, cleanup, backups and webhook retries, and optional [Vercel BotID](https://vercel.com/docs/botid).
- **Secure by default.** Private file storage with no public URLs, a strict Content Security Policy, rate limits kept in Postgres, signing links that are hashed at rest, sign-in lockout, and a setup page that only the first visitor, or the holder of a `SETUP_TOKEN`, can use.
- **Tested.** Unit tests, database tests against a real Postgres, and a browser test that sets up a fresh install, sends a document and signs it, run on every pull request.
@@ -258,6 +262,7 @@ Your install carries your organization's name, and your organization is responsi
## Learn more
- [Self-hosting guide](docs/self-hosting.md): deploying, first-run setup, what it costs, your own domain, updates, sign-in security and single sign-on, the EU, the seal, cleanup, rate limits, bot protection and every optional setting.
+- [API guide](docs/api.md): API keys, the `/api/v1` endpoints, webhooks and embedded signing.
- [Backup and restore](docs/backup-and-restore.md): daily backups to a second Blob store, and restoring one.
- [SOC 2 pack](docs/soc2/README.md) and [Part 11 validation pack](docs/part11/README.md): starting documents for an audit or a validation.
- [Deploying with an AI agent](docs/deploy-with-an-agent.md): every screen of the deploy, for an agent that uses your browser.
diff --git a/docs/api.md b/docs/api.md
index bf6ba50..a046e37 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -45,6 +45,14 @@ What to know about keys:
its administrator stops being an administrator, or when their account is
being closed. A key that stopped because its administrator lost the role
stays revoked if they get it back; make a new one.
+- **Single sign-on does not reach keys.** On an install where people sign
+ in only through single sign-on (`PASSWORD_SIGN_IN=off`), removing someone
+ at your identity provider stops them signing in, but they are still an
+ administrator here, so the keys they made keep working. When an
+ administrator leaves, take the role away under Settings, Organization,
+ People, which revokes their keys, or revoke the keys under API keys, which
+ lists every administrator's keys. An app's keys made from its own
+ administrator account, as above, do not depend on anyone staying.
- **Keys skip two-step sign-in.** They are for servers, so keep them in your
app's secret settings (for example a Vercel environment variable), never
in a browser or a mobile app, and revoke a key as soon as it may have
diff --git a/docs/self-hosting.md b/docs/self-hosting.md
index 1ecbc7a..5cc1b7c 100644
--- a/docs/self-hosting.md
+++ b/docs/self-hosting.md
@@ -218,6 +218,7 @@ How it behaves:
- **Two-step sign-in** is not asked for after single sign-on: the provider's sign-in, with its own MFA, is the check. When an administrator requires two-step sign-in, it applies to people who have a password; someone who only uses single sign-on is not held up.
- **Turning passwords off.** With single sign-on set up, `PASSWORD_SIGN_IN=off` stops password sign-in, password sign-up and password reset links. Put one or two administrator addresses in `PASSWORD_SIGN_IN_ALLOWED_EMAILS` (comma-separated) so there is a way in if the provider is down; their sign-in page shows "Sign in with a password instead". Without single sign-on set up, `PASSWORD_SIGN_IN=off` does nothing, so nobody is locked out by a half-finished setup.
- **The site audit trail** records single sign-on sign-ins, and refused ones with the reason (for example, an address the sign-up rule turned away).
+- **API keys** keep working after their administrator is removed at the provider, because that does not change their role here. When an administrator leaves, take the role away under People, which revokes their keys, or revoke the keys under API keys. See [Keys](api.md#keys).
- A missing or broken setting (one of the three left out, an issuer that is not `https://`) turns single sign-on off and leaves a warning in the function logs, so password sign-in keeps working.
SAML is not supported. Okta, Entra ID and Google all offer OIDC for the same application.
diff --git a/docs/soc2/control-map.md b/docs/soc2/control-map.md
index 645cac9..6c67ee8 100644
--- a/docs/soc2/control-map.md
+++ b/docs/soc2/control-map.md
@@ -41,16 +41,16 @@ Where a row says "evidence", it names what you can show an auditor.
## CC6 Logical and physical access
-| Criterion | SignuDoc | Vendors | Yours |
-| ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| CC6.1 Access security software and architecture | Single sign-on over OIDC with password sign-in off, or passwords of 15+ characters checked against breach lists, with two-step sign-in (authenticator app) that an administrator can require. Two roles: administrator and member. Members see only their own documents. Signers reach one document through a single-use link and an optional emailed or access code. Private Blob store: every file is read through the app. | Vercel: TLS, isolation of functions, private Blob storage. Neon: encryption at rest, TLS-only connections. | Who is on the Vercel team, the Neon project, the Resend account and the GitHub repository, each with MFA. Evidence: member lists. |
-| CC6.2 Registering and authorizing users | Sign-up limited to listed domains, or closed. With SSO, new people get an account at first sign-in under the same rule. Administrators make or remove other administrators under People; each change is in the site audit trail (`role_changed`). | | Your joiner process. With SSO, assignment to the app in your identity provider is the approval. Evidence: provider assignment log, or a ticket per new administrator. |
-| CC6.3 Removing access | With SSO, someone removed in your identity provider cannot sign in again; their open session ends at the session limit you set. Administrators can sign someone out everywhere by resetting their two-step sign-in. Account closures and deletions are in the site audit trail. | | Your leaver process, including the vendor consoles. Evidence: identity provider deprovisioning log, access review. |
-| CC6.4 Physical access | Not applicable (no hardware). | Carved out to Vercel's and Neon's cloud providers. | Collect their reports. |
-| CC6.5 Disposal | Retention rules delete finished documents and their files after the period you set. Closed accounts are deleted after their export window. The daily backup drops copies of deleted files after `BACKUP_KEEP_DAYS`. | Vercel and Neon media disposal, in their reports. | Your retention schedule ([data retention policy](policies/data-retention.md)). |
-| CC6.6 Threats from outside | HTTPS only (HSTS), a strict Content Security Policy, no framing, rate limits on sign-in, sign-up, signing and uploads, a lockout after ten wrong passwords, optional Vercel BotID, and signing links that are random and single-purpose. | Vercel's edge network and firewall (DDoS mitigation). | Vercel Firewall rules if you need more (IP allow lists are a paid Vercel feature). |
-| CC6.7 Data in transit | Every page and API is HTTPS. Database connections need TLS. | Vercel TLS termination. Neon TLS. Resend TLS to receiving servers where they support it. | Your own sending domain with SPF and DKIM (Settings, Organization, Email). |
-| CC6.8 Malicious software | Uploads must be unencrypted PDFs of 20 MB or less, and are checked as such. The app runs no uploaded code. Dependencies are checked by CodeQL, dependency review and `npm audit` in the SignuDoc repository. | Vercel's build isolation. | Endpoint protection on the computers your staff use. |
+| Criterion | SignuDoc | Vendors | Yours |
+| ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| CC6.1 Access security software and architecture | Single sign-on over OIDC with password sign-in off, or passwords of 15+ characters checked against breach lists, with two-step sign-in (authenticator app) that an administrator can require. Two roles: administrator and member. Members see only their own documents. Signers reach one document through a single-use link and an optional emailed or access code. Private Blob store: every file is read through the app. | Vercel: TLS, isolation of functions, private Blob storage. Neon: encryption at rest, TLS-only connections. | Who is on the Vercel team, the Neon project, the Resend account and the GitHub repository, each with MFA. Evidence: member lists. |
+| CC6.2 Registering and authorizing users | Sign-up limited to listed domains, or closed. With SSO, new people get an account at first sign-in under the same rule. Administrators make or remove other administrators under People; each change is in the site audit trail (`role_changed`). | | Your joiner process. With SSO, assignment to the app in your identity provider is the approval. Evidence: provider assignment log, or a ticket per new administrator. |
+| CC6.3 Removing access | With SSO, someone removed in your identity provider cannot sign in again; their open session ends at the session limit you set. Administrators can sign someone out everywhere by resetting their two-step sign-in. API keys an administrator made keep working after they are removed in the identity provider; taking away their administrator role under People revokes them. Account closures and deletions are in the site audit trail. | | Your leaver process, including the vendor consoles and the leaver's API keys. Evidence: identity provider deprovisioning log, access review. |
+| CC6.4 Physical access | Not applicable (no hardware). | Carved out to Vercel's and Neon's cloud providers. | Collect their reports. |
+| CC6.5 Disposal | Retention rules delete finished documents and their files after the period you set. Closed accounts are deleted after their export window. The daily backup drops copies of deleted files after `BACKUP_KEEP_DAYS`. | Vercel and Neon media disposal, in their reports. | Your retention schedule ([data retention policy](policies/data-retention.md)). |
+| CC6.6 Threats from outside | HTTPS only (HSTS), a strict Content Security Policy, no framing, rate limits on sign-in, sign-up, signing and uploads, a lockout after ten wrong passwords, optional Vercel BotID, and signing links that are random and single-purpose. | Vercel's edge network and firewall (DDoS mitigation). | Vercel Firewall rules if you need more (IP allow lists are a paid Vercel feature). |
+| CC6.7 Data in transit | Every page and API is HTTPS. Database connections need TLS. | Vercel TLS termination. Neon TLS. Resend TLS to receiving servers where they support it. | Your own sending domain with SPF and DKIM (Settings, Organization, Email). |
+| CC6.8 Malicious software | Uploads must be unencrypted PDFs of 20 MB or less, and are checked as such. The app runs no uploaded code. Dependencies are checked by CodeQL, dependency review and `npm audit` in the SignuDoc repository. | Vercel's build isolation. | Endpoint protection on the computers your staff use. |
## CC7 System operations
diff --git a/docs/soc2/policies/access-control.md b/docs/soc2/policies/access-control.md
index 690afc4..675d209 100644
--- a/docs/soc2/policies/access-control.md
+++ b/docs/soc2/policies/access-control.md
@@ -7,7 +7,7 @@
3. **Who gets an account.** Sign-up is limited to `[our domains]`. With single sign-on, a person is given the app in `[identity provider]` by `[role]` on request from their manager.
4. **Administrators.** At most `[N]` people are administrators, named in `[location]`. A new administrator is approved by `[role]` and made one by an existing administrator; the change is in the site audit trail.
5. **Vendor consoles.** Only `[roles]` are members of the Vercel team, Neon project, Resend account and GitHub repository. Each uses their own login with MFA. Shared logins are not allowed.
-6. **Leavers.** On a person's last day, `[role]` removes them in `[identity provider]` and from every vendor console, and checks People in the app.
+6. **Leavers.** On a person's last day, `[role]` removes them in `[identity provider]` and from every vendor console, and checks People in the app. If they were an administrator, `[role]` takes the role away under People, which revokes the API keys they made.
7. **Review.** Every `[quarter]`, `[role]` compares People, the administrator list and each vendor console's members against current staff, removes anyone who should not be there, and files the result.
8. **Break-glass accounts** are used only when single sign-on is down. Each use is recorded as an incident, and the password is changed after.
diff --git a/package-lock.json b/package-lock.json
index 72913a7..2e8f57f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "signudoc",
- "version": "0.5.2",
+ "version": "0.6.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "signudoc",
- "version": "0.5.2",
+ "version": "0.6.0",
"license": "MIT",
"dependencies": {
"@pdf-lib/fontkit": "^1.1.1",
diff --git a/package.json b/package.json
index 97eb10c..e2b2f28 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "signudoc",
- "version": "0.5.2",
+ "version": "0.6.0",
"license": "MIT",
"private": true,
"engines": {