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 articleThe 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.
Related
Evaluating a Decade of Hacker News Predictions: An Open-Source Approach
The blog post evaluates a decade of Hacker News predictions using LLMs and ClickHouse. Results show a 50% success rate, highlighting challenges in prediction nuances. Future plans include expanding the project. Website: https://hn-predictions.eamag.me/.
Show HN: RAG on HN comments in 34 LOC
The tool hackerNewsRAG uses Algolia to search HackerNews comments, extracting and summarizing content with Substrate. Users can fork it on Substrate for free credits. Val Town offers JavaScript hosting services.
350M Tokens Don't Lie: Love and Hate in Hacker News
The analysis of Hacker News posts from January 2020 to June 2023 shows increased discussions on AI, a decline in COVID topics, and a generally positive sentiment with polarized reactions on various issues.
Show HN: Retronews – TUI for HN and Lobsters emulating classical Usenet readers
The "retronews" Python script provides a nostalgic interface for browsing Hacker News and Lobsters, requiring Python 3.9, allowing customization, but is read-only without voting or posting features.
Python coding interview test used to hack computers
North Korean hackers from the Lazarus group are targeting Python developers with fake job offers and malicious coding tests, distributing malware through misleading GitHub projects as part of the 'VMConnect campaign.'
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.
Related
Evaluating a Decade of Hacker News Predictions: An Open-Source Approach
The blog post evaluates a decade of Hacker News predictions using LLMs and ClickHouse. Results show a 50% success rate, highlighting challenges in prediction nuances. Future plans include expanding the project. Website: https://hn-predictions.eamag.me/.
Show HN: RAG on HN comments in 34 LOC
The tool hackerNewsRAG uses Algolia to search HackerNews comments, extracting and summarizing content with Substrate. Users can fork it on Substrate for free credits. Val Town offers JavaScript hosting services.
350M Tokens Don't Lie: Love and Hate in Hacker News
The analysis of Hacker News posts from January 2020 to June 2023 shows increased discussions on AI, a decline in COVID topics, and a generally positive sentiment with polarized reactions on various issues.
Show HN: Retronews – TUI for HN and Lobsters emulating classical Usenet readers
The "retronews" Python script provides a nostalgic interface for browsing Hacker News and Lobsters, requiring Python 3.9, allowing customization, but is read-only without voting or posting features.
Python coding interview test used to hack computers
North Korean hackers from the Lazarus group are targeting Python developers with fake job offers and malicious coding tests, distributing malware through misleading GitHub projects as part of the 'VMConnect campaign.'