I’m working on Staccats, a headless notification platform aimed at multi-tenant saas apps.

Tech stack:

Runtime: bun for both the HTTP API and a background worker

DB: Postgres for tenants, api_keys, users, events, templates, providers, notifications, notification_attempts

Queue: MVP is DB as queue, worker polls notifications WHERE status = ‘pending’ LIMIT 50 and processes

Flow:

App calls POST /notify with { event, userId, data } 1.

API:

Auth via Authorization: Bearer <API_KEY> → resolve tenant_id

Look up event, template, user, provider

Create notifications row with status = ‘pending’ 1.

Worker:

Polls pending notifications

Renders template with data

Sends via provider adapter (e.g. SendGrid/SES/Resend etc)

Writes notification_attempts r…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help