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)