Skip to content
全部能力
集成packages/integrations/notifications

notifications 能力包

多通道通知 — in_app / email / push / sms / chat — Novu + 直发通道并存,按收件人偏好路由。

打开文档
稳定性
稳定
作用域
全局
边界
packages/integrations/notifications
notificationspackages/integrations/notifications
Provider-agnostic
可用提供方
Novu在用
Knockstandby
Directstandby
传入请求notifications
{ user: "usr_8c41", type: "invoice.paid" }
Adapter 解析4毫秒
notifications 分发34毫秒
已确认4毫秒
x

提供方

Novu

P50 延迟

43 毫秒

成功率

97%

+0.4%

今日总量

9,191

packages/integrations/notificationsprovider-agnostic
使用方式notifications.ts
typescript
notifications.ts
1import { getNotificationProvider } from "@nebutra/notifications";
2
3const notifications = await getNotificationProvider();
4
5await notifications.send({
6  id: crypto.randomUUID(),
7  type: "invoice.paid",
8  recipientId: user.id,
9  tenantId: org.id,
10  channels: ["in_app", "email"],
11  data: { amount: invoice.total, currency: invoice.currency },
12});