Explore the docs ยป
Report Bug
ยท
Request Feature
ยท
Join Our Discord
ยท
Read our blog
Building a notification system is hard, at first it seems like just sending an email but in reality it's just the beginning. In today's world users expect multi channel communication experience over email, sms, push, direct and more... An ever growing list of providers are popping up each day, and notifications are spread around the code. Novu's goal is to simplify notifications and provide developers the tools to create meaningful communication between the system and it's users.
- ๐ Single API for all messaging providers (Email, SMS, Push, Direct)
- ๐ Easily manage notification over multiple channels
- ๐ Equipped with a CMS for advanced layouts and design management
- ๐ก Built-in protection for missing variables
- ๐ฆ Easy to set up and integrate
- ๐ฆ Embeddable notification center with real-time updates
- ๐ก Debug and analyze multi channel messages in a single dashboard
- ๐จโ๐ป Community driven
We are excited to launch the complete Novu API and admin panel. Want to give it a test before the official release? here is how:
npx novu init
After setting up your account using the cloud or docker version you can trigger the API using the @novu/node
package.
npm install @novu/node
import { Novu } from '@novu/node';
const novu = new Novu(process.env.NOVU_API_KEY);
await novu.trigger('<TRIGGER_NAME>',
{
to: {
subscriberId: '<UUNIQUE_IDENTIFIER>',
email: 'john@doemail.com',
firstName: 'John',
lastName: 'Doe',
},
payload: {
name: "Hello World",
organization: {
logo: 'https://happycorp.com/logo.png',
},
},
}
);
For simpler use cases, you can use the @novu/stateless
library. This will require you to manage the templates content and providers registration.
npm install @novu/stateless
yarn add @novu/stateless
import { NovuStateless, ChannelTypeEnum } from '@novu/stateless';
import { SendgridEmailProvider } from '@novu/sendgrid';
const novu = new NovuStateless();
await novu.registerProvider(
new SendgridEmailProvider({
apiKey: process.env.SENDGRID_API_KEY,
from: 'sender@mail.com'
})
);
const passwordResetTemplate = await novu.registerTemplate({
id: 'password-reset',
messages: [
{
subject: 'Your password reset request',
channel: ChannelTypeEnum.EMAIL,
template: `
Hi {{firstName}}!
To reset your password click <a href="{{resetLink}}">here.</a>
{{#if organization}}
<img src="{{organization.logo}}" />
{{/if}}
`
},
]
});
await novu.trigger('<REPLACE_WITH_EVENT_NAME>', {
$user_id: "<USER IDENTIFIER>",
$email: "test@email.com",
firstName: "John",
lastName: "Doe",
organization: {
logo: 'https://evilcorp.com/logo.png'
}
});
Novu provides a single API to manage providers across multiple channels with a simple to use interface.
- Sendgrid
- Mailgun
- SES
- Postmark
- NodeMailer
- Mailjet
- Mandrill
- SendinBlue
- EmailJS
- SparkPost
- Pushwoosh
- SNS
- Slack
- MS Teams
- Discord
- Mattermost
- Novu
- MagicBell
- PagerDuty