npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@braze/vega-sdk

v0.3.0

Published

Braze SDK for Vega platform

Maintainers

alexandre.bolducalexandre.bolducbneptunebneptunechenglinbrazechenglinbrazenachi-brazenachi-brazebrazealvinbrazealvinanthonypiersanti-brazeanthonypiersanti-brazegregory.donnellgregory.donnellyichin.sunyichin.sunjaimebarrigajaimebarrigadnzhao-brazednzhao-brazeshreya.reshamwalashreya.reshamwalabryanloganbryanloganroman-brazeroman-brazealexander-newman-brazealexander-newman-brazejridgwaybrazejridgwaybrazebergeybergeydavidbielikdavidbielikwesley.orbinwesley.orbinfroodianfroodianjason.penny-braze.comjason.penny-braze.combeaconcibeaconcihaldunanilhaldunaniljayhahnbrazejayhahnbrazejonhymanjonhymanzzhaobrazezzhaobrazemattdisipio-brazemattdisipio-brazeannie.luannie.luslaude-brazeslaude-brazejeffrey.stutz.brazejeffrey.stutz.brazekevinwang88kevinwang88jteichbrazejteichbrazejulianbrazejulianbrazekaiwahkaiwahjaredbrazejaredbrazezachmccormickbrazezachmccormickbrazetheon.leongtheon.leongspencerbzspencerbzdavid.vandusendavid.vandusencaleb.severncaleb.severnbbrowning-brazebbrowning-brazemarco.manomatmarco.manomatagbrazeagbrazeweiqi_brazeweiqi_brazemmwilletmmwilletlowip_at_brazelowip_at_brazestella.kimstella.kimmkigikmmkigikmraghav.narainraghav.narainbfalconnierbfalconnierdekeldekelderekschultzderekschultzjackfeelyjackfeelysingwai_brazesingwai_brazenickrobinnickrobinappboyappboystephen.listephen.lichristorbrazechristorbrazerajitiftikharrajitiftikhardringbrazedringbrazewilliam.ngwilliam.ngchrishainesbrazechrishainesbrazeasimonuttiasimonuttidarthryking-brazedarthryking-brazebrianbatbrazebrianbatbrazeyuna.akazawayuna.akazawasresutovsresutovpaxchowpaxchowmark.radamark.radacellog.brazecellog.brazenigelfaustinonigelfaustinojasminetangbrazejasminetangbrazegsingh_brazegsingh_brazedavehensleybrazedavehensleybrazedanielgarrettbrazedanielgarrettbrazegeethaadaikalavangeethaadaikalavanbrianatbrazebrianatbrazefrancisco.trindadefrancisco.trindadedalton-brazedalton-brazezach.sadlerzach.sadlerivantolkivantolkjonchaobrazejonchaobrazeaashita_brazeaashita_brazehseitzbrazehseitzbrazedaniel.hanggi.brazedaniel.hanggi.brazekile.youngkile.youngcolleencolleendwk09dwk09mark.hessmark.hessrobert.uhrlassrobert.uhrlassmaciej.brazemaciej.brazeian.sturdyian.sturdyocawthorneocawthornedwillislcdwillislctatsuya.nittatatsuya.nittawja-brazewja-brazebraze-salmanbraze-salmantochi-brazetochi-brazediana.smdiana.smtimcreasy-brazetimcreasy-brazehanxiongbrazehanxiongbrazehenryhehehehenryhehehepzsbrazepzsbrazeian.absherian.abshermatt.dick.brazematt.dick.brazeandrewcarlbergbrazeandrewcarlbergbrazemax.larue.brazemax.larue.brazejparsonsbrazejparsonsbrazejeriel-brazejeriel-brazeshalakavirkarshalakavirkarbrihicks5brihicks5jeremy.ragsdalejeremy.ragsdalebrian.clarkebrian.clarkeniccrowleyniccrowleyjaredbinderjaredbindercgiulietti-brazecgiulietti-brazejoshbrazemorejoshbrazemoremichael-harrington-1michael-harrington-1timur.malgazhdarovtimur.malgazhdarovlparrabrazelparrabrazevismayaspvismayaspabtremonteabtremontesam.greenleesam.greenleeadamgaynor_brazeadamgaynor_brazedcfowlerdcfowlergiovannakbluzgiovannakbluzkirtgittensbrazekirtgittensbrazemattjoc-brazemattjoc-brazeyouanluyouanluandy-uriarteandy-uriartebenjaminlewisbrazebenjaminlewisbrazebujarsbujarsjacob-brazejacob-brazenicholas.mandelnicholas.mandelmattibrazemattibrazejenbrazejenbrazearchwaarchwajulianw.brazejulianw.brazenikita_nikolaenko_brazenikita_nikolaenko_brazejeff-brazejeff-brazedawgygdawgygmichaelzg1998michaelzg1998mohammadatallahmohammadatallahmharris_brazemharris_brazekwokkkwokkfarhan.malikfarhan.maliksamuelshihbrazesamuelshihbrazecjkarl-brazecjkarl-brazeurielatbrazeurielatbrazejiemin.wangjiemin.wanganthonystuveckeanthonystuveckenick.harris.brazenick.harris.brazetuantruongletuantruonglerick.sikkarick.sikkaevan-brazeevan-brazechrisgarber-brazechrisgarber-brazeescher.campanellaescher.campanellamandeep-sran-brazemandeep-sran-brazembramaudmbramaudferenc.nagyferenc.nagystevetsanders-brazestevetsanders-brazeonkardeolonkardeolzobia_hudazobia_hudajackieang-brazejackieang-brazeeric-yan-brazeeric-yan-brazebraze-felix-mobraze-felix-mozlwbrazezlwbrazebealebrazebealebrazedk107hdk107hcameronmoreau2_brazecameronmoreau2_brazeb.enochb.enochmarcus.schultheismarcus.schultheiskirsty.masonkirsty.masonryanl1251ryanl1251jamie_brazejamie_brazeyuanpeiwyuanpeiwjingyuan.houjingyuan.houmlong-brazemlong-brazen-carr-brazen-carr-brazejunhosohnjunhosohnbmagill-brazebmagill-brazeweihui.yuweihui.yujizhang8023jizhang8023zijinlibrazezijinlibrazejustdavidtjustdavidtjacobbrazejacobbrazerajaie7rajaie7vanessalandvanessalandjohn.wujohn.wucml23cml23max-at-brazemax-at-brazemark.rummellmark.rummellbraze_evchengbraze_evchenglynnsohnlynnsohnhvisagiehvisagierafael.zarate.brazerafael.zarate.brazeliyu-chen-brazeliyu-chen-brazemuhammad_lodhi_brazemuhammad_lodhi_brazeprian.kuhanandanprian.kuhanandantiago.madeira.brazetiago.madeira.brazechristi.brennanchristi.brennannandu-brazenandu-brazeviktorglaes-brazeviktorglaes-brazecreslink-brazecreslink-brazermmsilva2611rmmsilva2611anisingh-brzanisingh-brzzhaowei.brazezhaowei.brazemark-urquhart-brazemark-urquhart-brazenajwaazernajwaazerchava.friedlerchava.friedlerliumingbrzeliumingbrzeadmoya.brazeadmoya.brazeyuwangbrazeyuwangbrazedsschwarzdsschwarzanubhavduaanubhavduaweihangtangweihangtangpcalcado-brazepcalcado-brazearman.gharman.ghmingjiezhmingjiezheric.figueiredoeric.figueiredoamirbavandamirbavandvictor.costa.brazevictor.costa.brazezhan-brazezhan-brazenickkim1nickkim1maxim.kosterinmaxim.kosterinsunmin.kimsunmin.kimzetao-wuzetao-wuali.omidianali.omidianhkarthikhkarthiknatewillsnatewillspoojaguggaribrazepoojaguggaribrazeguto-at-brazeguto-at-brazeeffywueffywudazzle-goodness-goaldazzle-goodness-goal

Keywords

AppboyBraze

Readme

Braze Vega SDK

Installation

While Vega is in pre-release, the Braze Vega SDK is installed as a local package through npm. We recommend copying the braze folder from the extracted tarball to your preferred directory.

Then, add the Braze Vega SDK to your package.json:

{
  "dependencies": {
    "@braze/vega-sdk": "../vega-sdk" // replace file path with your relative file path
  }
}

Usage

The Braze Vega SDK has many similarities with the web SDK's API, with the main differences being that the User class no longer exists and that most of the methods are now asynchronous due to the nature of Vega's storage APIs.

Available methods:

| Method | Description | | ------------------------------------------ | ------------------------------------------------------------------------------------- | | initialize | Initializes the Braze Vega SDK | | destroy | Destroys the current instance of the Braze Vega SDK | | addToCustomUserAttributeArray | Adds to a custom user attribute array | | addUserAlias | Adds an alias to the current user | | addUserToSubscriptionGroup | Adds the current user to the specified subscription group | | changeUser | Identifies the user with the provided ID | | deferInAppMessage | Stores an in-app message to be later retrieved by getDeferredInAppMessage | | disableSdk | Prevents data storage and network requests. Useful for user opt-outs. | | enableSdk | Removes the opt-out flag stored by disableSdk. Does not initialize the SDK. | | getDeferredInAppMessage | Retrieves the in-app message stored by deferInAppMessage | | getDeviceId | Returns the device ID, a GUID generated by the SDK | | getUserId | Returns the current user's ID | | handleBrazeAction | Handles a Braze click action from an in-app message | | incrementCustomUserAttribute | Increments a custom user attribute by the desired amount | | isDisabled | Returns whether the SDK has been disabled by disableSdk | | logCustomEvent | Logs a custom event to the Braze backend | | logInAppMessageButtonClick | Logs a button click for a given in-app message | | logInAppMessageClick | Logs a click for a given in-app message | | logInAppMessageHtmlClick | Logs a click for a given HTML in-app message | | logInAppMessageImpression | Logs an impression for a given in-app message | | logPurchase | Logs a purchase event | | openSession | Creates a session start event if a session is not currently active and unexpired. | | removeAllSubscriptions | Removes all subscriptions to in-app messages, SDK authentication failure events, etc. | | removeFromCustomUserAttributeArray | Removes from a custom user attribute array. | | removeSubscription | Removes a subscription (e.g. to in-app messages) using the subscription ID. | | removeUserFromSubscriptionGroup | Removes the current user from the specified subscription group. | | requestImmediateDataFlush | Flushes any queued data (events, attributes, etc.) to the backend immediately. | | setCustomUserAttribute | Sets a custom attribute on the current user | | setCustomUserLocationAttribute | Set a custom location attribute on the current user | | setLogger | Sets the logger to the provided function, instead of the default console.log. | | setUserCountry | Sets the current user's country. Overrides the detected country. | | setUserDateOfBirth | Sets the current user's date of birth. | | setUserEmail | Sets the current user's email address | | setUserEmailNotificationSubscriptionType | Sets the current users' email notification subscription type. | | setUserFirstName | Sets the current user's first name | | setUserHomeCity | Sets the current user's home city. | | setUserLanguage | Sets the current user's language. Overrides the detected language. | | setUserLastKnownLocation | Sets the last known location for the current user. | | setUserPushNotificationSubscriptionType | Sets the current user's email notification subscription type | | setUserPhoneNumber | Sets the current user's phone number | | setUserPhoneNumber | Sets the current user's phone number | | setUserGender | Sets the current user's gender | | subscribeToInAppMessage | Sets a callback that is invoked when an in-app message is triggered. | | toggleLogging | Toggles whether SDK logging is enabled. | | wipeData | Wipes all data stored by the SDK for the current API key. |

Methods have more detailed documentation in their type declaration files, which can be viewed using VSCode's Intellisense.

Example integration:

import { useEffect } from "react-native";
import {
  initialize,
  changeUser,
  logCustomEvent,
  openSession
} from "@braze/vega-sdk";

const App = () => {
  useEffect(() => {
    const initBraze() = async () => {
      initialize("YOUR-API-KEY", "YOUR-SDK-ENDPOINT", {
        sessionTimeoutInSeconds: 60,
        appVersionNumber: "1.2.3.4",
      });
      // you must await/resolve the changeUser promise before calling other Braze methods
      // or events/attributes may be set on the incorrect user
      await changeUser("abc123");
      await openSession();
      logCustomEvent("visited-page", { pageName: "home" });
      setCustomUserAttribute("my-attribute", "my-attribute-value");
      setUserCountry("USA");
    }
    initBraze();
  }, []);
}

Debugging / Troubleshooting

Pass enableLogging: true to initialize() or use toggleLogging() to enable SDK logging to the console. You can provide a custom logger via setLogger().

Support & Feedback

Have feedback on the SDK or encountering an issue? Reach out to us at [email protected]