E-signatures and clickwrap for your stack
Pick your language or framework and add e-signatures and clickwrap with code that was run on it. Esign Comply has a server package for Node.js, a browser SDK and React hooks. Every other language calls the REST API with plain HTTPS requests. Each stack page links to a quickstart that ends in a sealed test record.
Follow the setup and each signature is a valid electronic signature under the U.S. ESIGN Act, state UETA laws and New York's ESRA, on every stack listed here.
$npm install esigncomply @esigncomply/browserFree plan: 10 live signatures a month and a full test mode. No card required.
Last updated
// 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 { data: session, error } = await esc.sessions.create( { profile: process.env.ESIGNCOMPLY_PROFILE_ID, signer, documents: [ { document: DOCUMENTS.terms, version: "current" }, { document: DOCUMENTS.privacy, version: "current" }, ], // The page that runs the ceremony: the origin the browser reports, plus its path. context: { url: `${req.headers.origin ?? url.origin}/signup`, locale: "en-US", purpose: "account_signup" }, }, { idempotencyKey: `signup-${signer.external_id}-${randomUUID()}` }, ); if (error) return json(res, 502, { error: error.code }); pinned.set(signer.external_id, session.documents.map((d) => d.version_id)); return json(res, 200, { clientToken: session.client_token, apiUrl: session.api_url, documents: session.documents });
Which stacks does Esign Comply have a page and a quickstart for?
Each stack has a landing page that shows how the integration is laid out there, and a quickstart with the code. The code was run on that stack before the page was published.
JavaScript and TypeScript frameworks
Next.js
A Server Component creates the session, the React hooks run your form, a Route Handler confirms.
React
The hooks attach to your own checkbox and button. A small server holds the secret key.
Vue
The browser SDK attaches from onMounted to your own template. A small server holds the secret key.
Nuxt
Server routes hold the key, a sealed cookie holds the pinned versions, the page attaches in onMounted.
SvelteKit
+server routes hold the key from $app/env/private, and the page attaches the browser SDK in onMount.
Astro
On-demand endpoints hold the key from astro:env/server. The static page attaches the SDK in a client script.
Remix
A controller holds the key, a signed cookie session holds the pinned versions, a hydrated component runs the form.
Angular
The Express server of ng new --ssr holds the key, and a component attaches the browser SDK in afterNextRender.
SolidStart
API routes hold the key, a useSession cookie holds the pinned versions, the page attaches the browser SDK in onMount.
TanStack Start
Server routes hold the key in a .server.ts file, a server function loads the documents, the React hooks run the form.
Qwik
Qwik City endpoints hold the key, a visible task attaches the browser SDK, and the checkbox stays disabled until it does.
React Router
Framework mode: resource routes hold the key, a signed cookie session holds the pinned versions, the React hooks run the form.
JavaScript runtimes and servers
Node.js
One server file with the esigncomply package, no framework and one dependency.
Express
Three routes and one middleware, with the browser SDK served from node_modules.
Hono
Three routes on Node.js through @hono/node-server, with the key read through env(c).
Fastify
Built-in JSON parsing and a schema on the confirm route. No body parser to add.
NestJS
One injectable provider holds the client and the key. A controller carries the routes.
Bun
Bun.serve routes in one TypeScript file, with the key read from .env by Bun itself.
Deno
One Deno.serve handler with the package from npm, started with --env-file and three permissions.
Python
Python
No package: plain HTTPS calls with the standard library, and the browser SDK from a script tag.
FastAPI
Async path operations and one shared httpx.AsyncClient. No Python package.
Django
Four views, the Django session for the pinned versions, and the CSRF cookie on each POST.
Flask
Four routes with requests, the signed session cookie for the pinned versions, and a Jinja template.
Ruby
Rails
One controller and one service method with Net::HTTP. The encrypted session cookie holds the pinned versions.
Sinatra
Four routes in one file with Net::HTTP. The encrypted cookie session holds the pinned versions, and no gem is added for the API.
Ruby
No framework and no gem for the API: Net::HTTP, one Rack app on Puma and a cookie signed with OpenSSL.
PHP
Laravel
One controller, one config file and the Http facade. No Composer package, and the session holds the pinned versions.
PHP
No package and no framework: the curl extension, a front controller in public/ and PHP's own session.
Symfony
One controller, a scoped HttpClient with its own retry, the session and two Twig templates. No bundle.
Other server languages
Go
One file with net/http and encoding/json. No module to add, and the page is compiled into the binary.
.NET
ASP.NET Core minimal APIs with HttpClient and System.Text.Json. Session state holds the pinned versions, and no NuGet package is added.
Spring Boot
One controller and a RestClient. Jackson records read the API's fields, and the HttpSession holds the pinned versions.
Rust
axum on tokio with reqwest and serde. A private cookie holds the pinned versions, and the page is compiled into the binary.
Java
No framework and no build tool: the JDK's HttpClient and HttpServer, a signed cookie and one jar for the JSON.
Kotlin
Ktor on both sides: its client and kotlinx.serialization call the API, and a signed session cookie holds the pinned versions.
Elixir
Plain Elixir with no Phoenix: a Plug router on Bandit, Req for the two calls, and a cookie signed by Plug.Session.
Phoenix
One controller, two HEEx templates and Req. The signed session cookie holds the pinned versions, behind the CSRF check.
What is on a stack page, a quickstart and a long guide?
One stack can have three pages. Each has a job of its own, and they link to each other.
How it fits your stack
Short. It shows the tested code, where each part lives, the things that go wrong on that stack, and a prompt for your AI coding tool. Example: Next.js.
From install to a sealed test record
Step by step: install, set the key, register a document, create the session, attach the browser SDK, confirm on the server, run the conformance check, go live. Example: Next.js quickstart.
One whole flow, file by file
A full worked build with the database table, the webhook and the re-acceptance gate. 5 exist today: stack guides.
Who is Esign Comply for, and who should use a send-a-PDF tool instead?
Esign Comply is for developers who build the signing or acceptance screen themselves, in their own app, often with an AI coding tool: a signup clickwrap, checkout terms, an NDA, or a whole signing product of their own. You build the interface and Esign Comply keeps the independent record.
If you want to upload a PDF and send it for signature today without writing any code, use a hosted send-a-PDF tool. Esign Comply has no hosted signing page: every screen a signer sees is one you build. Some documents cannot be signed through the API at all, such as wills, family-law documents, court documents and documents that need a notary. Supported and blocked document types
Questions about Esign Comply in your stack
Which languages have an Esign Comply SDK?
JavaScript and TypeScript. The server package esigncomply is written for Node.js, @esigncomply/browser runs in the browser, and @esigncomply/react adds hooks. Python, Ruby, PHP and Go call the REST API with their own HTTP client, and the stack pages show that call.
What does every stack page have in common?
The same four steps. Your server creates a session with the secret key, the browser SDK attaches to the form you built, the signer acts, and your server confirms the record before it grants anything. The pages differ in where each step lives on that stack.
Was the code on these pages run?
Yes. Each stack has a small project with the real framework, run against the API in test mode until the conformance check passed and the server confirmed a sealed record. The quickstart of each stack names the versions it was run on.
My stack is not listed. Can I still use the API?
Yes. The API is plain HTTPS and JSON, so any language that can send a request with a header can create a session and read a record. The general quickstart shows the whole ceremony with curl.
Is a signature recorded this way valid?
Yes. Follow the setup and each signature is a valid electronic signature under the U.S. ESIGN Act, state UETA laws and New York's ESRA, whichever stack sends the two calls. The rules are applied by the API and the browser SDK, not by your framework.
Build the signing flow yourself. Leave the record to us.
Free plan: 10 live signatures a month and a full test mode. No card required.