@novu/js
v2.6.3
Published
Novu's JavaScript SDK for building custom inbox notification experiences
Downloads
25,978
Keywords
Readme
Novu's JavaScript SDK
The @novu/js
package provides a JavaScript SDK for building custom inbox notification experiences.
The package provides a low-level API for interacting with the Novu platform In-App notifications.
Installation
Install @novu/js
npm package in your app
npm install @novu/js
Getting Started
Add the below code in your application
import { Novu } from '@novu/js';
const novu = new Novu({
applicationIdentifier: 'YOUR_NOVU_APPLICATION_IDENTIFIER',
subscriberId: 'YOUR_INTERNAL_SUBSCRIBER_ID',
});
const { data: notifications, error } = await novu.notifications.list();
| Info: you can find the applicationIdentifier
in the Novu dashboard under the API keys page.