
Research
/Security News
npm Package Uses Prompt Injection and Token Flooding to Disrupt AI Malware Scanners
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.
@chaindoc_io/embed-sdk
Advanced tools
JavaScript/TypeScript SDK for embedding Chaindoc document signing flow via iframe
Official JavaScript/TypeScript SDK for embedding Chaindoc signature flows into web applications
Chaindoc Embed SDK is a lightweight JavaScript library that allows you to seamlessly integrate document signing functionality into your web application. Instead of redirecting users to a separate signing page, you can embed the entire signing experience directly within your site using a modal dialog or inline container.
npm install @chaindoc_io/embed-sdk
Or using yarn:
yarn add @chaindoc_io/embed-sdk
You can also use the SDK directly via CDN:
<script src="https://unpkg.com/@chaindoc_io/embed-sdk"></script>
<script>
const sdk = new ChaindocEmbed.ChaindocEmbed({
publicKey: "pk_live_xxx",
environment: "production",
});
</script>
import { ChaindocEmbed } from "@chaindoc_io/embed-sdk";
// Initialize SDK
const sdk = new ChaindocEmbed({
publicKey: "pk_live_xxx",
environment: "production",
});
// Open signature flow in modal
const instance = sdk.openSignatureFlow({
sessionId: "ses_xxx", // From your backend
email: "user@example.com",
mode: "modal",
language: "en", // Optional: UI language (en, ru, uk, pl, de, es, pt, fr, et, kk, zh, hi, tr, vi)
onSuccess: (data) => {
console.log("Document signed!", data);
instance.close();
},
onError: (error) => {
console.error("Signing failed:", error);
},
});
publicKey todaypublicKey is still required and validated on SDK initialization, but it is not currently forwarded to the iframe or used for runtime authentication. The real embedded auth flow is:
/api/v1/embedded/*The field remains in the API for backward compatibility and future productization, but for Phase 0 it should be understood as ceremonial rather than security-critical runtime auth.
sessionId to the SDKOpens a centered modal dialog with overlay - perfect for most use cases.
Embeds the signing flow directly into a container element on your page - ideal for multi-step forms or dedicated signing pages.
For detailed documentation, API reference, and examples, visit:
See CHANGELOG.md for release history and migration guides.
MIT License - see LICENSE file for details
Made with ❤️ by the Chaindoc team
FAQs
JavaScript/TypeScript SDK for embedding Chaindoc document signing flow via iframe
We found that @chaindoc_io/embed-sdk 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
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.

Product
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.