
Research
/Security News
CanisterWorm: npm Publisher Compromise Deploys Backdoor Across 29+ Packages
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.
userflow.js
Advanced tools
Simple Userflow.js installation via npm. Suitable for modern web apps that use build systems such as Webpack, Browserify, Grunt etc.
The full Userflow.js script lives on our CDN at:
This module exports the userflow object, which supports all of Userflow.js' methods. The Userflow.js script is automatically injected into the current page when a method is called. Method calls are queued if Userflow.js is not loaded yet.
npm install userflow.js
Simply import userflow from 'userflow.js' and use it. Example:
import userflow from 'userflow.js'
userflow.init('USERFLOW_TOKEN')
userflow.identify('USER_ID', {
name: 'USER_NAME',
email: 'USER_EMAIL',
signed_up_at: 'USER_SIGNED_UP_AT' // ISO 8601 format
})
You can find your Userflow.js Token in Userflow under Settings -> Environments. Note that if you have multiple environments (e.g. Production and Staging) that each environment has a unique token.
Check out the installation instructions for more info.
See the Userflow.js API Reference.
You can import userflow from multiple files in your app. It will always refer to the same instance. The Userflow.js script will only be loaded once.
// App.js
import userflow from 'userflow.js'
userflow.init('USERFLOW_TOKEN')
// UserRoute.js
import userflow from 'userflow.js'
userflow.identify(user.id, {
name: user.name
})
// CompanyRoute.js
import userflow from 'userflow.js'
userflow.group(company.id, {
name: company.name
})
This package contains TypeScript definitions of the userflow object.
Install dev dependencies:
npm install
To build, run:
npm run build
This will produce:
dist/userflow.es.js: Bundlers supporting ES modules can use this.dist/userflow.umd.js: UMD build for bundlers that do not support ESmodules.dist/userflow.snippet.min.js: A minified script snippet that can be used by apps not using bundlers, or wanting to inject the code directly in a <script>.FAQs
Async loader for userflow.js
The npm package userflow.js receives a total of 25,927 weekly downloads. As such, userflow.js popularity was classified as popular.
We found that userflow.js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.

Research
/Security News
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.

Research
/Security News
Attackers compromised Trivy GitHub Actions by force-updating tags to deliver malware, exposing CI/CD secrets across affected pipelines.

Security News
ENISA’s new package manager advisory outlines the dependency security practices companies will need to demonstrate as the EU’s Cyber Resilience Act begins enforcing software supply chain requirements.