-
Notifications
You must be signed in to change notification settings - Fork 0
Notifications System
github-actions[bot] edited this page Sep 2, 2026
·
46 revisions
The nChat notification system provides comprehensive, production-ready notification infrastructure with:
- Web Push Notifications - Native browser push via Web Push API
- Email Digests - Scheduled email summaries
- Batch Operations - Efficient bulk notifications
- Reminders - User reminders with snooze/recurrence
- Per-Channel Preferences - Granular control
- Keyword Alerts - Custom keyword notifications
- Quiet Hours - Do-not-disturb scheduling
- Multiple Channels - Email, Push, SMS
npx web-push generate-vapid-keysAdd to .env.local:
NEXT_PUBLIC_VAPID_PUBLIC_KEY=<public-key>
VAPID_PRIVATE_KEY=<private-key>import { usePushSubscription } from '@/hooks/use-push-subscription'
const { subscribe } = usePushSubscription()
await subscribe()await fetch('/api/notifications', {
method: 'POST',
body: JSON.stringify({
type: 'mention',
title: 'You were mentioned',
body: '@alice mentioned you',
userId: 'user-uuid',
}),
})-
GET /api/notifications- List -
POST /api/notifications- Create -
PUT /api/notifications- Update -
DELETE /api/notifications- Delete
GET /api/notifications/preferencesPUT /api/notifications/preferences
POST /api/notifications/subscribeDELETE /api/notifications/subscribe
-
POST /api/notifications/digest- Send now -
PUT /api/notifications/digest- Settings
-
POST /api/notifications/batch- Create -
GET /api/notifications/batch- Status
GET /api/remindersPOST /api/remindersPUT /api/remindersDELETE /api/reminders
const { isSubscribed, subscribe } = usePushSubscription()const { preferences, updatePreferences } = useNotificationPreferences()- Docs:
/docs/Notifications-System.md - Issues: GitHub
- Email: support@nself.org
nself-chat v0.3.0 | GitHub | Issues | Discussions | Demo
Edit this page | MIT License | Β© 2026
(See π Security section below for 2FA, PIN Lock, and security audits.)
(Search lives in π Reference below.)
- π¬ Advanced Messaging
- π E2EE Setup
- π Search Setup
- π Call Management
- πΊ Live Streaming
- π₯οΈ Screen Sharing
- πΉ Video Calling
- ποΈ Voice Calling
- π± Mobile Optimization
- π§ͺ Testing
- π i18n
- π API Overview
- π Complete Reference
- π» API Examples
- π€ Bot API
- π Auth API
- π GraphQL Schema
- π Deployment Overview
- π³ Docker
- βΈοΈ Kubernetes
- β Helm Charts
- β Production Checklist
- π Production Validation
- π’ Multi-Tenant
- ποΈ Architecture
- π Diagrams
- ποΈ Database Schema
- π Project Structure
- π TypeScript Types
- π SPORT Reference
- π 2FA
- π¬ Messaging
- π Call Management
- π Call State Machine
- π E2EE
- πΊ Live Streaming
- π± Mobile Calls
- π PIN Lock
- π Polls
- π₯οΈ Screen Sharing
- π Search
- π Social Media
- ποΈ Voice Calling
- π Security Overview
- π‘οΈ Security Audit
- β‘ Performance
- π Best Practices
- π 2FA
- π PIN Lock
- π E2EE
- π‘οΈ E2EE Audit
v1.0.0 β’ 2026