Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pheuter/hnpush
Web push notifications for top stories on Hacker News.
https://github.com/pheuter/hnpush
Last synced: about 1 month ago
JSON representation
Web push notifications for top stories on Hacker News.
- Host: GitHub
- URL: https://github.com/pheuter/hnpush
- Owner: pheuter
- License: mit
- Created: 2024-10-29T16:32:23.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-24T12:36:57.000Z (about 1 month ago)
- Last Synced: 2024-11-24T13:37:15.665Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://hnpush.com
- Size: 198 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HN Push
Web push notifications for top stories on Hacker News.
## Features
- 🔔 Real-time push notifications for trending stories
- 📱 Progressive Web App (PWA) for easy mobile access
- 🌓 Dark mode support
- ⚡️ Built with [Svelte](https://svelte.dev)
- 🔒 Privacy-focused with no tracking or analytics## How It Works
1. A cron job runs every minute to fetch top stories from Hacker News
2. New stories with 30+ points trigger push notifications
3. Each visitor gets a unique password stored in a cookie
4. Subscriptions are stored in Redis using the cookie password as an identifier
5. Subscribers receive notifications with the story title and author
6. Clicking a notification opens the story on Hacker News