Notification Service
Version 0.5.0 · Beta · Source code
In one sentence: Notification Service is a platform that sends scheduled browser push notifications from a list of short messages, at times each visitor chooses for themselves.
A website (called a tenant) defines topics, each an ordered list of messages. Visitors subscribe from their browser, pick days and times, and receive the next message in the list at each slot. The site does not have to build a scheduler, retry logic or push delivery.
It is for developers and small teams who want a gentle drip of notifications, such as daily tips or a course, with the person in control of when they arrive.

The story behind Notification Service
Web push is powerful but awkward to run well: VAPID keys, service workers, per-user time zones, daylight-saving changes, duplicate-send protection and dead-subscription cleanup. Most hosted push tools are built for broadcasts to everyone at once, not a personal schedule per subscriber. Notification Service was built as the engine behind Help Me Outgrow, its first tenant. Read the full story.
Problems it solves
"I want users to choose when they get notifications"
Broadcast tools send at one time for everyone. Here each enrolment has its own days, times and time zone. Searches: per-user push notification schedule, let users pick notification time.
"My scheduled notifications arrive an hour off after clocks change"
Slots are stored as local wall-clock times and converted when computed, so 07:00 stays 07:00 across daylight saving. Searches: push notification daylight saving bug.
"Users got the same notification twice (or hours late)"
A delivery row, unique per enrolment and slot, is written before any push leaves. A slot more than 30 minutes late is skipped rather than sent late. Searches: prevent duplicate push notifications.
"I don't want my notification vendor to know who my users are"
The tenant's backend exchanges its own user id for a one-hour subscriber token. The platform never sees who the person is.
Features and what to expect
- Multi-tenant: each tenant gets a VAPID key pair, a publishable key (browser) and a secret key (backend) from
npm run bootstrap. - Topics and items: ordered messages with optional attribution, imported via CSV (
seq,body,attribution) or JSON. - Browser SDK
@notification-service/sdk(createClient,subscribe,completeProfile,createEnrolment) and a service-worker core (sw-core.js). - Enrolments: create, list, pause, resume, change times, cancel. One live enrolment per person and topic.
- Tenant-owned rules (v2): the tenant's backend creates and changes enrolments with its secret key (
/v1/accounts/:externalId/…) and decides who may follow what. The platform enforces only its delivery policy per tenant, set by operators in the console: 24 notifications per person per day, 15 minutes between notifications and 366 days per enrolment by default. - Enrolment options (v2):
maxItems, looping, an ending notice, and buttons as data (feedback, open, snooze), with a snooze limited to three re-shows. One notification tag per enrolment, and a title template that can name the sender. - Browser enrolments (v1): while a tenant's policy allows them, times per day per topic follow an editable slot ladder (default 3, 6 after one month, 12 after three) and enrolments last at most 92 days.
- Account summary (v2): per-person delivered, opened and rated counts for a tenant's automated checks.
- Reliable sending: a scheduler claims due enrolments every minute. Position advances only after a successful send. Retries on 429, 5xx and network errors after 30 seconds, 2 minutes and 10 minutes. 404 and 410 mark a device expired. 401 and 403 raise an alert and are not retried. Each push has a 4-hour TTL.
- Measurement and feedback: events, ratings and comments, plus a stats endpoint (funnel and health). Subscribers can rate a message up or down straight from the notification, where the browser shows action buttons, or from the quote page.
- Content API (v2): a tenant's backend reads, appends and edits lines with its secret key (
content:writefor writes), and can remove (retire) and restore a single line withPOST /v1/topics/:id/items/:itemId/retireand…/restore. A retired line keeps its position, so no subscriber's place in a topic moves, and delivery skips it. It still counts for the duplicate check, so re-importing the same text does not bring it back. Appended and edited lines can carry their ownclickUrl. - Admin console (
/console): invite-only, Google or Zoho sign-in verified server-side, with roles, users and an audit log of every change. Platform operators set each tenant's policy. Screens cover topics and lines (private or public topics, retire, append or edit-only lines, sensitive drafts), slot limits, and a stats panel (funnel, ratings by topic, devices, retention, health, comments, CSV export). It stays off untilCONSOLE_SESSION_SECRETis set. - Privacy controls: subscriber erase (
DELETE /v1/subscribers/me), push endpoints restricted to browser vendors' push services. - Health:
GET /healthzreturns 503 if the scheduler has not ticked for 3 minutes.
Limitations
- Web push only; there is no email, SMS or native mobile push.
- Run a single instance until the in-memory queue is replaced with a Redis-backed one.
- The origin and VAPID key are bound to every subscription and cannot be migrated, so register the permanent domain first.
- Browser support follows web push: Chrome, Edge and Firefox. iOS needs the site added to the Home Screen; notifications must not depend on action buttons or images there.
Quick start
Prerequisites: Node 22 (MongoDB for production; local development uses an in-memory file store).
cd server && npm ci, then setJWT_SECRET,KEY_ENCRYPTION_KEY,VAPID_SUBJECT,PUBLIC_API_URLandMEMORY_STORE_FILE.- Run
npm run bootstrap -- --name "My site" --slug mysite --origin http://localhost:5173 --click-url "http://localhost:5173/n/{deliveryId}?t={token}". It prints the API keys once, so save them. npm run dev, then integrate the SDK from your site.
Full guides: Quickstart, Integrate a site, Deploy and operate.
Frequently asked questions
What is the maturity of Notification Service? Beta (platform 0.5.0, browser SDK 0.6.0). It is the engine behind Help Me Outgrow. The persistent store is MongoDB, and the repository's continuous integration runs the storage contract tests against mongo:7 on every change. Scaling beyond a single instance is not yet supported.
Can I send email or SMS? No. Web push only.
Can it run on several servers? Not yet. Run a single instance until the in-memory queue is replaced.
Who uses it today? Help Me Outgrow is the first tenant.
Creative and unconventional uses
All of these are scenarios the existing topic-and-slot model supports; none are built-in products.
- Email-course replacement. Load 30 lessons as items, enrol readers for 30 days at 08:00, and the lessons arrive one per day.
- Habit and medication-style nudges. Several times a day, a short reminder line. Only use for non-critical prompts, as delivery is best effort with a 4-hour TTL.
- Onboarding drip for a SaaS. A week of tips after sign-up, delivered at the time the user picked.
- Team rituals. A rotating list of retro questions or stand-up prompts, one per weekday.
- Language or study practice. One vocabulary item or quote a day, paced per learner.
Next steps
- Get started: Notification Service documentation
- Read why it exists: the story behind Notification Service
- See it in use: Help Me Outgrow, the first tenant.
- Also from HTSTA: PasteGuard.
- Back to all products