PraisonAIUI includes a modular, extendable Notification Center built into @aiui/sdk
@aiui/sdk
and shipped as a first-party plugin (builtin.notifications).
builtin.notifications
See live notifications, header bell alerts, deep-link actions, and Human-in-the-Loop approvals working together on one dashboard in 34-hitl-approvals-and-notifications (aiui run app.py or aiui run app.yaml — no API key required).
aiui run app.py
aiui run app.yaml
<ComponentPreview title="Dashboard Notifications & Approval Feed">
[
{"type": "alert", "variant": "warning", "title": "Approval required: deploy_release", "message": "Agent paused before deploying v0.4.0 to production — click Review now in the header Notification Bell."},
{"type": "timeline", "title": "Recent Notification Events", "items": [
{"title": "Deployment v0.4.0 approved", "time": "just now", "status": "success", "description": "Agent resumed and completed rollout."},
{"title": "Approval required: deploy_release", "time": "2m ago", "status": "warning", "description": "High-risk tool gate triggered from Chat."}
]}
]
</ComponentPreview>
Declare startup or static notifications directly in app.yaml:
app.yaml
1. Headless SDK store (@aiui/sdk: notifications, useNotifications)
notifications
useNotifications
(dedupeKey / id), ring-buffer cap, and optimistic actions
dedupeKey
id
(markRead, markUnread, markAllRead, remove, clear, sync).
markRead
markUnread
markAllRead
remove
clear
sync
notify(message, opts)
opts.record === false, so ephemeral toasts stay reviewable in the bell
opts.record === false
panel without duplicating code at call sites.
notifications.registerSource(id, source)
transports (WebSockets, SSE, polling, webhooks).
2. Header Bell plugin (builtin.notifications)
header:actions
appears in the Classic shell and selectable layout frames.
bundles small.
read toggle & dismiss, safe SPA action links (action.page + params),
action.page
params
keyboard Escape, and polite screen-reader announcements.
Escape
extensions: { disabled: ["builtin.notifications"] }
replace it by registering your own header:actions slot component backed
by useNotifications().
useNotifications()
3. Python Feature & SDK (praisonaiui.features.notifications)
praisonaiui.features.notifications
/api/notifications
/api/notifications/read-all, /api/notifications/{id}/read,
/api/notifications/read-all
/api/notifications/{id}/read
/api/notifications/{id}, /api/notifications/stream).
/api/notifications/{id}
/api/notifications/stream
NotificationStoreProtocol
aiui.set_notification_store(store).
aiui.set_notification_store(store)