Gathering detailed insights and metrics for @formsort/react-embed
Gathering detailed insights and metrics for @formsort/react-embed
Gathering detailed insights and metrics for @formsort/react-embed
Gathering detailed insights and metrics for @formsort/react-embed
npm install @formsort/react-embed
Typescript
Module System
Node Version
NPM Version
TypeScript (85.91%)
JavaScript (10.89%)
HTML (2.83%)
CSS (0.37%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
21 Stars
515 Commits
4 Forks
5 Watchers
13 Branches
11 Contributors
Updated on Jul 14, 2025
Latest Version
3.3.1
Package Id
@formsort/react-embed@3.3.1
Unpacked Size
15.02 kB
Size
4.01 kB
File Count
6
NPM Version
10.5.0
Node Version
20.12.2
Published on
Jul 03, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
Embed Formsort flows within react components.
This is a handy wrapper around @formsort/web-embed-api.
Important note: This package is intended for use in React web applications. If you're looking to embed Formsort flows in React Native applications, please see React native embed guide.
Add @formsort/react-embed
to your project by executing yarn add @formsort/react-embed
or npm install @formsort/react-embed
.
Here's an example of basic usage:
1import React from 'react'; 2import EmbedFlow from '@formsort/react-embed'; 3 4const EmbedFlowExample: React.FunctionComponent = () => ( 5 <div> 6 <EmbedFlow 7 clientLabel="formsort" 8 flowLabel="onboarding" 9 variantLabel="main" 10 embedConfig={{ 11 style: { 12 width: '100%', 13 height: '100%', 14 }, 15 }} 16 /> 17 </div> 18);
You can add event listeners to flows like Flowloaded
, redirect
etc. See all event listeners
Prop name | Description | Required | Example values |
---|---|---|---|
clientLabel | client name | yes | formsort |
flowLabel | flow name | yes | onboarding |
variantLabel | variant name | no | main |
responderUuid | responder uuid to load existing answers for | no | e4923baa-dc2d-4555-813c-a166952292fa |
formsortEnv | formsort integrations environment label, if not using production | no | staging |
queryParams | additional query params, to pre-populate answers in the form | no | [['name', 'Olivia'], ['age', '3']] |
embedConfig | config passed to the underlying FormsortWebEmbed | no | { style: { height: '100%' } } |
onFlowLoaded | event listener | no | () => { console.log('flow loaded') } |
onFlowClosed | event listener | no | () => { console.log('flow closed') } |
onFlowFinalized | event listener | no | () => { console.log('flow finalized') } |
onStepLoaded | event listener | no | () => { console.log('step loaded') } |
onStepCompleted | event listener | no | () => { console.log('step loaded') } |
onRedirect | event listener | no | (url: string) => { console.log('redirecting to:', url) } |
onUnauthorized | event listener | no | () => { console.log('ID token is missing or invalid.') } |
You can use query parameters to load a specific variant revision. Don't use it if you want to show latest variant.
1import React from 'react'; 2import EmbedFlow from '@formsort/react-embed'; 3 4const EmbedFlowExample: React.FunctionComponent = () => ( 5 <div> 6 <EmbedFlow 7 clientLabel="formsort" 8 flowLabel="onboarding" 9 variantLabel="main" 10 queryParams={['variantRevisionUuid', '<uuidv4>']} 11 /> 12 </div> 13);
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
SAST tool detected but not run on all commits
Details
Reason
8 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 6
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
14 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More