
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@braze/web-sdk
Advanced tools
@braze/web-sdk is a JavaScript library that allows developers to integrate Braze's customer engagement platform into web applications. It provides functionalities for user tracking, messaging, and analytics, enabling personalized and targeted communication with users.
User Identification
This feature allows you to identify and track users by setting a unique user ID. This is essential for personalizing user experiences and tracking user-specific data.
Braze.changeUser('user_id');
Custom Events
This feature allows you to log custom events that users trigger within your application. These events can be used for analytics and to trigger personalized messaging.
Braze.logCustomEvent('event_name', { property1: 'value1', property2: 'value2' });
In-App Messaging
This feature enables you to display in-app messages to users. These messages can be used for announcements, promotions, or any other type of user communication.
Braze.showInAppMessage();
Push Notifications
This feature allows you to handle push notifications within your web application. You can subscribe to and manage incoming push notifications to engage users effectively.
Braze.subscribeToInAppMessage((message) => { console.log(message); });
User Attributes
This feature allows you to set user attributes, which can be used to personalize user experiences and segment users for targeted messaging.
Braze.setUserAttributes({ firstName: 'John', lastName: 'Doe', email: 'john.doe@example.com' });
Mixpanel is an analytics platform that provides similar functionalities for tracking user interactions and events. It also offers advanced analytics and user segmentation features, making it a strong alternative to Braze.
Firebase is a comprehensive app development platform that includes analytics, messaging, and user engagement tools. It offers similar functionalities to Braze for tracking user behavior and sending targeted messages, but also includes additional services like real-time databases and authentication.
$ npm install --save @braze/web-sdk
This will install the Braze Web SDK files into ./node_modules/@braze/web-sdk
where you can reference them locally. Note that the Braze Web SDK is meant to be used client-side in a web application and may not work as expected in a Node.js server environment.
var appboy = require('@braze/web-sdk');
appboy.initialize('YOUR-API-KEY');
appboy.display.automaticallyShowNewInAppMessages();
appboy.openSession();
See the Public Github Repo for getting started instructions or our documentation pages for use-case based documentation.
2.6.0
@braze
scope. The core and full versions of the SDK as well as the service worker are now published in their own packages, resulting in a drastically reduced install size compared to the appboy-web-sdk
package. This is not a breaking change for existing NPM integrations and we will continue to publish the appboy-web-sdk
package to maintain backwards compatibility. See the README for integration details.appboyBridge.getUser().setLanguage(language)
to HTML In-App Messages.Notification
is not defined.appboy.registerAppboyPushMessages
would throw a javascript error if the user did not allow websites to ask for permission to send notifications.FAQs
Braze SDK for web sites and other JS platforms.
The npm package @braze/web-sdk receives a total of 182,861 weekly downloads. As such, @braze/web-sdk popularity was classified as popular.
We found that @braze/web-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 flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.