Notification infrastructure · v1.1.0

Messages that send. Proof of what happened.

Pulse sends email, SMS and push through one API — with priority queues, retries and an inspectable trace for every send.

  • Idempotent requests
  • Priority routing
  • Per-message traces
Delivery trace
Example

POST /api/notifications/send/

{
  "template_name": "security_alert",
  "user_id": "user_9918",
  "channel": "push",
  "to": "demo-device-token",
  "priority": "high",
  "subject": "Security alert",
  "body": "A new sign-in was detected for {name}.",
  "context": { "name": "Alex" },
  "idempotency_key": "idem_8f2a"
}

Request accepted

0ms

Schema valid · idempotency key stored

Queued for push

3ms

Priority queue · high_priority

Provider accepted

21ms

FCM response attached to the trace

Acknowledged

37ms

Provider response stored · trace closed

tr_8f2a…c91Provider accepted in 37ms

Email

SMTP

Transactional email through your configured SMTP server. Provider errors stay on the trace.

SMS

Twilio

One-way transactional SMS through Twilio. Provider responses are recorded on the trace.

Push

FCM

Push through Firebase Cloud Messaging. A console provider is available for local development.

Connects toFCMTwilioSMTP

One request

One request. One channel.

Stop stitching provider SDKs together. Send one request and let Pulse queue it, retry the attempt and keep the provider response.

  • Idempotent requests

    Retrying with the same idempotency key cannot create a second message.

  • Priority queues

    An OTP template routes to high_priority rather than the low-priority queue.

  • Retries with backoff

    Failed provider attempts are retried until the attempt budget is spent.

server.ts
// Server-side example. Browser sessions use the same-origin /api proxy.
await fetch("https://pulse.example.com/api/notifications/send/", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "X-API-Key": process.env.PULSE_API_KEY,
  },
  body: JSON.stringify({
    template_name: "security_alert",
    user_id: "user_9918",
    channel: "push",
    to: "demo-device-token",
    priority: "high",
    subject: "Security alert",
    body: "A new sign-in was detected for {name}.",
    context: { name: "Alex" },
    idempotency_key: "idem_8f2a",
  }),
});
202 Acceptedtr_8f2a…c91
Routing rules
Sample

OTP / verification

Template keyword → high_priority

SMS

Explicit priority

priority: high → high_priority

Push

Everything else

Default → low_priority

Email
Priority is chosen from the request or template keyword. There is no automatic channel fallback.

Observability

A trace for every message.

Delivery is not a promise, it is a record. Follow a message from the first request through every queue, provider call and retry.

01

Accepted

Request persisted and idempotency checked.

02

Routed

Priority queue and channel selected.

03

Acknowledged

Provider response attached to the trace.

Deliveries
Sample

Sent

2,038

Success rate

99.4%

P95 latency

61ms

Volume · last 24h

All channels

Push#7f9a2e…19aa09:40:46.000
Email#02ab41…ffbb09:40:12.000
SMS#bc3488…2acc09:39:54.000
Preview with sample data.Open deliveries

Operating principles

Built for the people on call.

When a message matters, the tooling should make the next step obvious — not hide it behind another dashboard.

Persist first.

A request is persisted before it is queued. Provider errors and the attempt count stay on the record.

One accept per key.

Idempotency keys are enforced by a unique database constraint, so a retried request with the same key cannot become a second queue item.

No mystery failures.

Provider metadata, the latest error and the attempt count remain attached to the message. You can see where sending stopped — and why.

Start here

Start with one message.

Bring a template and a destination. The composer sends the request through your configured providers and records the trace.

Every accepted send is authenticated and recorded.
Retries with backoff Idempotency keys enforced