Novu’s Node.js SDK provides simple, yet comprehensive notification management, and delivery capabilities through multiple channels that you can implement using code that integrates seamlessly with your Node.js application.

Explore the source code on GitHub

Installation

npm install @novu/node

 If you’re ready to start integrating in your Node.js app, jump straight to our Nodejs quickstart.

Usage

import { Novu } from "@novu/node";

const novu = new Novu("<NOVU_SECRET_KEY>");

await novu.trigger("<WORKFLOW_TRIGGER_IDENTIFIER>", {
  to: {
    subscriberId: "<USER_IDENTIFIER>",
    email: "test@email.com",
    firstName: "John",
    lastName: "Doe",
  },
  payload: {
    organization: {
      logo: "https://evilcorp.com/logo.png",
    },
  },
});