September 17th, 2024

Show HN: I open-sourced my HN comment/reply alerts service

The GitHub repository for hackernewsalerts.com outlines a web application that sends email notifications for Hacker News replies, utilizing two Django services, a Postgres database, and CapRover deployment.

Read original articleLink Icon
Show HN: I open-sourced my HN comment/reply alerts service

The GitHub repository for hackernewsalerts.com details the backend services of a web application designed to send email notifications for replies to comments or posts on Hacker News. The architecture comprises two Python Django services: a Django Ninja REST API that manages email signups and a Django Q2 scheduled worker responsible for checking updates and dispatching emails. Both services operate with a Postgres database and are deployed using CapRover. Key files include views.py, which contains the REST API logic, tasks.py for scheduled email alerts, and a Makefile for application management. There is a note to update the `ALLOWED_HOSTS` and `CORS_ALLOWED_ORIGINS` settings in production to enhance security. Additionally, the scheduled worker is programmed to alert the admin user in case of failures, which may arise from missing data, although such data usually becomes available later.

- The application sends email notifications for Hacker News replies.

- It consists of two Django services: a REST API and a scheduled worker.

- The backend uses a Postgres database and is deployed via CapRover.

- Important files include views.py for API logic and tasks.py for email alerts.

- Security updates are needed for production settings.

Link Icon 3 comments
By @RadiozRadioz - 4 months
Nice, I've wanted exactly this service.

Though I do question if it's good that I want this service. Part of the draw that HN has for me is that it's very much not a social media website in the modern sense. It's a service I come to, it doesn't come to me; I have control over the relationship and dictate when interactions start and end. It lacks the addictive qualities in other sites and has no way to pull you back in after the fact.

This tool lets HN reach out to me, like I as a monkey have come to expect and want from the social media platforms that keep me entertained for as long as possible. I'm not sure how I feel about that.

By @replwoacause - 4 months
So this is different than http://www.hnreplies.com ?
By @theviolacode - 4 months
7 users! I guess the pain is not as felt