Notifications
A TypeScript library for sending one message through multiple services and reporting what succeeded, failed, or was skipped.
I built Notifications to keep delivery code out of the rest of an application. A caller supplies one message; adapters handle the details for email, chat, and other services.
Configured adapters run in parallel, each with its own timeout. A failed service does not prevent the others from finishing, and the caller gets a result listing deliveries, failures, and skipped channels.
The demo runs the actual dispatcher with local mock adapters. Try making one channel fail or time out while another succeeds. It does not send messages or require credentials.
Interactive example
One message, three channels
This runs the library’s dispatcher with local mock adapters. No messages leave your browser. Change a channel’s outcome to see how the others continue.
Inspect the message and result
{
"message": {
"subject": "The report is ready",
"body": "The district analysis is ready for review."
},
"result": null
}Uses @adpena/notifications 0.1.0. Each configured adapter starts in parallel and has its own five-second timeout.