Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@useblu/blu-lytics
Advanced tools
Main goals include: being the sole entry point, simplifying integration between monitoring tools, and enabling centralized sending of messages and events. These goals offer developers the following benefits:
Unified messages and events
Allows messages and events to be propagated across all monitoring tools through a single entry point.
Centralized and simplified configuration (Zero config)
Enables initializing tools by providing only their key or token, without the need for prior configuration, saving time and reducing code.
Scalability
Facilitates the removal or addition of a tool, as the library contains all necessary configuration for operation. Flexibility that enhances the efficiency of monitoring tool management.
yarn add @useblu/blu-lytics
or
npm i @useblu/blu-lytics
import { initializeProviders } from 'blu-lytics';
import * as blu-lytics from 'blu-lytics';
initializeProviders
This method simplifies the connection to one or more monitoring tools, eliminating the need for pre-configurations. Simply provide the name of the tool to be used and its API key 'apiKey'.
To establish a connection with a single tool, it is necessary to pass an object as a parameter, containing the fields providerName, apiKey, and another object with the environment (the latter is optional, with the default value being 'production').
initializeProviders({providerName: 'track-tool-name', apiKey: 'your-api-key'}, {environment: 'development'});
To connect to more than one tool, it is necessary to pass an array (list) of objects as a parameter, maintaining the fields providerName, apiKey, and another object containing environment (optional).
initializeProviders([
{ providerName: 'track-tool-name', apiKey: 'your-api-key'},
{ providerName: 'another-track-tool-name', apiKey: 'your-api-key'}
], {environment: 'development'});
sendScreenEvent
This method sends a message that will be propagated and recorded in all tools that have been previously initialized through the initializeProviders method. To use it, only a string needs to be provided as a parameter.
sendScreenEvent('page_view');
sendCustomEvent
This method sends an event with a message and additional optional parameters, which will be propagated and recorded in all tools that have been previously initialized through the initializeProviders method.
To use it, two parameters need to be provided: a string to describe the event and an object containing the additional optional fields.
sendCustomEvent('your_custom_page', {
props1: 'any-information',
props2: true,
});
sendUserIdentification
This method sends relevant information related to user identification, such as their name, email, and ID, for example.
To use, it is possible to provide two parameters: a string representing a unique identifier and an object containing additional and optional fields.
sendUserIdentification('user-id', {
name: 'user name',
email: 'user@email.com',
});
Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of this project! Read below to learn how you can take part of it.
We adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.
Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes.
To release a new version on NPM registry, just bump version on package.json
and merge it into master to automatically publish a new version.
All packages are licensed under the terms of the MIT License.
FAQs
blu-lytics
The npm package @useblu/blu-lytics receives a total of 288 weekly downloads. As such, @useblu/blu-lytics popularity was classified as not popular.
We found that @useblu/blu-lytics 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.