
Research
/Security News
77 Firefox Extensions Linked to Crypto Wallet and Credential Theft
Socket uncovered 77 linked Firefox extensions, including 40 that steal wallet secrets or credentials and 37 deceptive sports-score shells.
@dotit/pdf
Advanced tools
Server-side PDF generation for IntentText (.it) documents — merge, seal, and render real PDF bytes for emailing and archiving. Opt-in companion to @dotit/core.
Server-side PDF generation for IntentText
(.it) documents — for the moments no human is at a browser: emailing an invoice,
archiving for compliance, month-end batch statements.
@dotit/core stays zero-dependency; this is the opt-in enterprise companion.
npm i @dotit/pdf
# plus ONE of:
npm i puppeteer # bundles Chromium — zero config
npm i puppeteer-core # uses your existing Chrome (set CHROME_PATH if not auto-found)
Merge data into the template → seal the merged document (tamper-evident SHA-256) → real PDF bytes:
import { issuePDF } from "@dotit/pdf";
const { source, hash, at, pdf } = await issuePDF(template.source, invoiceData, {
signer: "Jadwal Billing",
role: "Finance",
theme: "corporate",
});
await db.invoices.updateOne({ _id }, { $set: { itSource: source, itHash: hash, issuedAt: at } });
await s3.putObject({ Key: `invoices/${number}.pdf`, Body: pdf }); // archive what was sent
await mailer.send({ attachments: [{ filename: `${number}.pdf`, content: pdf }] });
source — the sealed .it text. Store it on the record: it's the queryable,
hash-verifiable legal artifact (a few KB of text). Years later,
verifyDocument(source) from @dotit/core proves it unaltered.pdf — the bytes you email/archive.{{fields}} render blank (it's a finished document), pass
missing: "keep" to override.issueDocument() is the same flow minus the PDF — pure, synchronous, no Chrome:
import { issueDocument } from "@dotit/pdf";
const { source, hash, html } = issueDocument(template.source, data, { signer: "Jadwal Billing" });
// POST `html` to your HTML→PDF sidecar (e.g. Gotenberg), store `source` yourself.
import { renderPDF, htmlToPDF, createPdfRenderer } from "@dotit/pdf";
await renderPDF(itSource, { theme: "corporate" }); // finished .it → PDF bytes
await htmlToPDF(printHtml); // bring-your-own HTML → PDF bytes
// Batch (reuses one Chrome — launching costs ~1s):
const r = await createPdfRenderer({ theme: "corporate" });
for (const s of statements) {
const { pdf } = await r.issuePDF(tmpl, s, { signer: "Jadwal Billing" });
await s3.putObject({ Key: `statements/${s.id}.pdf`, Body: pdf });
}
await r.close();
puppeteer if installed (its bundled Chromium).puppeteer-core + a binary from: executablePath option →
$PUPPETEER_EXECUTABLE_PATH → $CHROME_PATH → common install paths
(macOS/Linux/Windows).In containers, pass launchArgs: ["--no-sandbox"] if your image requires it.
Full integration guide (storage model, Mongo shapes, receipts, Arabic/RTL): ecosystem → ERP / App Integration in the IntentText docs.
FAQs
Server-side PDF generation for IntentText (.it) documents — merge, seal, and render real PDF bytes for emailing and archiving. Opt-in companion to @dotit/core.
The npm package @dotit/pdf receives a total of 9 weekly downloads. As such, @dotit/pdf popularity was classified as not popular.
We found that @dotit/pdf demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket uncovered 77 linked Firefox extensions, including 40 that steal wallet secrets or credentials and 37 deceptive sports-score shells.

Security News
NIST disclosed an unreleased AI tool called V-etalon and opened a broad inquiry into NVD modernization after years of automation plans produced no public enrichment system.

Security News
In his AI Council 2026 talk, Feross Aboukhadijeh covers recent package compromises, vulnerability discovery, and a more automated security model.