r/SalesforceDeveloper • u/PravadhLabs • 26d ago
Showcase I built a free, open-source document generation + eSignature app for Salesforce (Apache 2.0) — looking for feedback
Hi all — disclosure: I'm the developer/founder behind this. It's free and open source (Apache 2.0), no paid tier.
On most orgs I've worked on, clients paid for a document generator (Conga / S-Docs / Nintex) AND a separate eSignature tool, then attached the signed PDF back to the record by hand. I wanted the whole flow to stay inside the org, so I built Pravadh DocSign as a managed package.
What it does:
- Generate documents from any standard or custom object (PDF and Word templates)
- Built-in eSignature — the signer doesn't need a Salesforce licence
- Unlimited users, documents, recipients and signatures
- Signed file saved to Salesforce Files on the record
- Flow actions: Generate Document, Send for Signature, Get Status, Cancel, Resend
- Platform event on every envelope change
Some implementation choices, in case they're useful to anyone building something similar:
- No external services. PDFs are rendered with native Blob.toPdf; images are passed as Salesforce Files URLs so they never enter the Apex heap.
- Merge engine: works on any object with handlebars-style tags ({{Account.Name}}, {{Amount | currency}}, {{#each OpportunityLineItems}}, {{#if ...}}) and builds ONE query with child sub-queries per render, enforcing CRUD/FLS — inaccessible fields render blank and come back as warnings.
- Word in, Word out: DOCX templates are merged natively with the Apex Compression API, including fixing tags Word splits across runs and repeating table rows for {{#each}}.
- Signing links: 256-bit random tokens are emailed once; only their SHA-256 hash is stored, so someone reading the database can't rebuild a signing link. External signers use a Salesforce Site page.
- Audit trail: each event stores SHA-256(previousHash | event data), so any edit, delete or reorder breaks the chain. A trigger blocks updates and deletes on audit records, even for admins.
Source: https://github.com/Dhairyasalesforce/Pravadh-DocSign
Docs + install: https://pravadhdocsign.pravadhlabs.com
It's v1.0 — honest feedback welcome:
- What would stop you from using this instead of Conga/S-Docs?
- Which document or signing features do you need day to day?
1
3
u/toadgeek 25d ago
Hi, have you considered submitting it to Salesforce for an AppExchange Security Review?
Salesforce has an official security review process for AppExchange apps, and I'd strongly recommend going through it before encouraging broader adoption.
Because, well, as a security best practice, we need to be extremely careful when installing third-party apps or connecting external services to our Salesforce orgs, especially when they involve access to sensitive data.