Next-Push, a TypeScript push notification library built specifically for Next.js applications.
Features:
🔔 React hooks with full TypeScript support
🔑 Automatic VAPID key management from environment variables
📱 Cross-platform browser compatibility
🔄 Built-in retry mechanisms and error handling
🌐 React Context provider for global state management
⚡ Auto-subscription when permissions are granted
🏗️ Separate client/server modules for better tree-shaking
The setup is straightforward compared to implementing push notifications from scratch, and having TypeScript definitions throughout makes development much smoother.
Top comments (0)