Add e-signatures and clickwrap on Deno Deploy
To add e-signatures and clickwrap on Deno Deploy, store the secret key as a secret environment variable and call the REST API with fetch from a Deno.serve handler. One route creates the session, another confirms the record against DENO_TIMELINE, and Deno KV keeps what the session pinned. Esign Comply seals each acceptance as an independent record.
Follow the steps and each signature your app records is a valid electronic signature under the ESIGN Act, state UETA laws and New York's ESRA, and your clickwrap is built the way courts require: clear notice of the terms, an unmistakable act of assent, and a sealed record of both.
Paste this prompt into Cursor, Claude Code or another AI coding tool to have it build the same integration:
Add Esign Comply clickwrap to my app on Deno Deploy: a signup form where the user accepts the Terms of Service and the Privacy Notice with a checkbox and a button.
Read these first and follow them exactly. If something conflicts with existing code, or you are unsure how to implement a step, stop and ask. Do not invent API methods, packages or legal wording.
- https://esigncomply.com/docs/quickstart/deno-deploy.md (the steps and the tested code for Deno Deploy)
- https://esigncomply.com/setup.md (the order of API calls)
- https://esigncomply.com/auth.md (how to handle the keys)
Deno Deploy facts
- Install nothing. The server calls the REST API at https://esigncomply.com/v1 with fetch, Authorization: Bearer and the secret key. Do not invent a Deno package.
- The browser SDK is a script tag: https://esigncomply.com/sdk/v1/esigncomply.js. It defines the global EsignComply.
- The secret key is the environment variable ESIGNCOMPLY_API_KEY, added in the app's settings as a secret: the test key for the Development context, the live key for the Production context. Read it with Deno.env.get. Never print it.
- Expect live records only when Deno.env.get("DENO_TIMELINE") is "production".
- Two requests can run in two isolates. Keep the pinned version IDs in Deno KV (await Deno.openKv()), never in a module-level variable. Locally Deno KV needs the --unstable-kv flag.
- The page is on screen before the script has a session: render the checkbox disabled and enable it when observeAssent has resolved.
Build
1. Verify the key: GET /v1/usage with ESIGNCOMPLY_API_KEY. Stop if it fails.
2. Register the Terms of Service and the Privacy Notice as documents and publish one version of each from the documents in this project. If the project has none, register short sample documents and say so in your report. Never write or change the wording of the real documents. Create a profile: jurisdictions ["US-FED"], method "checkbox", assurance_level "L1".
3. Server: POST /api/ceremony calls POST /v1/sessions with an Idempotency-Key, saves the signer ID and the pinned version IDs in Deno KV, and returns only clientToken, apiUrl and documents.
4. Server: GET /legal/terms and /legal/privacy render the html from GET /v1/documents/{id}/versions/{version_id}/content inside <article data-esc-document>, unmodified.
5. Browser: EsignComply.attach({ clientToken, apiUrl }), presentDocument for each link, observeAssent({ region, checkbox, submit }), then complete() from the user's real click.
6. Server: POST /api/signup/confirm calls GET /v1/records/{id} and requires: status is "recorded", "timestamped" or "anchored"; livemode is as expected; the signer ID and version IDs equal the entry in Deno KV. Only then create the account, and store the record ID and the receipt.
Never
- Never pre-check the box, auto-submit, or call .click() on the user's behalf.
- Never use "By continuing" or "By clicking below" wording. The notice names the button by its label and each document by its registered name.
- Never put the secret key, or any call that uses it, in code that reaches the browser.
- Never show "signed" or "accepted" before the server has confirmed the record.
- Never fall back to an acceptance with no record when a session is refused.
Check before you report success
- Run: npx esigncomply check --url http://localhost:8000/signup --callback http://localhost:8000/api/signup/confirm
Fix every finding marked "block". List every finding marked "warn".
- Report the files you created or changed, anything you did not implement and why, and the conformance summary.
Then add the rules block to this project's instruction file: https://esigncomply.com/rules.md
The rest of this page is the same integration by hand, in eight steps. Steps 1 to 7 run on your machine with the Deno CLI. Step 8 is the part that happens on Deno Deploy.
Before you start
- A test API key. Create an account with your email, no card, then choose Create test key in the dashboard. The key is shown once and starts with
esc_test_. An AI agent with an agent token creates it withPOST /v1/agent/api-keys: see the agent account API. - Nothing else from Esign Comply. Test mode works on
localhostwith no card and no domain, and the Free plan includes it in full. - Deno 2. This page was run on Deno 2.9.8.
- A Deno Deploy organization, when you reach step 8. Steps 1 to 7 need no account.
curlandjqfor steps 2 and 3, and Node.js 20.19 or later for the conformance check in step 7.
Step 1. Install
No package needed. The server SDK exists for Node.js only, so the app calls the REST API with fetch, which Deno has built in: three endpoints. The page loads the browser SDK from a script tag, and Deno KV is part of the runtime.
mkdir esigncomply-quickstart && cd esigncomply-quickstart
mkdir public
Step 2. Set the key
On your machine the key goes in .env, which the --env-file flag in step 4 loads. On Deno Deploy it is an environment variable of the app, added as a secret in step 8. The code reads it with Deno.env.get in both places.
# .env (never commit this file)
ESIGNCOMPLY_API_KEY=esc_test_us_...
Load the file into your shell for the commands in steps 2, 3 and 7, then check that the key works:
set -a; . ./.env; set +a
curl -s ${ESIGNCOMPLY_API_URL:-https://esigncomply.com/v1}/usage \
-H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" | jq '{plan_name, test_events}'
{
"plan_name": "Free",
"test_events": {
"used_this_month": 0,
"quota_per_month": 500
}
}
A 401 means the key is wrong or revoked: see invalid_api_key. The rules for handling keys are in /auth.md.
Step 3. Register a document version
Every record pins the exact version of each document by hash, so the documents are registered first. This block registers a Terms of Service and a Privacy Notice with one version each, and creates a profile: the Federal pack, a checkbox with a button, level L1. It is the same for every stack and needs curl and jq.
ESC=${ESIGNCOMPLY_API_URL:-https://esigncomply.com/v1}
KEY="Authorization: Bearer $ESIGNCOMPLY_API_KEY"
JSON="Content-Type: application/json"
# Two sample documents, one version each.
TERMS=$(curl -s $ESC/documents -H "$KEY" -H "$JSON" \
-d '{"name":"Terms of Service","type":"terms"}' | jq -r .id); sleep 1
curl -s $ESC/documents/$TERMS/versions -H "$KEY" -H "$JSON" \
-d '{"version_label":"1","language":"en","content":{"format":"markdown","text":"# Terms of Service\n\nThese are sample terms for a test."},"material_change":true}' \
| jq -r .id; sleep 1
PRIVACY=$(curl -s $ESC/documents -H "$KEY" -H "$JSON" \
-d '{"name":"Privacy Notice","type":"privacy_notice"}' | jq -r .id); sleep 1
curl -s $ESC/documents/$PRIVACY/versions -H "$KEY" -H "$JSON" \
-d '{"version_label":"1","language":"en","content":{"format":"markdown","text":"# Privacy Notice\n\nThis is a sample privacy notice for a test."}}' \
| jq -r .id; sleep 1
# A profile: Federal pack, checkbox plus button, L1.
PROFILE=$(curl -s $ESC/profiles -H "$KEY" -H "$JSON" \
-d '{"name":"Signup","jurisdictions":["US-FED"],"method":"checkbox","assurance_level":"L1"}' | jq -r .id)
printf 'ESIGNCOMPLY_PROFILE_ID=%s\nESIGNCOMPLY_TERMS_ID=%s\nESIGNCOMPLY_PRIVACY_ID=%s\n' "$PROFILE" "$TERMS" "$PRIVACY"
It prints the two version IDs, then three lines with your own IDs:
dv_YiWs9cmWoVSGp7ALPeZS
dv_bAYeA7QigKUH0iLhPpV7
ESIGNCOMPLY_PROFILE_ID=prof_SPVEgBT8a8Ror3mJ8M99
ESIGNCOMPLY_TERMS_ID=doc_bDgYFndAoC8tkeYibAVy
ESIGNCOMPLY_PRIVACY_ID=doc_mb2hnWKS0Qa7SKtucDW9
Add the three lines to .env. The pauses keep the script under the Free plan's 2 requests per second. Keep the names Terms of Service and Privacy Notice: the notice on your page names each document by its registered name, and rule CR-02 checks that it does. With your own documents, publish the text you already have and change the notice to match. See Documents and Profiles.
Step 4. Create a session on the server
main.ts is the whole app: the signup page, the two document pages, the route that creates the session, and the route that confirms the record. The esc function is the entire client: a fetch call with the secret key, sent again when the API answers 429. POST /api/ceremony creates the session and returns three values to the browser: the client token, the API URL and the pinned documents.
// main.ts
const API = Deno.env.get("ESIGNCOMPLY_API_URL") ?? "https://esigncomply.com/v1";
const SEALED = ["recorded", "timestamped", "anchored"];
const HTML = { "Content-Type": "text/html; charset=utf-8" };
// Deno Deploy sets DENO_TIMELINE: "production" on the production timeline, and the name of the
// branch or preview everywhere else. Only production holds the live key and accepts live records.
const LIVE = Deno.env.get("DENO_TIMELINE") === "production";
const DOCUMENTS: Record<string, string | undefined> = {
terms: Deno.env.get("ESIGNCOMPLY_TERMS_ID"),
privacy: Deno.env.get("ESIGNCOMPLY_PRIVACY_ID"),
};
// The signer. In your app this is the signed-in user, or the account you are about to create.
const signer = {
external_id: "user_7c1d",
email: "dana@example.org",
name: "Dana Whitfield",
class: "consumer",
country: "US",
region: "US-CA",
};
// Nothing to install: the server calls are plain fetch calls with the secret key.
// On 429 the API names the wait in Retry-After: wait that long, 5 seconds at most, and send the
// request again, twice at most. Nothing else is retried.
async function esc(path: string, init: RequestInit = {}) {
for (let attempt = 0; ; attempt++) {
const response = await fetch(API + path, {
...init,
headers: { Authorization: `Bearer ${Deno.env.get("ESIGNCOMPLY_API_KEY")}`, "Content-Type": "application/json", ...init.headers },
});
if (response.status === 429 && attempt < 2) {
await response.body?.cancel();
const seconds = Math.min(Math.max(Number(response.headers.get("Retry-After")) || 1, 1), 5);
await new Promise((resolve) => setTimeout(resolve, seconds * 1000));
continue;
}
return { ok: response.ok, data: await response.json() };
}
}
// Two requests can run in two isolates, so what the session pinned goes to Deno KV, not to memory.
// On Deno Deploy the database assigned to the app is opened with no arguments.
const kv = await Deno.openKv();
Deno.serve(async (req) => {
const url = new URL(req.url);
if (req.method === "GET" && url.pathname === "/signup") {
return new Response(await Deno.readTextFile(new URL("./public/signup.html", import.meta.url)), { headers: HTML });
}
// The document pages: each one renders a registered version, unmodified.
if (req.method === "GET" && url.pathname.startsWith("/legal/")) {
const documentId = DOCUMENTS[url.pathname.slice("/legal/".length)];
if (!documentId) return Response.json({ error: "not_found" }, { status: 404 });
const version = encodeURIComponent(url.searchParams.get("v") ?? "current");
const { ok, data } = await esc(`/documents/${documentId}/versions/${version}/content`);
if (!ok) return Response.json({ error: data.error?.code }, { status: 404 });
return new Response(`<!doctype html><meta charset="utf-8"><article data-esc-document="${data.version_id}">${data.html}</article>`, { headers: HTML });
}
// Step 4: create the session with the secret key. The browser gets the client token only.
if (req.method === "POST" && url.pathname === "/api/ceremony") {
const { ok, data: session } = await esc("/sessions", {
method: "POST",
headers: { "Idempotency-Key": `signup-${signer.external_id}-${crypto.randomUUID()}` },
body: JSON.stringify({
profile: Deno.env.get("ESIGNCOMPLY_PROFILE_ID"),
signer,
documents: [
{ document: DOCUMENTS.terms, version: "current" },
{ document: DOCUMENTS.privacy, version: "current" },
],
// The timeline that served the page: localhost, a preview URL or your production domain.
context: { url: `${req.headers.get("origin") ?? url.origin}/signup`, locale: "en-US", purpose: "account_signup" },
}),
});
if (!ok) return Response.json({ error: session.error?.code }, { status: 502 });
const versionIds = session.documents.map((d: { version_id: string }) => d.version_id).sort();
await kv.set(["pinned", signer.external_id], versionIds, { expireIn: 30 * 60 * 1000 });
return Response.json({ clientToken: session.client_token, apiUrl: session.api_url, documents: session.documents });
}
// Step 6: confirm the record with the secret key before the account exists.
if (req.method === "POST" && url.pathname === "/api/signup/confirm") {
const { recordId } = await req.json();
const { ok, data: record } = await esc(`/records/${encodeURIComponent(String(recordId))}`);
const pinned = await kv.get<string[]>(["pinned", signer.external_id]);
const confirmed =
ok &&
pinned.value !== null &&
SEALED.includes(record.status) &&
record.livemode === LIVE &&
record.signer.external_id === signer.external_id &&
JSON.stringify(record.documents.map((d: { version_id: string }) => d.version_id).sort()) === JSON.stringify(pinned.value);
console.log(confirmed ? `confirmed ${record.id} (${record.status})` : "refused");
if (!confirmed) return Response.json({ confirmed: false }, { status: 409 });
// Only now create the account. The record ID and the receipt stay in your own database.
await kv.set(["acceptance", signer.external_id], { recordId: record.id, receipt: record.receipt, acceptedAt: record.signed_at });
return Response.json({ confirmed: true, recordId: record.id });
}
return Response.json({ error: "not_found" }, { status: 404 });
});
Two things in this file are specific to Deno Deploy. LIVE reads DENO_TIMELINE, which Deno Deploy sets to production on the production timeline and to the name of the branch or preview everywhere else. And the state the confirmation compares against goes to Deno KV, because two requests can run in two isolates.
When the API answers 429, esc waits for the seconds in Retry-After, 5 at most, and sends the request again, up to twice. Nothing else is retried.
The signer is a fixed test person here. In your app it is the signed-in user or the account you are about to create.
Start the app. It prints the address it listens on, port 8000 by default:
deno run --allow-net --allow-env --allow-read --unstable-kv --env-file=.env main.ts
Each flag is needed on your machine. Without --unstable-kv, Deno 2.9.8 stops with TypeError: Deno.openKv is not a function. Without --allow-env, it stops with NotCapable: Requires env access.
Step 5. Attach the ceremony in the browser
The browser SDK renders nothing. It observes the checkbox, the notice, the links and the button you built, and reports each step from the signer's browser straight to Esign Comply. Save the page as public/signup.html:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Create account</title>
<style>
body { font: 16px/1.5 system-ui, sans-serif; max-width: 480px; margin: 48px auto; padding: 0 20px; }
a { color: #0b57d0; text-decoration: underline; }
button { font: inherit; padding: 10px 16px; }
</style>
</head>
<body>
<h1>Create account</h1>
<form id="signup">
<div id="assent">
<!-- The page is on screen before the script has a session, so the box stays disabled until the SDK watches it. -->
<label><input id="agree" type="checkbox" disabled /> I agree to the Terms of Service and Privacy Notice</label>
<p>
By checking the box and clicking Create account, you agree to the
<a id="tos-link" href="/legal/terms">Terms of Service</a> and acknowledge the
<a id="privacy-link" href="/legal/privacy">Privacy Notice</a>.
</p>
<button id="create-account" type="submit" disabled>Create account</button>
</div>
<p id="message" role="alert"></p>
</form>
<script src="https://esigncomply.com/sdk/v1/esigncomply.js"></script>
<script type="module">
const agree = document.querySelector("#agree");
const submit = document.querySelector("#create-account");
const message = document.querySelector("#message");
// Your server creates the session and returns only the client token and the pinned documents.
const response = await fetch("/api/ceremony", { method: "POST" });
const { clientToken, apiUrl, documents } = await response.json();
const ceremony = await EsignComply.attach({ clientToken, apiUrl });
ceremony.on("change", ({ remainingSteps }) => {
submit.disabled = remainingSteps.some((step) => step !== "signature.applied");
});
// Point each link at the exact version this session pinned, then report it.
const links = [document.querySelector("#tos-link"), document.querySelector("#privacy-link")];
for (const [i, link] of links.entries()) {
link.search = "?v=" + documents[i].version_id;
await ceremony.presentDocument({ versionId: documents[i].version_id, mode: "hyperlink", link });
}
await ceremony.observeAssent({
region: document.querySelector("#assent"), // notice, links, checkbox, button
checkbox: agree,
submit,
});
agree.disabled = false; // the SDK watches the box from here on. Only the user ticks it.
document.querySelector("#signup").addEventListener("submit", async (event) => {
event.preventDefault();
try {
const result = await ceremony.complete(); // the signing act, from the signer's own click
// The result came to the browser. Your server confirms the record before anything is granted.
const confirmed = await fetch("/api/signup/confirm", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ recordId: result.recordId }),
});
message.textContent = confirmed.ok
? `Account created. Record ${result.recordId}`
: "We could not confirm whether your acceptance was recorded. Please wait while we check.";
} catch (error) {
message.textContent = error.message;
}
});
</script>
</body>
</html>
Open http://localhost:8000/signup. The button stays disabled until the box is ticked. Tick it, click Create account, and the page shows:
Account created. Record rec_97D3Lpa5LtdE3gY78TaD
The checkbox starts unchecked and disabled. The page is on screen before the script has a session, and the script enables the box once the SDK observes it: a box ticked before that fails CR-01. In a test with the session request held back, a click on the box did nothing. The notice names the button by its label and each document by its name, and both links are underlined in a color that differs from the text around them. Each link opens a document page that the app renders from the registered version.
Step 6. Confirm the record on the server
The result of complete() was delivered to the browser, so the app does not trust it. POST /api/signup/confirm in main.ts reads the record with the secret key and the pinned versions from Deno KV, and grants access only when four things hold: the status is recorded, timestamped or anchored; livemode equals LIVE; the signer is the one the session was created for; and the document versions are exactly the ones it pinned. This step is never optional.
The app prints one line for each confirmation:
confirmed rec_97D3Lpa5LtdE3gY78TaD (anchored)
A record ID that was made up is refused with status 409:
curl -s -X POST http://localhost:8000/api/signup/confirm \
-H "Content-Type: application/json" -d '{"recordId":"rec_made_up"}'
{"confirmed":false}
A test record is refused the same way on the production timeline: started with DENO_TIMELINE=production and a test key, the route answered 409 for a sealed test record. See Server confirmation for the webhook that backs this route up when the browser closes early.
Step 7. Check the result
Open the dashboard and choose Records. The test record is there with what was observed, what was asserted, and its evidence report, watermarked TEST.
Then run the conformance check against the page. It opens the page in headless Chromium at three window sizes, signs as a visitor would, and tries four things that must be refused. One of them posts a made-up record ID to your confirm route. The checker is a Node.js command line tool, so it needs Node.js 20.19 or later, in a folder of its own:
mkdir -p esc-check && cd esc-check
npm init -y && npm install esigncomply playwright
npx playwright install chromium
npx esigncomply check --url http://localhost:8000/signup --callback http://localhost:8000/api/signup/confirm
The report for this page's code, shortened:
Violations that must be refused
REFUSED Submit with the checkbox untouched No record was made.
REFUSED Completion from another origin The API answered 403 domain_mismatch.
REFUSED Programmatic click No record was made.
REFUSED Forged success posted to your callback http://localhost:8000/api/signup/confirm answered 409.
Ceremonies
390x844 record rec_qYfbAjHqMmR5GnK3u9E9 session ses_rNx9UCGgACX1dTP2YMHd, 5 events
768x1024 record rec_ZSXX3nth1pR5iPm7b4xV session ses_BqMYkfTvb7Kfhrovf12U, 5 events
1440x900 record rec_LC5oXy8H5S8hpXrEQo1G session ses_UjAd8AhuNpXNK87L9cmF, 5 events
Summary: 0 block, 0 warn, 27 pass.
Fix every finding marked block and read every finding marked warn. Each one names the rule the screen missed, the measurement and the fix. In test mode a finding never stops a record from being sealed, so read the report. The rules are on Conformance rules, and every flag of the command is on the CLI page.
Step 8. Go live
Going live takes three steps on the Esign Comply side. There is no plan to choose and no checkout: the Free plan records 10 live signatures a month.
- Register your production domain and verify it. See Register a domain.
- Add your organization's legal name, country and address under Go live in the dashboard.
- Create a live key. It is shown once and starts with
esc_live_.
Test and live share nothing, so create the documents and the profile again with the live key, or copy them to live from the dashboard, and use the live IDs in production.
Then set up the app on Deno Deploy. The settings below are from Deno's own documentation, checked on November 24, 2026: Getting started, Environment variables and contexts, Timelines, Databases and Domains.
The app. Create it from your GitHub repository in the Deno Deploy console, or with deno deploy create, and set main.ts as the entrypoint.
Environment variables. Add them in the app's settings under Environment Variables. Add ESIGNCOMPLY_API_KEY as a secret, which is never visible in the console after you save it, and give it two values: the live key in the Production context, the test key in the Development context, which serves preview and branch URLs. Add the three IDs the same way: live IDs for Production, test IDs for Development.
The database. Provision a database with the Deno KV engine and assign it to the app. Deno.openKv() then needs no arguments, and Deno Deploy creates an isolated database for each timeline, so a preview never reads production data.
Preview and branch URLs. Production runs at https://<app-name>.<org-name>.deno.net, a Git branch at https://<app-name>--<branch-name>.<org-name>.deno.net, and a preview at https://<app-name>-<revision-id>.<org-name>.deno.net. A test key refuses a host it does not know with domain_mismatch. List the hosts you test on under Domains in the dashboard, or with the API:
curl -X PATCH https://esigncomply.com/v1/domains/dom_4Kx9 \
-H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" -H "Content-Type: application/json" \
-d '{ "test_origins": ["my-org.deno.net"] }'
An entry also covers its subdomains. In a test against the API, an entry for one branch host let that host through and left a preview host of the same app refused. An entry for the organization's own host, my-org.deno.net, let the preview through, and a host of another organization stayed refused. Never list the shared suffix deno.net.
The production domain. Go live on a domain you own. A deno.net host has no DNS zone of yours to put a record in, and the file method is offered only for a fixed list of platform suffixes that does not include deno.net. Add your custom domain to the organization in Deno Deploy, assign it to the app, then register it with Esign Comply and verify it with one DNS record. See Register a domain.
In live mode context.url must be inside your registered domain, and browser calls are accepted only from it. By default a live signature with a finding at Block level is recorded and you are told at once which rule failed. Turn on blocking, on the dashboard's Conformance page, and it is refused before it is sealed. Run the check from step 7 until no finding is at Block level before you switch keys.
Troubleshooting
TypeError: Deno.openKv is not a function. The app was started without--unstable-kv. Deno 2.9.8 needs the flag on your machine. It is not an Esign Comply error: no call was made yet.invalid_api_keyfrom/api/ceremony.Deno.env.get("ESIGNCOMPLY_API_KEY")is empty or holds another value. Locally, pass--env-file=.env. On Deno Deploy, check that the variable has a value in the context the timeline uses: Development for previews and branches, Production for production. Seeinvalid_api_key.domain_mismatchon a preview or branch URL. The host is not a test origin of your domain. Add the host, or your organization'sdeno.nethost, under Domains in the dashboard. Test keys work onlocalhostwith no setup. Seedomain_mismatch.429when the confirm route reads the record.escwaits for the seconds inRetry-After, 5 at most, and sends the request again, up to twice. Nothing else is retried. In the test, four confirmations sent at once for one record all answered200: two of the reads got429withRetry-After: 1and passed on the next attempt. Without the retry, the same four ended with one409for a real record. Seerate_limit_exceeded.
Questions about the Deno Deploy quickstart
Does the Deno Deploy quickstart install an Esign Comply package?
No. The server SDK is written for Node.js, so the quickstart calls the REST API with fetch, which Deno has built in. In a separate test, npm:esigncomply@1.0.4 loaded under Deno 2.9.8 and answered a call, but nothing on this page depends on it.
How does the app know it runs in production on Deno Deploy?
From DENO_TIMELINE. Deno Deploy sets it to production on the production timeline and to the name of the branch or preview elsewhere. The confirm route expects a live record only in production. Started locally with DENO_TIMELINE=production and a test key, it refused a sealed test record.
Why does the local command need --unstable-kv?
Because Deno KV is behind that flag in the Deno CLI. Without it, Deno 2.9.8 stopped with TypeError: Deno.openKv is not a function before the server started. On your machine the data is kept in a local SQLite database.
Which permission flags does the local run need?
Three: --allow-net to serve and to call the API, --allow-env to read the key, and --allow-read to read public/signup.html. Deno denies each of these by default. Without --allow-env the app stopped with NotCapable: Requires env access.
Was this quickstart run on Deno Deploy?
Not yet. The code was run with Deno 2.9.8 on a local machine, and the Deno Deploy settings come from Deno's documentation as of November 24, 2026. The contexts of environment variables, the KV database per timeline and the preview URLs are proven only by a deployment.
Next steps
- E-signatures and clickwrap on Deno Deploy: how the pieces fit on this platform, with the things to watch for.
- Register a domain: DNS verification, statuses, and test origins.
- Server confirmation: the checks in step 6 and the
record.completedwebhook. - Add e-signatures and clickwrap on Supabase: the same
fetchcalls in Supabase Edge Functions, which also run on Deno. - All quickstarts.
Run on 2026-11-26 with Deno 2.9.8 on a local machine (Deno.serve, Deno KV with --unstable-kv, DENO_TIMELINE set by hand for the production check), the browser SDK script build and the conformance check from esigncomply 1.0.4, against the API in test mode. The Deno Deploy settings are from Deno's documentation as of 2026-11-24. The code has not yet been run on Deno Deploy.
Last updated · API version 2026-11-21