انتقل إلى المحتوى
شعار أوراباسي
aurabase

الإخطارات

البريد الإلكتروني SMTP، والرسائل النصية القصيرة، والدفع عبر الهاتف المحمول، وخطافات الويب الصادرة. قوالب i18n، حد المعدل لكل قناة، إدارة الارتداد، توقيعات HMAC. كل شيء من حافة العمل.

شرح5 د قراءةالمستوى مبتدئ

لقد تغير المصدر الإنجليزي منذ هذه الترجمة. قد تكون بعض المعلومات قديمة.
تمت ترجمة هذه الصفحة تلقائيًا. النسخة الإنجليزية موثوقة.

Four channels, one unified SDK#

The aura-notifications service exposes a single aura.notifications.* surface (service_role key, server side) which manages email, SMS, push and webhooks. Calls go through a NATS queue with retry, backoff, and DLQ — you send, we guarantee delivery (or refund the credit).

معلومات

Templates, logs and quotas live in project_{uuid}_platform.notifications_*. 30-day retention of delivery logs (2 years on Enterprise).

What each channel guarantees#

  • Email (SMTP). MJML/HTML templates with Liquid, DKIM/SPF/DMARC, rate-limit by domain, bounces managed automatically.
  • SMS. Multiple providers (Twilio, Vonage, OVH), routing by country, automatic fallback.
  • Push. APNs (iOS), FCM (Android), Web Push (VAPID). Self-validated device tokens, purging invalid ones.
  • Outgoing webhooks. HMAC-SHA256 signing, exponential retry (5 attempts), DLQ, rotating signatures.

MJML + Liquid, native i18n#

Create templates from the Studio or via CLI. MJML syntax for email (responsive out-of-the-box), Liquid for templating. Locales managed by file welcome.fr.mjml, welcome.en.mjml.

  • Email templates: ~12 per project (on average)
  • Local supported: 38 (Liquid + auto fallback)
  • Delivery p99: < 8s (queue → recipient)
  • Inbox rate: 97.8% (DKIM + dedicated IP)

Four channels in code#

Each call returns { data, error }: check error (a channel that is not configured is refused at once with a 503). See the notifications reference for every option.

نصيحة

Continue with a edge.job() to decouple: the transmitter pushes into the notificationsqueue, the worker sends asynchronously with automatic retry.

معلومات

Signed webhook: configure a secret in Notifications → Settings → Webhook (or WEBHOOK_SIGNING_SECRET on the service side). Each send then carries the X-Aurabase-Signature: t={timestamp},v1={hmac-sha256} header — verification on the receiver side documented in the README of the @aurabase/notificationspackage.

To go further#

@aurabase/aurabase-js@0.7.5 · aura@0.3.4↗ الإبلاغ عن مشكلة