Notification System Architecture
In-app notifications are easy to build badly. The hard part is signal quality.Scope model in your stack
Your frontend notification APIs and hooks support scope filtering with:userorganizationworkspace- broader filtered views (
all,current) in hook usage
Scope design guidance
- Use
userfor personal/account/security changes. - Use
organizationfor team-level operational events. - Use
workspacefor project-level activity. - Avoid broadcasting org-wide when workspace scope is enough.
Severity usage
Keep severity semantic:info: neutral updatessuccess: completed actionswarning: attention required soonerror: action required now
Lifecycle model
- Create notification.
- Deliver to inbox.
- Mark read/unread.
- Star/archive as needed.
- Expire when stale.
Related docs
- React Router
useNotifications - React Router
useNotificationStream - Frontend API Notifications Reference
- Backend API Notifications Reference
Go-live checklist
- Scope and severity conventions are documented.
- Inbox read/archive/star flows are tested.
- Realtime reconnection behavior is verified.
- Noisy template monitoring is in place.
- Expiry strategy is applied for stale notifications.
