Building a notification system shouldn't be hard. With Novu, our goal is to simplify notifications and provide developers with the tools to create meaningful communication between the system and its users. Add a real-time notification center to your app deployed on Vercel, or send multi-channel notifications with a single API call.
After setting up your account, you can trigger the API using the @novu/node
package.
import { Novu } from '@novu/node'; const novu = new Novu(process.env.NOVU_API_SECRET); await novu.trigger('<TRIGGER_NAME>', { to: [{ subscriberId: '<UNIQUE_IDENTIFIER>', email: 'john1@doemail.com', firstName: 'John', }], payload: { name: "Hello World" } } );
This integration will add two variables:
NOVU_CLIENT_APP_ID
Used for showing the notification center componentNOVU_API_SECRET
Used to trigger events