
Security News
VulnCon 2025: NVD Scraps Industry Consortium Plan, Raising Questions About Reform
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
@formsort/web-embed-api
Advanced tools
Embed Formsort flows within other webpages, with communication between the embed and the parent page.
First, install
npm install @formsort/web-embed-api
Then, initialize the embed and load a flow.
Initializes a Formsort iframe as a child of the rootEl
provided.
loadFlow(clientLabel: string, flowLabel: string, variantLabel?: string) => void
Starts loading a Formsort variant, or a flow.
Note that variantLabel is optional: if it is not provided, a variant will be chosen at random from that flow.
setSize(width: number, height: number) => void
Set the CSS size of the embed.
You may also style the embed's iframe using CSS - it is the iframe child of the rootEl
, so you'd use the selector #rootEl > iframe
.
onFlowLoaded: () => void
Set a callback function to be called when the Formsort flow has loaded completely.
Note that this is more accurate than listening for the iframe's load
event, as this is sent from within the Formsort application code.
You can use this to do things like hide the frame container, or display a loading indicator, until everything is loaded to ensure a seamless initial experience.
const embed = new FormsortWebEmbed(document.body);
embed.onFlowLoaded = () => {
console.log('Flow has loaded!');
};
embed.loadFlow('formsort', 'onboarding', 'main');
onFlowFinalized: () => void
Set a callback to be called when the flow is compete, meaning the user has finished all of the steps available to them.
Useful for performing an action after the flow is complete, such as displaying a congratulations or starting a payment process.
onFlowClosed: () => void
Set a callback to be called when the user abandons the flow before finalizing it.
Note that this is only possible if your style set defines a close button.
FAQs
Embed Formsort flows within other webpages
The npm package @formsort/web-embed-api receives a total of 0 weekly downloads. As such, @formsort/web-embed-api popularity was classified as not popular.
We found that @formsort/web-embed-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers 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.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.