
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.


To get started with Nucleus, create an account at Nucleus and grab the App ID, then use the SDK to start tracking events.
This package has @react-native-async-storage/async-storage and @react-native-community/netinfo as peer dependencies. Install them first if you don't have them
yarn add @react-native-async-storage/async-storage @react-native-community/netinfo
then proceed to install nucleus-rn As NPM package (recommended)
# with yarn
yarn add nucleus-rn
import Nucleus from 'nucleus-rn';
Nucleus.init('YOUR_APP_ID');
Replace 'YOUR_APP_ID' with the unique ID of your app. You can get it here.
You can check examples with different frameworks here.
Nucleus supports passing the following options as second argument to the Nucleus.init() method:
Nucleus.init('APP_ID', {
appVersion: '0.0.0', // the version of your application
endpoint: 'wss://app.nucleus.sh', // only option, we don't allow self hosting yet :(
disableInDev: true, // disable in development mode. We recommend not to call
// `init` method, as that will be more reliable.
debug: false, // if set to `true`, will log a bunch of things.
disableTracking: false, // will not track anything. You can also use `Nucleus.disableTracking()`.
// note that some events will still be added to the queue, so if you call
// Nucleus.enableTracking() again, they will be sent to the server.
reportInterval: 2 * 1000, // at which interval the events are sent to the server.
sessionTimeout: 60 * 30 * 1000, // time after which the session is ended
cutoff: 60 * 60 * 48 * 1000, // time after which event that were not sent yet are deleted
disableErrorReports: false, // wether to disable error tracking
})
Track events with optional custom data
Nucleus.track("click", { foo: 'bar' });
Track errors with a name and the Error object.
Nucleus.trackError(name, error);
By default Nucleus registers a handler for ErrorUtils.setGlobalHandler that sends 'GlobalError' errors to the API. If you want
to disable this behaviour, you can set disableErrorReports to true:
Nucleus.init('APP_ID', { disableErrorReports: true })
and catch errors manually using Nucleus.trackError('an error', errObject).
Identify a user by a unique ID and optionally set custom properties.
Nucleus.identify('04f8846d-ecca-4a81-8740-f6428ceb7f7b', { firstName: 'Jordan', lastName: 'Walke' });
Track screen views with the screen name and optional parameters.
Nucleus.page('/about', { foo: 'baz' });
To disable tracking
Nucleus.disableTracking();
To enable tracking
Nucleus.enableTracking();
We're always looking for contributions from the community. Here's how you can help:
FAQs

The npm package nucleus-rn receives a total of 1 weekly downloads. As such, nucleus-rn popularity was classified as not popular.
We found that nucleus-rn demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.